Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - General Discussions

Post by jake »

On my dashboard I am not able to get the 'traffic map' to work. So far, I only get a grey rectangle on the dashboard

I have entered the necessary Maps variables:

Code: Select all

var _APIKEY_MAPS                        = 'AIzaxxxxGAHRNxxxxmEOOxxxxxxxxacH-8rxxxxx;
var _MAPS_LATITUDE                      = '51.xxxxxx';
var _MAPS_LONGITUDE                     = '4.xxxx0';
var _MAPS_ZOOMLEVEL                     = '10';

xxx

columns[4] = {}
columns[4]['blocks'] = ['trafficmap','traffic','train',publictransport.ovinfo]
columns[4]['width'] = 5;

screens[2] = {}
screens[2]['background'] = 'bg4.jpg';
screens[2]['columns'] = [4,5]
Is this error caused by an incorrect API code? On the Dev page of Google I found multiple 'Maps' API-keys. The Wiki is not clear which one to take. An example, also the format for the lattitude and longitude would be helpful in the Wiki.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - General Discussions

Post by poudenes »

Guys,

Maybe a idea to add a new topic like : Dashticz - CONFIG.js defaults
And this is only a full list of all options in this config. On different threats you see some codes to use, but maybe its a good thing to put them all together and refer people to his topic. @robgeerts Maybe you can add this new topic?

I tried to complete all the options and collect them:

Code: Select all

var _LANGUAGE                           = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ                      = 'http://192.168.100.3:8081';
var _DOMOTICZ_REFRESH           = 5; //in seconds
var _DASHTICZ_REFRESH           = 30; //in minutes
var _THEME                                      = 'default'; // default = dashticz default theme

/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/

var _HOST_ZIGGO_HORIZON         = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND        = '';
var _WEATHER_CITY                       = 'Eindhoven';
var _WEATHER_CITYNAME           = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY            = 'NL';
var _USE_AUTO_POSITIONING       = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES                      = true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK  = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED                       = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT                     = false;
var _USE_BEAUFORT                       = true; //Bft instead of m/s
var _TRANSLATE_SPEED            = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES  = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER          = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE            = true;
var _LASTUPDATE_FORMAT          = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT        = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

var _APIKEY_MAPS                        = '';
var _MAPS_LATITUDE                      = '';
var _MAPS_LONGITUDE                     = '';
var _MAPS_ZOOMLEVEL           = 15;

var _AUTO_SWIPEBACK_TO          = 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME        = 10; //seconds

