Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs » Thursday 25 January 2018 19:33

Can you post your complete CONFIG.js (filter your keys, etc..)?
With the screenshots it's not possible to see what is going on.

Place it between (replace <> by [] )
<spoiler><code>--</code></spoiler>
Example:
Spoiler: show

Code: Select all

// PRODUCTIE

var config = {}
config['domoticz_ip'] = 'http://192.168.0.1:8080';
config['app_title'] = 'Domotica Dashboard';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'https://cors-anywhere.herokuapp.com/http://www.nu.nl/rss';
config['news_scroll_after'] = '7';
config['standby_after'] = 15;
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = 0;	
config['auto_slide_pages'] = 0;			//set _AUTO_SWIPEBACK_TIME = 0
config['slide_effect'] = 'slide';
config['standard_graph'] = 'hours';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YYYY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 0;
config['gm_zoomlevel'] = 0;
config['gm_latitude'] = 0;
config['gm_longitude'] = 0;
config['wu_api'] = 'xxxxx';
config['wu_city'] = 'xxxxx';
config['wu_name'] = 0;
config['wu_country'] = 'NL';
config['idx_moonpicture'] = '7';
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 0;
config['garbage_company'] = 'cure';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 'xxxxx';
config['garbage_street'] = 'xxxxx';
config['garbage_housenumber'] = '6';
config['garbage_maxitems'] = '6';
config['garbage_width'] = '12';
config['selector_instead_of_buttons'] = 1;
config['auto_positioning'] = 0;
config['use_favorites'] = 0;
config['last_update'] = 0;
config['hide_off_button'] = 0;
config['hide_topbar'] = 0;
config['edit_mode'] = 0;
config['hide_seconds'] = 0;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;
config['garbage_hideicon'] = 0;
config['selector_instead_of_buttons'] = 0;	//use for selectors
config['hide_off_button'] = 0; //use for selectors
config['no_rgb'] = 1; //use for RGB selector

// Garbage - Advanced Settings
config['garbage_use_names'] = true;
config['garbage_use_colors'] = false;
config['garbage_icon_use_colors'] = false;
config['garbage_use_cors_prefix'] = false;


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'},
};

// iCalendar Plugin, supports all .ics calendar types like Google Calendar, Apple Calendar
var _ICALENDAR_URL			= 'https://testurl.com/ical.ics'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT	= 'DD-MM-YYYY | HH:mm'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE		= 'nl'; //en,hu, etc. 

// Calendar
var calendars = {}
calendars.f1 = {maxitems: 5, title:'', image:'', icalurl:'xxxxx'}
calendars.prive = {maxitems: 5, title: '', image: '', icalurl:'xxxxx'}

