Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by renerene »

Has anyone setup communication from Domoticz to tasker?
The tablet on the wall runs Android. In domoticz is a decive 'anybodyHome', which I want to use as wake-up/sleep trigger for the tablet. Has anybody done so?
Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 2:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dashticz - Domotic issue

Post by Martijnvdb »

First of all i want to apologize for my question.
I installed everything perfectly, but for some reason my buttons doesnt show up.

Basic information:
- installed Domoticz on my Pi, and implemented Hue and Nest
- installed Dashticz, it does open on my Pi, but nothing is shown up beside of the time.

I am a Noob, and again, i apologize for this question. I just started, and cant find an answer on my question.

Thanks in advance!
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL »

Hi, what is your config? Have you removed comment tags from default CONFIG.js? Are you using Auto-positioning and Favorites or edit everything by yourself?
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL »

Mads wrote: Thursday 25 January 2018 20:00 Did find the problem.. (maybe)

removed the last */ at the end at the script now the moonpashse is there. and the block i made.. But now my switces is gone..
Gonna make then in the config files?
You HAVE to remove /* */, otherwise you are just NOT using any config settings. Check you config - you have not closed brackets, etc.

Start from the simpliest possible CONFIG.js and then add your blocks, columns, screens, etc. UNDERSTAND the logic. E.g. - you will not add any Moon pictures if you have Favorites set to on, etc.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
Mads
Posts: 40
Joined: Thursday 18 January 2018 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads »

if I will have the IDX from domoticz, then I need to make them af fav, right? worked last day, then I updated domo, and reset the config file. Know moonphase, sunset, and blocks doesn't work.

I can make blockstitle_! but not blocks[9]

also got this error in the log:
2018-01-26 10:31:00.311 LUA: MoonPhase - Update not allowed: Difference is 3240 seconds
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL »

Mads wrote: Friday 26 January 2018 10:32 if I will have the IDX from domoticz, then I need to make them af fav, right?
No. Auto positioning and favorites will only work when items are set as favorites in Domoticz. Then your config can have even four lines. When this setting is switched on you are not able to add any (e.g. Moon) custom buttons - they will be just ignored by Dashticz.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
Mads
Posts: 40
Joined: Thursday 18 January 2018 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads »

CaesarPL wrote: Friday 26 January 2018 11:07
Mads wrote: Friday 26 January 2018 10:32 if I will have the IDX from domoticz, then I need to make them af fav, right?
No. Auto positioning and favorites will only work when items are set as favorites in Domoticz. Then your config can have even four lines. When this setting is switched on you are not able to add any (e.g. Moon) custom buttons - they will be just ignored by Dashticz.
i have removed the fav. from domoticz. But still nothing i happening.. Got the moon to work yesterday. But now i wont.. :/
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL »

1. First thing:
Spoiler: show

Code: Select all

config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['idx_moonpicture'] = 7;
In idx_moonpicture put your IDX of user variable

2. Define buttons:
Spoiler: show

Code: Select all

var buttons = {} 
buttons.moon = {width:6, isimage:true, refreshimage:60000, image: 'moon'}
3. Put in column:
Spoiler: show

Code: Select all

columns[1] = {} 
columns[1]['blocks'] = [buttons.moon];
columns[1]['width'] = 3;
4. Put on screen:
Spoiler: show

Code: Select all

screens[1] = {}
screens[1]['columns'] = [1];
Last edited by CaesarPL on Friday 26 January 2018 11:26, edited 1 time in total.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
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 »

First remove the /* and */ in the beginning and the end (you've done that)
Than add the next to your config, after the line "config['dashticz_refresh'] = '60';":
see also http://www.domoticz.com/wiki/Dashticz_V ... figuration

Code: Select all

config['auto_positioning'] = 0;
config['use_favorites'] = 0;
Now you don't use your favorites and you can start to add your devices manualy.
See wiki page for how-to: http://www.domoticz.com/wiki/Dashticz_V2_-_Positioning


For configuring the Moon Phases see the wiki for how-to: http://www.domoticz.com/wiki/Dashticz_ ... Moonphases

And at last, the message "2018-01-26 10:31:00.311 LUA: MoonPhase - Update not allowed: Difference is 3240 seconds" is no error, but by design. The Moon Phases are updated by default every 3600 sec.

Code: Select all

local checktime = 3600  -- check allowed every x seconds 3600 = 60 min. Check the wundergroud API limitation before changing this
Succes with configuring Dashticz!
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
Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 2:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb »

I copied the index.hml from the show your dashboard page to change some things my own. see below my code



var config = {}
config['domoticz_ip'] = 'http://192.168.0.103:8080/';
var _LANGUAGE = 'nl_NL';
var _WEATHER_CITY = 'Eindhoven';
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = false;
var _USE_FAVORITES = false;
var _HIDE_SECONDS_IN_CLOCK = false;
var _HIDE_MEDIAPLAYER_WHEN_OFF = false;
var _STANDBY_AFTER_MINUTES = 1;
var _USE_BEAUFORT = true;
var _TRANSLATE_SPEED = false;
var _SHOW_LASTUPDATE = true;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _IDXmoonpicture = 1; //index of the uservariabele MoonPicture
var _SCREENSLIDER_EFFECT = 'slide';

var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"Q-music","file":"http://icecast-qmusic.cdp.triple-it.nl/ ... ive_96.mp3"},
{"track":2,"name":"538 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
{"track":5,"name":"StuBru","file":"http://mp3.streampower.be/stubru-high.mp3"},
];

var buttons = {}
buttons.buienradar = {width:12, isimage:true, image: 'http://api.buienradar.nl/image/1.0/Rada ... =285&h=256', url: 'http://www.weeronline.nl/Europa/Nederland/Son/4058667'}
buttons.calendar = {width:4, icon: 'fa-calendar', title: 'Kalender', url: 'https://calendar.google.com/calendar'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {width:4, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'}
buttons.nzbget = {width:4, icon: 'fa-download', title: 'NZBget', url: 'http://192.168.1.5'}
buttons.moon= {width:12, isimage:true, refreshimage:60000, image: 'moon'}

var blocks = {}
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Schakelaars';

blocks['news_2'] = {}
blocks['news_2']['feed'] = 'empy';

blocks[106] = {}
blocks[106]['hide_stop'] = true;

var columns = {}
columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','s1','s2',233,62,117,110,'144_2',106,204,295,'news_2']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = [buttons.calendar,buttons.nzbget,buttons.nunl,'currentweather_big','weather',145,284,287,286,150,151,5,97,301,302] //kodi: ,298
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['clock',buttons.moon,buttons.buienradar,'streamplayer']
columns[3]['width'] = 2;

var columns_standby = {}
columns_standby[1] = {}
columns_standby[1]['blocks'] = ['clock','currentweather_big','weather']
columns_standby[1]['width'] = 12;

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.jpg';
screens[1]['columns'] = [1,2,3]
Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 2:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb »

Even if i make a change to

var _USE_FAVORITES = true;
var _HIDE_SECONDS_IN_CLOCK = true;

It doenst do anything to the dashboard
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL »

Do you really need in the very beginning all this buttons? Define one column using only two, three items from Domoticz, check if it works, then add one by one to check if they work.

And I think this old settings do not work now, as for my knowledge you should use:

config['auto_positioning'] = 0;
config['use_favorites'] = 0;

not var's
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie »

I don't get it, i updated Dashticz to the latest version today. But page remains blank if I use my own customization. Can some one help troubleshooting?

Pervious version (1yr old) still works, but a lot have been changed over time.

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.180:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['standby_after'] = '5';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'month';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
//config['gm_api'] = '';
//config['gm_zoomlevel'] = 0;
//config['gm_latitude'] = '';
//config['gm_longitude'] = '';
config['wu_api'] = '';
config['wu_city'] = 'Alphen Aan Den Rijn';
config['wu_name'] = '';
config['wu_country'] = 'NL';
//config['idx_moonpicture'] = 0;
//config['switch_horizon'] = 0;
config['host_nzbget'] = 'http://192.168.1.199:6789';
config['spot_clientid'] = '';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 1;
config['hide_topbar'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 1;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 1;
config['settings_icons'] = ["settings", "fullscreen"];
config['shortdate'] = 'D MMM';
config['longdate'] = 'D MMMM YYYY';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm:ss';
config['weekday'] = 'dddd';
config['no_rgb'] = 0;
//config['standby_call_url'] = '';
//config['standby_call_url_on_end'] = '';
config['garbage_company'] = 'alphenaandenrijn';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '';
config['garbage_street'] = '';
config['garbage_housenumber'] = '';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfo = { show_via: false, station: 'station-alphen-a-d-rijn', provider: '9292', icon: 'train', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }


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 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
	{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
	{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
  ];

var calendars = {}
//calendars.private = { maxitems: 5, icalurl: '' }

var buttons = {}
//buttons.nos = {key: 'nos',  width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}
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/Son/4058667'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://192.168.1.190/cgi-bin/viewer/video.jpg', url: 'http://192.168.1.190/cgi-bin/viewer/video.jpg'}

var blocks = {}
blocks[8] = {} //Thermostaat
blocks[9] = {} //Woonkamer temperatuur
blocks[15] = {} //Buiten temperatuur

blocks[11] = {} //Windmeter

blocks[17] = {} //Voordeur
blocks[18] = {} //Achterdeur
blocks[19] = {} //Keuekenraam

blocks[49] = {} //TV lampen
blocks[49]['icon'] = 'fa-lightbulb-o'
blocks[49]['hide_data'] = true
blocks[49]['speakOn'] = 'Device is on';
blocks[49]['speaksOff'] = 'Device is off';

blocks[280] = {} //Bank lamp
blocks[280]['icon'] = 'fa-lightbulb-o'
blocks[280]['hide_data'] = true
blocks[280]['speakOn'] = 'Device is on';
blocks[280]['speaksOff'] = 'Device is off';

blocks[7] = {} //Schuur licht
blocks[7]['icon'] = 'fa-lightbulb-o'
blocks[7]['hide_data'] = true
blocks[7]['speakOn'] = 'Device is on';
blocks[7]['speaksOff'] = 'Device is off';

blocks[5] = {} //Slaapkamer licht
blocks[5]['icon'] = 'fa-lightbulb-o'
blocks[5]['hide_data'] = true
blocks[5]['speakOn'] = 'Device is on';
blocks[5]['speaksOff'] = 'Device is off';

blocks[56] = {} //Domoticz Security Panel
blocks[56]['width'] = 4;
blocks[56]['title'] = 'Alarm status'
blocks[56]['image'] = 'alarm.png';
blocks[76] = {} //AlarmActive
blocks[76]['title'] = 'Alarm aan/uit'

blocks[100] = {} //CPU Usage
blocks[100]['width'] = 12;
blocks[100]['title'] = 'RPi CPU'
blocks[100]['image'] = 'raspberry_pi.png';
blocks[100]['switch'] = true;

blocks[99] = {} //Internal Temperature
blocks[99]['width'] = 12;
blocks[99]['title'] = 'RPi Temp'
blocks[99]['image'] = 'raspberry_pi.png';
blocks[99]['switch'] = true;

blocks[96] = {} //Memory Usage
blocks[96]['width'] = 12;
blocks[96]['title'] = 'RPi MEM'
blocks[96]['image'] = 'raspberry_pi.png';
blocks[96]['switch'] = true;

blocks[98] = {} //HDD
blocks[98]['width'] = 12;
blocks[98]['title'] = 'RPi HDD'
blocks[98]['image'] = 'raspberry_pi.png';
blocks[98]['switch'] = true;

blocks[124] = {} //Stroom
blocks[124]['width'] = 12;
blocks[124]['switch'] = true;

blocks[125] = {} //Gas
blocks[125]['width'] = 12;
blocks[125]['switch'] = true;

var columns = {}
columns[1] = {}
columns[1]['blocks'] = [49,7,5,17,18,19,56,76,280,'spotify']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',8,9,15,'garbage',11,calendars.private,publictransport.ovinfo]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','streamplayer',buttons.webcam,buttons.buienradar]
columns[3]['width'] = 2;

columns[4] = {}
columns[4]['blocks'] = [100,99,96,98,124,125]
columns[4]['width'] = 2;

columns[5] = {}
columns[5]['blocks'] = ['graph_124','graph_125']
columns[5]['width'] = 10;

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.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[1]['columns'] = [1,2,3]

screens[2] = {}
screens[2]['background'] = 'bg3.jpg';
screens[2]['background_morning'] = 'bg_morning.jpg';
screens[2]['background_noon'] = 'bg_noon.jpg';
screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
screens[2]['background_night'] = 'bg_night.jpg';
screens[2]['columns'] = [4,5]
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 2:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb »

It still doesnt shows anything from my switches. Good it be that Dashticz doesnt connect to my domoticz?

Dashticz is in this folder /home/pi/domoticz/www/dashboard
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL »

Then use only favorites and check if there is something on the screen
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
Martijnvdb
Posts: 5
Joined: Friday 26 January 2018 2:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb »

I just used below code, and still doesnt show anything


var config = {}
config['domoticz_ip'] = 'http://192.168.0.103:8080/';
config['app_title'] = 'Dashboard';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['auto_positioning'] = 1;
config['use_favorites'] = 1;



var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/Rada ... =285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'}
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - General Discussions

Post by DewGew »

Code: Select all

blocks[5]['speaksOff'] = 'Device is off';
is wrong
Must be blocks[5]['speakOff']
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
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 »

mlamie wrote: Friday 26 January 2018 11:57 I don't get it, i updated Dashticz to the latest version today. But page remains blank if I use my own customization. Can some one help troubleshooting?

Pervious version (1yr old) still works, but a lot have been changed over time.

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.1.180:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['standby_after'] = '5';
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'month';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = '';
config['boss_stationclock'] = 'RedBoss';
//config['gm_api'] = '';
//config['gm_zoomlevel'] = 0;
//config['gm_latitude'] = '';
//config['gm_longitude'] = '';
config['wu_api'] = '';
config['wu_city'] = 'Alphen Aan Den Rijn';
config['wu_name'] = '';
config['wu_country'] = 'NL';
//config['idx_moonpicture'] = 0;
//config['switch_horizon'] = 0;
config['host_nzbget'] = 'http://192.168.1.199:6789';
config['spot_clientid'] = '';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 1;
config['hide_topbar'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 1;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 1;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 1;
config['settings_icons'] = ["settings", "fullscreen"];
config['shortdate'] = 'D MMM';
config['longdate'] = 'D MMMM YYYY';
config['shorttime'] = 'HH:mm';
config['longtime'] = 'HH:mm:ss';
config['weekday'] = 'dddd';
config['no_rgb'] = 0;
//config['standby_call_url'] = '';
//config['standby_call_url_on_end'] = '';
config['garbage_company'] = 'alphenaandenrijn';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '';
config['garbage_street'] = '';
config['garbage_housenumber'] = '';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = true;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};

var trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = ''; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfo = { show_via: false, station: 'station-alphen-a-d-rijn', provider: '9292', icon: 'train', width:5, results: 6 }

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4,31,46,92], maxitems: 5 }


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 Hitzone","file":"http://vip-icecast.538.lw.triple-it.nl/WEB11_MP3"},
	{"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
	{"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
  ];

var calendars = {}
//calendars.private = { maxitems: 5, icalurl: '' }

var buttons = {}
//buttons.nos = {key: 'nos',  width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}
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/Son/4058667'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://192.168.1.190/cgi-bin/viewer/video.jpg', url: 'http://192.168.1.190/cgi-bin/viewer/video.jpg'}

var blocks = {}
blocks[8] = {} //Thermostaat
blocks[9] = {} //Woonkamer temperatuur
blocks[15] = {} //Buiten temperatuur

blocks[11] = {} //Windmeter

blocks[17] = {} //Voordeur
blocks[18] = {} //Achterdeur
blocks[19] = {} //Keuekenraam

blocks[49] = {} //TV lampen
blocks[49]['icon'] = 'fa-lightbulb-o'
blocks[49]['hide_data'] = true
blocks[49]['speakOn'] = 'Device is on';
blocks[49]['speaksOff'] = 'Device is off';

blocks[280] = {} //Bank lamp
blocks[280]['icon'] = 'fa-lightbulb-o'
blocks[280]['hide_data'] = true
blocks[280]['speakOn'] = 'Device is on';
blocks[280]['speaksOff'] = 'Device is off';

blocks[7] = {} //Schuur licht
blocks[7]['icon'] = 'fa-lightbulb-o'
blocks[7]['hide_data'] = true
blocks[7]['speakOn'] = 'Device is on';
blocks[7]['speaksOff'] = 'Device is off';

blocks[5] = {} //Slaapkamer licht
blocks[5]['icon'] = 'fa-lightbulb-o'
blocks[5]['hide_data'] = true
blocks[5]['speakOn'] = 'Device is on';
blocks[5]['speaksOff'] = 'Device is off';

blocks[56] = {} //Domoticz Security Panel
blocks[56]['width'] = 4;
blocks[56]['title'] = 'Alarm status'
blocks[56]['image'] = 'alarm.png';
blocks[76] = {} //AlarmActive
blocks[76]['title'] = 'Alarm aan/uit'

blocks[100] = {} //CPU Usage
blocks[100]['width'] = 12;
blocks[100]['title'] = 'RPi CPU'
blocks[100]['image'] = 'raspberry_pi.png';
blocks[100]['switch'] = true;

blocks[99] = {} //Internal Temperature
blocks[99]['width'] = 12;
blocks[99]['title'] = 'RPi Temp'
blocks[99]['image'] = 'raspberry_pi.png';
blocks[99]['switch'] = true;

blocks[96] = {} //Memory Usage
blocks[96]['width'] = 12;
blocks[96]['title'] = 'RPi MEM'
blocks[96]['image'] = 'raspberry_pi.png';
blocks[96]['switch'] = true;

blocks[98] = {} //HDD
blocks[98]['width'] = 12;
blocks[98]['title'] = 'RPi HDD'
blocks[98]['image'] = 'raspberry_pi.png';
blocks[98]['switch'] = true;

blocks[124] = {} //Stroom
blocks[124]['width'] = 12;
blocks[124]['switch'] = true;

blocks[125] = {} //Gas
blocks[125]['width'] = 12;
blocks[125]['switch'] = true;

var columns = {}
columns[1] = {}
columns[1]['blocks'] = [49,7,5,17,18,19,56,76,280,'spotify']
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['currentweather_big','weather',8,9,15,'garbage',11,calendars.private,publictransport.ovinfo]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['clock','sunrise','streamplayer',buttons.webcam,buttons.buienradar]
columns[3]['width'] = 2;

columns[4] = {}
columns[4]['blocks'] = [100,99,96,98,124,125]
columns[4]['width'] = 2;

columns[5] = {}
columns[5]['blocks'] = ['graph_124','graph_125']
columns[5]['width'] = 10;

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg1.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[1]['columns'] = [1,2,3]

screens[2] = {}
screens[2]['background'] = 'bg3.jpg';
screens[2]['background_morning'] = 'bg_morning.jpg';
screens[2]['background_noon'] = 'bg_noon.jpg';
screens[2]['background_afternoon'] = 'bg_afternoon.jpg';
screens[2]['background_night'] = 'bg_night.jpg';
screens[2]['columns'] = [4,5]
The error is in the line:

Code: Select all

buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
You forgot the , behind key: 'nunl' ;)
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
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie »

DewGew wrote: Friday 26 January 2018 12:58

Code: Select all

blocks[5]['speaksOff'] = 'Device is off';
is wrong
Must be blocks[5]['speakOff']
Thanks, (copy paste issue) will update the wiki page as well, but it didn't do the trick :roll:

If i disable the CONFIG.js with /* and */ the default page load will work.
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie »

htilburgs wrote: Friday 26 January 2018 13:04
The error is in the line:

Code: Select all

buttons.nunl = {key: 'nunl'  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
You forgot the , behind key: 'nunl' ;)
That was the issue, my mistake. THANKS!!!
P.s. how did you manage to find it?
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
Locked

Who is online

Users browsing this forum: No registered users and 0 guests