var calendars = {}
calendars.werk = { icalurl: 'https://<URL>’ }
calendars.feest = { icalurl: 'https://<URL>’ }
calendars.combined = [{ color:'red',calendar:calendars.werk}, {color:'#65FC32','calendar':calendars.feest}]

var frames = {}
frames.treinen                  = {refreshiframe:30000,height:719,frameurl:"http://<URL>”,width:12}

/*
// BUTTONS
*/

var buttons = {}
buttons.buienradar              = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Amsterdam/4058223'}
buttons.radio                   = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl                    = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.moon                    = {width:12, isimage:true, refreshimage:60000, image: 'moon'}

/*
// STREAMPLAYER
*/

var _STREAMPLAYER_TRACKS = [
   {"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
   {"track":2,"name":"538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
   {"track":3,"name":"538 Dance Dep","file":"http://vip-icecast.538.lw.triple-it.nl/WEB01_MP3"},
   {"track":4,"name":"Slam! Juize","file":"http://stream.radiocorp.nl/web09_mp3"},
   {"track":5,"name":"Slam! Boom Room","file":"http://stream.radiocorp.nl/web12_mp3"},
   {"track":6,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
   {"track":7,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];

/*
// SWITCH
*/

var blocks = {}

blocks[12] = {} // SLAAPKAMER
blocks[12][‘width'] = 6;
blocks[12][‘title'] = '';
blocks[12][‘icon'] = 'fa-cloud';
blocks[12][‘image'] = 'pi3.png';
blocks[12][‘playsound'] = 'sounds/ping.mp3';
blocks[12][‘switch'] = true; //if you want to switch the title and data
blocks[12][‘hide_data'] = true; //if you want to hide the data of this block
blocks[12][‘show_lastupdate'] = true; //if you want to show the last update specific for this block

/*
// NEWS FEED
*/

blocks['news_10'] = {} //
blocks['news_10']['width'] = 12;
blocks['news_10']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss';

/*
// TITLE
*/

blocks['blocktitle_0'] = {}
blocks['blocktitle_0']['type'] = 'blocktitle';
blocks['blocktitle_0']['title'] = 'Production';

/*
// COLUMNS
*/

var columns = {}

columns[10] = {} //
columns[10]['blocks'] = ['clock','sunrise','blocktitle_0',buttons.calendar,buttons.moon,219,233];
columns[10]['width'] = 2;

columns[20] = {} //
columns[20]['blocks'] = ['blocktitle_10',25,26,19,22,24,27,177,178,73,33];
columns[20]['width'] = 5;

//*
// SCREENS
*/

var screens = {}

screens[1] = {}
screens[1]['background'] = 'plaatje.jpg';
screens[1]['background_morning'] = 'bg_morning.jpg';
screens[1]['background_noon'] = 'bg_noon.jpg';
screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
screens[1]['background_night'] = 'bg_night.jpg';
screens[10]['columns'] = [10,30,50,40,100,60,70,400];

RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by robgeerts »

You could open a topic by yourself :)
I have a lot to handle already ;)
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - General Discussions

Post by poudenes »

robgeerts wrote:You could open a topic by yourself :)
I have a lot to handle already ;)
True, reason i asked is because new functions are created by you :)... But will start and try to update the topic. :P
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs »

I think this belongs in the Wiki?
Searching in the forum topics is not very friendly.
The wiki should be up-to-date (I trie to), but if something is missing, the nice thing about the wiki is that you can add items...;-)

Wiki: http://www.domoticz.com/wiki/Dashticz_V2
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - General Discussions

Post by poudenes »

htilburgs wrote:I think this belongs in the Wiki?
Searching in the forum topics is not very friendly.
The wiki should be up-to-date (I trie to), but if something is missing, the nice thing about the wiki is that you can add items...;-)

Wiki: http://www.domoticz.com/wiki/Dashticz_V2
Also true... but then i can't manage it... ;

* Never mind, i see already lot of functions added in the WiKi... at moment i collect them i didn't see them in wiki at that moment.
Never mind forget my idea haha
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs »

poudenes wrote:Guys,

Maybe a idea to add a new topic like : Dashticz - CONFIG.js defaults
And this is only a full list of all options in this config. On different threats you see some codes to use, but maybe its a good thing to put them all together and refer people to his topic. @robgeerts Maybe you can add this new topic?

I tried to complete all the options and collect them:

Code: Select all

var _LANGUAGE                           = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ                      = 'http://192.168.100.3:8081';
var _DOMOTICZ_REFRESH           = 5; //in seconds
var _DASHTICZ_REFRESH           = 30; //in minutes
var _THEME                                      = 'default'; // default = dashticz default theme

/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/

var _HOST_ZIGGO_HORIZON         = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND        = '';
var _WEATHER_CITY                       = 'Eindhoven';
var _WEATHER_CITYNAME           = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY            = 'NL';
var _USE_AUTO_POSITIONING       = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES                      = true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK  = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED                       = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT                     = false;
var _USE_BEAUFORT                       = true; //Bft instead of m/s
var _TRANSLATE_SPEED            = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES  = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER          = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE            = true;
var _LASTUPDATE_FORMAT          = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT        = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

var _APIKEY_MAPS                        = '';
var _MAPS_LATITUDE                      = '';
var _MAPS_LONGITUDE                     = '';
var _MAPS_ZOOMLEVEL           = 15;

var _AUTO_SWIPEBACK_TO          = 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME        = 10; //seconds

var calendars = {}
calendars.werk = { icalurl: 'https://<URL>’ }
calendars.feest = { icalurl: 'https://<URL>’ }
calendars.combined = [{ color:'red',calendar:calendars.werk}, {color:'#65FC32','calendar':calendars.feest}]

var frames = {}
frames.treinen                  = {refreshiframe:30000,height:719,frameurl:"http://<URL>”,width:12}

/*
// BUTTONS
*/

var buttons = {}
buttons.buienradar              = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Amsterdam/4058223'}
buttons.radio                   = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl                    = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.moon                    = {width:12, isimage:true, refreshimage:60000, image: 'moon'}

/*
// STREAMPLAYER
*/

var _STREAMPLAYER_TRACKS = [
   {"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
   {"track":2,"name":"538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
   {"track":3,"name":"538 Dance Dep","file":"http://vip-icecast.538.lw.triple-it.nl/WEB01_MP3"},
   {"track":4,"name":"Slam! Juize","file":"http://stream.radiocorp.nl/web09_mp3"},
   {"track":5,"name":"Slam! Boom Room","file":"http://stream.radiocorp.nl/web12_mp3"},
   {"track":6,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
   {"track":7,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];

/*
// SWITCH
*/

var blocks = {}

blocks[12] = {} // SLAAPKAMER
blocks[12][‘width'] = 6;
blocks[12][‘title'] = '';
blocks[12][‘icon'] = 'fa-cloud';
blocks[12][‘image'] = 'pi3.png';
blocks[12][‘playsound'] = 'sounds/ping.mp3';
blocks[12][‘switch'] = true; //if you want to switch the title and data
blocks[12][‘hide_data'] = true; //if you want to hide the data of this block
blocks[12][‘show_lastupdate'] = true; //if you want to show the last update specific for this block

/*
// NEWS FEED
*/

blocks['news_10'] = {} //
blocks['news_10']['width'] = 12;
blocks['news_10']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss';

/*
// TITLE
*/

blocks['blocktitle_0'] = {}
blocks['blocktitle_0']['type'] = 'blocktitle';
blocks['blocktitle_0']['title'] = 'Production';

/*
// COLUMNS
*/

var columns = {}

columns[10] = {} //
columns[10]['blocks'] = ['clock','sunrise','blocktitle_0',buttons.calendar,buttons.moon,219,233];
columns[10]['width'] = 2;

columns[20] = {} //
columns[20]['blocks'] = ['blocktitle_10',25,26,19,22,24,27,177,178,73,33];
columns[20]['width'] = 5;

//*
// SCREENS
*/

var screens = {}

screens[1] = {}
screens[1]['background'] = 'plaatje.jpg';
screens[1]['background_morning'] = 'bg_morning.jpg';
screens[1]['background_noon'] = 'bg_noon.jpg';
screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
screens[1]['background_night'] = 'bg_night.jpg';
screens[10]['columns'] = [10,30,50,40,100,60,70,400];

I've just checked the Wiki and it's all there (even more....;-))
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - General Discussions

Post by poudenes »

htilburgs wrote:
poudenes wrote:Guys,

Maybe a idea to add a new topic like : Dashticz - CONFIG.js defaults
And this is only a full list of all options in this config. On different threats you see some codes to use, but maybe its a good thing to put them all together and refer people to his topic. @robgeerts Maybe you can add this new topic?

I tried to complete all the options and collect them:

Code: Select all

var _LANGUAGE                           = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ                      = 'http://192.168.100.3:8081';
var _DOMOTICZ_REFRESH           = 5; //in seconds
var _DASHTICZ_REFRESH           = 30; //in minutes
var _THEME                                      = 'default'; // default = dashticz default theme

/*
IF YOU HAVE A MEDIABOX FROM ZIGGO (HORIZON), COPY SWITCH_HORIZON.PHP ON A WEBSERVER INSIDE YOUR NETWORK AND CHANGE THE IP.
ENTER THE PATH TO THIS FILE BELOW.
*/

var _HOST_ZIGGO_HORIZON         = ''; //e.g. http://192.168.1.3/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND        = '';
var _WEATHER_CITY                       = 'Eindhoven';
var _WEATHER_CITYNAME           = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY            = 'NL';
var _USE_AUTO_POSITIONING       = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES                      = true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK  = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED                       = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT                     = false;
var _USE_BEAUFORT                       = true; //Bft instead of m/s
var _TRANSLATE_SPEED            = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES  = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER          = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE            = true;
var _LASTUPDATE_FORMAT          = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT        = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

var _APIKEY_MAPS                        = '';
var _MAPS_LATITUDE                      = '';
var _MAPS_LONGITUDE                     = '';
var _MAPS_ZOOMLEVEL           = 15;

var _AUTO_SWIPEBACK_TO          = 1; //when no activity, swipe back to main screen after x seconds
var _AUTO_SWIPEBACK_TIME        = 10; //seconds

var calendars = {}
calendars.werk = { icalurl: 'https://<URL>’ }
calendars.feest = { icalurl: 'https://<URL>’ }
calendars.combined = [{ color:'red',calendar:calendars.werk}, {color:'#65FC32','calendar':calendars.feest}]

var frames = {}
frames.treinen                  = {refreshiframe:30000,height:719,frameurl:"http://<URL>”,width:12}

/*
// BUTTONS
*/

var buttons = {}
buttons.buienradar              = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Amsterdam/4058223'}
buttons.radio                   = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl                    = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.moon                    = {width:12, isimage:true, refreshimage:60000, image: 'moon'}

/*
// STREAMPLAYER
*/

var _STREAMPLAYER_TRACKS = [
   {"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3"},
   {"track":2,"name":"538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
   {"track":3,"name":"538 Dance Dep","file":"http://vip-icecast.538.lw.triple-it.nl/WEB01_MP3"},
   {"track":4,"name":"Slam! Juize","file":"http://stream.radiocorp.nl/web09_mp3"},
   {"track":5,"name":"Slam! Boom Room","file":"http://stream.radiocorp.nl/web12_mp3"},
   {"track":6,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
   {"track":7,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
];

/*
// SWITCH
*/

var blocks = {}

blocks[12] = {} // SLAAPKAMER
blocks[12][‘width'] = 6;
blocks[12][‘title'] = '';
blocks[12][‘icon'] = 'fa-cloud';
blocks[12][‘image'] = 'pi3.png';
blocks[12][‘playsound'] = 'sounds/ping.mp3';
blocks[12][‘switch'] = true; //if you want to switch the title and data
blocks[12][‘hide_data'] = true; //if you want to hide the data of this block
blocks[12][‘show_lastupdate'] = true; //if you want to show the last update specific for this block

/*
// NEWS FEED
*/

blocks['news_10'] = {} //
blocks['news_10']['width'] = 12;
blocks['news_10']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss';

/*
// TITLE
*/

blocks['blocktitle_0'] = {}
blocks['blocktitle_0']['type'] = 'blocktitle';
blocks['blocktitle_0']['title'] = 'Production';

/*
// COLUMNS
*/

var columns = {}

columns[10] = {} //
columns[10]['blocks'] = ['clock','sunrise','blocktitle_0',buttons.calendar,buttons.moon,219,233];
columns[10]['width'] = 2;

columns[20] = {} //
columns[20]['blocks'] = ['blocktitle_10',25,26,19,22,24,27,177,178,73,33];
columns[20]['width'] = 5;

//*
// SCREENS
*/

var screens = {}

screens[1] = {}
screens[1]['background'] = 'plaatje.jpg';
screens[1]['background_morning'] = 'bg_morning.jpg';
screens[1]['background_noon'] = 'bg_noon.jpg';
screens[1]['background_afternoon'] = 'bg_afternoon.jpg';
screens[1]['background_night'] = 'bg_night.jpg';
screens[10]['columns'] = [10,30,50,40,100,60,70,400];

I've just checked the Wiki and it's all there (even more....;-))
I was started ... :) haha but thanks :) haha
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Google MAPS

Post by vgr2 »

Hi, i've got the Google API and put them into CONFIG, also my MAPS_LATITUDE/LONGITUDE . In Columens i call it 'trafficmap'.

After refresh, I could shortly see the MAP and then google info page comes up with "Sorry something goes wrong".

Any idea?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Google MAPS

Post by robgeerts »

What kind of errors do you see in console?
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Google MAPS

Post by vgr2 »

Solution found.
You have to activate Google Maps JavaScript API in your API Manager.

What is the update timing from the map?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Google MAPS

Post by robgeerts »

I found out it is not getting refreshed.
Will add this a.s.a.p.!

Edit: Please try this in latest BETA.
vgr2
Posts: 71
Joined: Monday 29 August 2016 12:02
Target OS: -
Domoticz version:
Contact:

Re: Google MAPS

Post by vgr2 »

Free loading is 2500 per day....
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Google MAPS

Post by robgeerts »

It will refresh every 5 minutes, so 288 times a day ;) (thanks to qwerk ;))
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: Dashticz - General Discussions

Post by woody4165 »

jake wrote:On my dashboard I am not able to get the 'traffic map' to work. So far, I only get a grey rectangle on the dashboard

I have entered the necessary Maps variables:

Code: Select all

var _APIKEY_MAPS                        = 'AIzaxxxxGAHRNxxxxmEOOxxxxxxxxacH-8rxxxxx;
var _MAPS_LATITUDE                      = '51.xxxxxx';
var _MAPS_LONGITUDE                     = '4.xxxx0';
var _MAPS_ZOOMLEVEL                     = '10';

xxx

columns[4] = {}
columns[4]['blocks'] = ['trafficmap','traffic','train',publictransport.ovinfo]
columns[4]['width'] = 5;

screens[2] = {}
screens[2]['background'] = 'bg4.jpg';
screens[2]['columns'] = [4,5]
Is this error caused by an incorrect API code? On the Dev page of Google I found multiple 'Maps' API-keys. The Wiki is not clear which one to take. An example, also the format for the lattitude and longitude would be helpful in the Wiki.

Hi

Just tried this and in the console I see some errors.
Didn't understand if related to API key, but it seems more related to values. It should be in the first two errrs

Image

Is there someone who is getting Google Maps working?

Does this block (Google Maps) work only for dutch or for any country?

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Dashticz - General Discussions

Post by poudenes »

There is a little copy in the install wiki page

Code: Select all

//example station id: station-eindhoven
var publictransport = {}
publictransport.ovinfo= { station: 'station-eindhoven', title:'OV Info', show_lastupdate:true, provider: '9292', icon: 'train', results: 5 };
publictransport.ovinfotrain= { station: 'station-eindhoven', title:'Bus', show_lastupdate:true, provider: '9292-bus', icon: 'bus', results: 5 };
publictransport.ovinfobus= { station: 'station-eindhoven', title:'Trein', show_lastupdate:true, provider: '9292-train', icon: 'train', results: 5 };
publictransport.ovinfo the title say OV info and icon train.
publictransport.ovinfotrain the title say Bus and icon also
publictransport.ovinfobus the titel say Trein and icon also

What extra info will it show for ovinfo?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by robgeerts »

"provider: '9292'" = both bus and train
"provider: '9292-bus'" = bus only
"provider: '9292-train'" = train only
ropske
Posts: 483
Joined: Tuesday 12 August 2014 5:37
Target OS: Raspberry Pi / ODroid
Domoticz version: V3_8394
Location: Rumbeke,Belgium
Contact:

Re: Dashticz - General Discussions

Post by ropske »

i downloaded this nice looking Dashticz and configured this to my ip: var _HOST_DOMOTICZ = 'http://192.168.1.175:8080';

and when i want to go the the dashticz site, it is just blank, no button or something shows up

What am i doing wrong lol? :D
ropske
Posts: 483
Joined: Tuesday 12 August 2014 5:37
Target OS: Raspberry Pi / ODroid
Domoticz version: V3_8394
Location: Rumbeke,Belgium
Contact:

Re: Dashticz - General Discussions

Post by ropske »

and with blank i mean this
Attachments
Naamloos.jpg
Naamloos.jpg (79.63 KiB) Viewed 1746 times
User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs »

Can you post your config.js without the personal keys / information?
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3
Locked

Who is online

Users browsing this forum: No registered users and 1 guest