// Online Radio Stream Plugin, Note: you must enable plugin in column section 'streamplayer'
var _STREAMPLAYER_TRACKS     = [
   {"track":1,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
   {"track":2,"name":"Radio 538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
   {"track":3,"name":"Arrow Classic Rock","file":"http://www.garnierstreamingmedia.com/asx/streamerswitch.asp?stream=205"},
   {"track":4,"name":"Radio Veronica","file":"http://live.icecast.kpnstreaming.nl/skyradiolive-SRGSTR09.mp3"},
   {"track":5,"name":"Q-music","file":"http://live.icecast.kpnstreaming.nl/omroepbrabantlive-OmroepBrabantHq.m3u"},
];

var buttons = {}
buttons.moon = {width:8, isimage:true, refreshimage:60000, image: 'moon'}
buttons.cam_voor = { width:12, isimage:false, refresh:2000, image: 'xxxxx', url: 'xxxxx' }

//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default

var blocks = {}

//Schakelaars
blocks[226] = {} //Rolluik woonkamer - Selector
blocks[226]['title'] = 'Rolluik Woonkamer';
blocks[226]['width'] = 12;
blocks[226]['icon'] = '' 

blocks[225] = {} //Rolluik slaapkamer - Selector
blocks[225]['title'] = 'Rolluik Slaapkamer';
blocks[225]['width'] = 12;
blocks[225]['icon'] = '' 

blocks[6] = {} //Rolluik woonkamer
blocks[6]['width'] = 12;
blocks[6]['hide_stop'] = true;
blocks[6]['hide_data'] = false; 
blocks[6]['icon'] = 'fa-align-justify';

blocks[217] = {} //Rolluik slaapkamer
blocks[217]['width'] = 12;
blocks[217]['hide_stop'] = true;
blocks[217]['hide_data'] = false;
blocks[217]['icon'] = 'fa-align-justify';

blocks[461] = {} //Woonkamer achter - Selector
blocks[461]['title'] = 'Woonkamer achter';
blocks[461]['icon'] = '' 
blocks[461]['width'] = 12;

blocks[179] = {} //Woonkamer achter
blocks[179]['title'] = 'Woonkamer achter';
blocks[179]['width'] = 12;
//blocks[179]['hide_data'] = true; 

blocks[193] = {} //Woonkamer voor
blocks[193]['title'] = 'Woonkamer voor';
blocks[193]['width'] = 12;
//blocks[193]['hide_data'] = true; 

blocks[462] = {} //Woonkamer voor - Selector
blocks[462]['title'] = 'Woonkamer voor';
blocks[462]['icon'] = '' 
blocks[462]['width'] = 12;

blocks[443] = {} //Schemerlamp woonkamer
blocks[443]['title'] = 'Schemerlamp';
blocks[443]['width'] = 12;
blocks[443]['hide_data'] = true; 

blocks[463] = {} //Overloop
blocks[463]['title'] = 'Lamp Overloop';
blocks[463]['width'] = 12;
blocks[463]['hide_data'] = true; 

blocks[464] = {} //Zolder
blocks[464]['title'] = 'Lamp Zolder';
blocks[464]['width'] = 12;
blocks[464]['hide_data'] = true; 

blocks[562] = {} //Gang
blocks[562]['title'] = 'Lamp Gang';
blocks[562]['width'] = 12;
blocks[562]['hide_data'] = true; 

blocks[213] = {} //Yeelight Huiskamer
blocks[213]['title'] = 'Yeelight Woonkamer';
blocks[213]['width'] = 12;

blocks[214] = {} //Yeelight RGBW
blocks[214]['title'] = 'Yeelight Woonkamer';
blocks[214]['icon'] = ''
blocks[214]['width'] = 12;

blocks[485] = {} //Yeelight LEDStrip
blocks[485]['title'] = 'Yeelight LEDStrip';
blocks[485]['width'] = 12;

blocks[486] = {} //Yeelight LEDSTrip RGBW
blocks[486]['title'] = 'Yeelight LEDStrip';
blocks[486]['icon'] = ''
blocks[486]['width'] = 12;

blocks[452] = {} //Schemerlamp - Sara
blocks[452]['title'] = 'Lamp Sara';
blocks[452]['width'] = 12;
blocks[452]['hide_data'] = true; 

//Temperatuur
blocks[536] = {} //Thermostaat
blocks[536]['title'] = 'Thermostaat'
blocks[536]['width'] = 12;
blocks[536]['show_lastupdate'] = true;

blocks[256] = {} //Temp Rookmelder Woonkamer
blocks[256]['title'] = 'Woonkamer'
blocks[256]['width'] = 6;
blocks[256]['show_lastupdate'] = true;
blocks[256]['switch'] = true;

blocks[507] = {} //Temp Rookmelder Aanbouw
blocks[507]['title'] = 'Aanbouw'
blocks[507]['width'] = 6;
blocks[507]['show_lastupdate'] = true;
blocks[507]['switch'] = true;

blocks[271] = {} //Temp Rookmelder Verdieping
blocks[271]['title'] = 'Verdieping'
blocks[271]['width'] = 6;
blocks[271]['show_lastupdate'] = true;
blocks[271]['switch'] = true;

blocks[290] = {} //Temp Rookmelder Zolder
blocks[290]['title'] = 'Zolder'
blocks[290]['width'] = 6;
blocks[290]['show_lastupdate'] = true;
blocks[290]['switch'] = true;

//Overige
blocks[150] = {} //iPhone Harm
blocks[150]['width'] = 12;		
blocks[150]['icon'] = 'fa-male'
blocks[150]['show_lastupdate'] = true;
blocks[150]['protected'] = true;
blocks[150]['playsound'] = 'sounds/sonar.mp3';	
blocks[150]['title'] = 'Harm'

blocks[153] = {} //iPhone Nassira
blocks[153]['width'] = 12;		
blocks[153]['icon'] = 'fa-female'
blocks[153]['show_lastupdate'] = true;
blocks[153]['protected'] = true;
blocks[153]['playsound'] = 'sounds/sonar.mp3';	
blocks[153]['title'] = 'Nassira'

blocks[553] = {} //Sensor Voordeur
blocks[553]['title'] = 'Voordeur'
blocks[553]['icon'] = ' fa-lock'; 
blocks[553]['show_lastupdate'] = true;
blocks[553]['protected'] = true;
//blocks[553]['playsound'] = 'sounds/doorbell.mp3';	
blocks[553]['width'] = 12;

blocks[559] = {} //Sensor Achterdeur
blocks[559]['title'] = 'Achterdeur'
blocks[559]['icon'] = ' fa-lock'; 	
blocks[559]['show_lastupdate'] = true;
blocks[559]['protected'] = true;
//blocks[559]['playsound'] = 'sounds/doorbell.mp3';
blocks[559]['width'] = 12;

blocks[563] = {} //Alarm in-uitschakelen
blocks[563]['title'] = 'Beveiliging';
blocks[563]['icon'] = 'fa-shield';
blocks[563]['width'] = 12;


//Block Titles
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Familie agenda';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'F1 Kalender';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Afvalkalender';

//Empty Block
blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = '';

//blocks[1] = {}
//blocks[1]['width'] = 4; 							// 1 to 12, remove this line if you want to use the default (4)
//blocks[1]['title'] = 'Living room' 				// if you want change the name of switch different then domoticz
//blocks[1]['icon'] = 'fa-eye'; 					// if you want an other icon instead of the default, choose from: http://fontawesome.io/cheatsheet/
//blocks[1]['image'] = 'bulb_off.png'; 				// if you want to show an image instead if icon, place image in img/ folder
//blocks[1]['switch'] = true;						// if you want to switch title and data
//blocks[1]['hide_data'] = true; 					// if you want to hide the data of this block
//blocks[1]['show_lastupdate'] = true;				// show lastupdate time from device (per device)
//blocks[1]['protected'] = true;					// make switch protected (no actions on push)
//blocks[1]['playsound'] = 'sounds/sonar.mp3';		// play sound

var columns = {}

columns[1] = {}
columns[1]['blocks'] = [6,179,214,213,443,216,562,452,'blocktitle_4',256,507]
columns[1]['width'] = 3; 

columns[2] = {}
columns[2]['blocks'] = [217,193,486,485,464,463,536,'blocktitle_4',271,290]
columns[2]['width'] = 3; 

columns[3] = {}
columns[3]['blocks'] = [buttons.cam_voor, 'blocktitle_1',calendars.prive,'blocktitle_2',calendars.f1]
columns[3]['width'] = 4; 

columns[4] = {}
columns[4]['blocks'] = [563,'sunrise','currentweather_big','garbage',150,153,553,559]
columns[4]['width'] = 2; 

//TOP Bar
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

//Standby Screen
var columns_standby = {}

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

columns_standby[2] = {}
columns_standby[2]['blocks'] = ['blocktitle_1',calendars.prive]
columns_standby[2]['width'] = 4

columns_standby[3] = {}
columns_standby[3]['blocks'] = ['blocktitle_2',calendars.f1]
columns_standby[3]['width'] = 4

columns_standby[4] = {}
columns_standby[4]['blocks'] = ['blocktitle_3','blocktitle_4','garbage']
columns_standby[4]['width'] = 4

//Screens & Background
var screens = {}

screens[1] = {}
screens[1]['background'] = 'dv2-bg10.jpg';
screens[1]['columns'] = [1,2,3,4]
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

Mads
Posts: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Thursday 25 January 2018 20:34

yes offcouse
Spoiler: show
/*
var config = {}
config['domoticz_ip'] = 'http://192.168.1.188:8080';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';
config['idx_moonpicture'] = 1;


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

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalt$

var tvguide = {}
tvguide.dutch = { key:'dutch', icon: 'fa-television', width:7, channels: [1,3,4$

var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl',$
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url$
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}

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

var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage', buttons.moon]
columns[1]['width'] = 5;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1',tvguide.dutch,publictransport.ovinfobus]
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['sunrise','streamplayer',buttons.nunl,buttons.nos, butt$
columns[3]['width'] = 2;


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

var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg2.jpg';
screens[1]['columns'] = [1,2,3,

*/
if i remove the /* */, then i cant see the frontpage. just a white screen and an error in the console log:

Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4

User avatar
EdwinK
Posts: 1239
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK » Thursday 25 January 2018 20:49

is this ' butt$' maybe a the problem?
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

Mads
Posts: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Thursday 25 January 2018 20:57

EdwinK wrote:
Thursday 25 January 2018 20:49
is this ' butt$' maybe a the problem?
it is because i have copy/paste from TERMINAL

Mads
Posts: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Thursday 25 January 2018 21: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?

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

Re: Dashticz - General Discussions

Post by renerene » Thursday 25 January 2018 23:41

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 3:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Dashticz - Domotic issue

Post by Martijnvdb » Friday 26 January 2018 3:16

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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL » Friday 26 January 2018 10:30

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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL » Friday 26 January 2018 10:38

Mads wrote:
Thursday 25 January 2018 21: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: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Friday 26 January 2018 11:32

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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL » Friday 26 January 2018 12:07

Mads wrote:
Friday 26 January 2018 11: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: 31
Joined: Thursday 18 January 2018 21:57
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by Mads » Friday 26 January 2018 12:13

CaesarPL wrote:
Friday 26 January 2018 12:07
Mads wrote:
Friday 26 January 2018 11: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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - General Discussions

Post by CaesarPL » Friday 26 January 2018 12:24

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 12: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: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by htilburgs » Friday 26 January 2018 12:25

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 3:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb » Friday 26 January 2018 12:48

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 3:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb » Friday 26 January 2018 12:54

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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL » Friday 26 January 2018 12:56

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: 153
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by mlamie » Friday 26 January 2018 12: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]
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 3:12
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Domotic issue

Post by Martijnvdb » Friday 26 January 2018 13:01

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: 127
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Dashticz - Domotic issue

Post by CaesarPL » Friday 26 January 2018 13:40

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests