Dashticz - General Discussions

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Cletus
Posts: 54
Joined: Wednesday 17 August 2016 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Purmerend, Netherlands
Contact:

Re: Dashticz - Two Questions

Post by Cletus »

Bingo! Bedankt Hansie!!! :)

I changed those two to 0 and now i get my scenes and other buttons!

Much appreciated!
This is our world now... the world of the electron and the switch, the beauty of the baud.
PieterS
Posts: 195
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by PieterS »

Nice interface! But There are different fontsizes between modules garbage, public transport and the newsblocks. So I like to change the size of text and format.
I looked in the Wiki and edited/saved custom.css in /volume1/@appstore/domoticz/www/dashticz/custom on my Syno.

Code: Select all

// Change font size of public transport module
.publictransport div {
    font-size: 20px; 
}
// Fontsize Trashcan Module
.trash .state div.trashrow {
    font-size: 20px;         // default 12px
}
.trash .state div.trashtoday {
    font-size: 26px;           // default 16px
}
.trash .state div.trashtomorrow {
    font-size: 24px;           // default 14px
}
I don't see any effect. Even after refreshing cache of browser. Is there need for changing any item in CONFIG.js or so? Any suggestions to solve my problem?
Synology with Domoticz build (V2024.7) in Docker
PieterS
Posts: 195
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by PieterS »

Problem solved: Syntax error because of the annotation...

// should be /* text */ :(
Synology with Domoticz build (V2024.7) in Docker
Slinkos
Posts: 81
Joined: Thursday 10 December 2015 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Dashticz - General Discussions

Post by Slinkos »

My CONFIG.js file doesn't seem to work. When I open the Dashticz page on any device, none of the config settings are working, when I config it in the browser it does work. But only on that device off course. First time I copied the dashboard manually to my Raspberry PI, second time I did a GIT pull, but with the same results.

UPDATE: I noticed that the whole config file is made a comment by the /* and */ , removing that solved it.
DomotRikz
Posts: 6
Joined: Sunday 26 July 2015 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by DomotRikz »

Some devices have many values and produce many blocks, such as smart meters. I would like to give those blocks different titles to clarify the values. I tried that by declaring the blocks multiple times:

Code: Select all

var blocks = {}
blocks['97_2'] = {}
blocks['97_2']['title'] = 'Verbruik vandaag';
blocks['97_2']['width'] = 6; 

blocks['97_5'] = {}
blocks['97_5']['title'] = 'Teruglevering vandaag';
blocks['97_5']['width'] = 6; 

var columns = {}
columns[3] = {}
columns[3]['width'] = 4;
columns[3]['blocks'] = ['97_2','97_5']
Now the correct values and titles are shown, but for some reason the block widths seem to be ignored. Is this a bug or is there another way to achieve this?
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz - General Discussions

Post by florisi »

I'm running Domoticz on Synology, latest version.
Downloaded the Dashticz master from Github.
Copied all the stuff to /volume1/web/dashticz.
Edited the CONFIG.js file with the right IP-address.
The only thing I get is a black screen.
It looks like it doesn't accept the 'var config = {}' etc.

Anyone an idea how to solve this?
I'm very very new to Domotics and Dashticz.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK »

Can you post the content of your CONFIG.js (remove personal information like API-keys)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz - General Discussions

Post by florisi »

It is the DEFAULT_CONFIG, just changed the IP address and removed the first line (/*)
Here is my CONFIG.js:

var config = {}
config['domoticz_ip'] = 'http://xxx.xxx.x.xxx:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

var _DOMOTICZ_IP = 'http://192.168.1.112:8084'

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/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', 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/ ... 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"},
];


var buttons = {}
buttons.nunl = {key: 'nunl', width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos', width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


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


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

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
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]
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]
*/
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK »

I think you also should remove the last */

Ps. Next time please use the [ code ] and [ /code ] tags (remove spaces). It makes it a bit more easy to read.

(edit: remove the last */ also, then it would work. Just tried with your CONFIG.js)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
florisi
Posts: 78
Joined: Saturday 30 July 2016 10:14
Target OS: Linux
Domoticz version: 2020beta
Location: Arnhem
Contact:

Re: Dashticz - General Discussions

Post by florisi »

thanks, it works
frans1967
Posts: 2
Joined: Sunday 17 September 2017 13:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by frans1967 »

Hi all,

I have installed domoticz and dashticz on a RPI and a 5"lcd touchscreen. i open dashticz ik kiosk mode (Chromium). when i touch the dashticz screen it swipes a bit, so the viryual button not activating.
my question, is it possible to disable the swipe function at all. i want a static dashtic screen.

Frans
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - General Discussions

Post by EdwinK »

I think if you just have one screen in CONFIG.js it wouldn't swipe.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
PieterS
Posts: 195
Joined: Wednesday 31 May 2017 16:06
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: NL
Contact:

Re: Dashticz - General Discussions

Post by PieterS »

ImageI would like to show the values of my solarpanels. They are logged to PVoutput. In Domoticz I got IDX 27 till 30.
IDX Omnik.PNG
IDX Omnik.PNG (13.08 KiB) Viewed 3972 times
But when i define blocks with this IDX and put them at the end of column 1

Code: Select all

blocks[28] = {}
blocks[28]['title'] = 'Temp Omnik';
blocks[28]['width'] = 4;

blocks[29] = {}
blocks[29]['title'] = 'Voltage Omnik';
blocks[29]['width'] = 4;

blocks[30] = {}
blocks[30]['title'] = 'Opbrengst Omnik';
blocks[30]['width'] = 4; 

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1',31,110,10,55,11,18,9,14,477,'blocktitle_2',377,93,512,3,28,29,30]
columns[1]['width'] = 5;
I get 2 empty bloks in Dashticz and only the block with Voltage shows oke.. :roll: In Domoticz no problems.. Anybody with an solution?
Attachments
Empty blocks pvoutput.PNG
Empty blocks pvoutput.PNG (79.82 KiB) Viewed 3972 times
Synology with Domoticz build (V2024.7) in Docker
Peacock
Posts: 10
Joined: Friday 20 February 2015 21:19
Target OS: NAS (Synology & others)
Domoticz version: Latest
Contact:

Re: Dashticz - General Discussions

Post by Peacock »

Can someone help here, I really do not know why I keep on getting a blank page. I have altered the CONFIG.js as per instructions, still no luck after a dozen retries or so... (even if I change my IP to a non existent one it keeps on getting an empty page, so I would reckon it cannot logon correctly on domoticz or something like that). Thanks for your time...

This is my CONFIG.js (I left username and password, there I fill in the ones I uses to logon to Domoticz)

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://username:[email protected]:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';

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/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', 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 buttons = {}
buttons.nunl = {key: 'nunl',  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos',  width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}


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


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
					
columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage']
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]
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]
Edit:
Even if I allow Domoticz to acces without password on local address (192.168.2.7) and I leave out the username:password bit in the CONFIG.js it only shows a blank page. Further I noticed some CONFIG files with a lot more (and different coding iso array var config = {} with var _LANGUAGE = nl_NL etc). What is the difference?

btw I use version 3.8153 Domoticz.

UPDATE: my mistake, something went wrong with copying dashticz to webfolder. Not all files had been copied.
Last edited by Peacock on Tuesday 19 September 2017 9:23, edited 3 times in total.
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Dashticz - General Discussions

Post by levynger »

started to test dashticz, really liked it.
however i noticed that some dummyHW switch devices i have in my db, doesnt seems to show.
created new dummyHW, without anything - also failed to load in dashticz page.
i do have other dummyHW switch devices, mainly for mqtt messages - and they do work..

any idea?
Peacock
Posts: 10
Joined: Friday 20 February 2015 21:19
Target OS: NAS (Synology & others)
Domoticz version: Latest
Contact:

Re: Dashticz - General Discussions

Post by Peacock »

I do not seem to get the Favorites loaded into Dashticz. Can anyone help, I do see one warning in the console, see below.
Schermafbeelding 2017-09-19 om 10.26.24.jpg
Schermafbeelding 2017-09-19 om 10.26.24.jpg (113.22 KiB) Viewed 3888 times
EDIT:
When I add custom blocks with a typical switchIDx into the Config, I do get the values.
Schermafbeelding 2017-09-19 om 11.40.43.png
Schermafbeelding 2017-09-19 om 11.40.43.png (391.85 KiB) Viewed 3867 times
My CONFIG.js

Code: Select all

var config = {}
config['domoticz_ip'] = 'http://192.168.2.7:8084';
config['app_title'] = 'Dashticz';
config['domoticz_refresh'] = '60';
config['dashticz_refresh'] = '60';
config['default_news_url'] = 'http://www.nu.nl/rss/algemeen';
config['news_scroll_after'] = '7';
config['standby_after'] = 0;
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'hours';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'en_US';
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'] = '48fe526bc013203b';
config['wu_city'] = 'Luttelgeest';
config['wu_name'] = 'Weer';
config['wu_country'] = 'NL';
config['idx_moonpicture'] = 0;
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 0;
config['garbage_company'] = 'hvc';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '8315PL';
config['garbage_street'] = 'Uiterdijkenweg';
config['garbage_housenumber'] = '13';
config['garbage_maxitems'] = '4';
config['garbage_width'] = '5';
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 1;
config['use_favorites'] = 1;
config['last_update'] = 1;
config['hide_topbar'] = 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;

//var _LANGUAGE 				= 'nl_NL'; //or: en_US, fr_FR, hu_HU
//var _HOST_DOMOTICZ		  	= 'http://192.168.2.7:8084';
//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 trashnames = {}
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';
trashnames['Rest'] = 'Rest'; //LEAVE EMPTY IF YOU WANT TO HIDE IT

var publictransport = {}
publictransport.ovinfobus = { show_via: false, station: 'son-en-breugel/bushalte-penseelkever', provider: '9292-bus', icon: 'bus', 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 buttons = {}
buttons.nunl = {key: 'nunl',  width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', newwindow:true, url: 'http://www.nu.nl'}
buttons.nos = {key: 'nos',  width:12, icon: 'fa-newspaper-o', title: 'Nos', url: 'http://www.nos.nl'}

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


var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']
					
columns[1] = {}
columns[1]['blocks'] = [36,52,'currentweather_big','weather','garbage']
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]
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]
Ingmar
Posts: 51
Joined: Sunday 04 May 2014 1:34
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - General Discussions

Post by Ingmar »

The favourites also didn't automatically add in my dashboard, don't know why. I just manually entered everything it's not that much work anyway.
Synology NAS with stable release, AEON Z-wave, RFXCOM, Toon, Echo Dot, HAbridge, HarmonyHUB, Dashticz.
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Dashticz - General Discussions

Post by levynger »

levynger wrote: Sunday 17 September 2017 21:36 started to test dashticz, really liked it.
however i noticed that some dummyHW switch devices i have in my db, doesnt seems to show.
created new dummyHW, without anything - also failed to load in dashticz page.
i do have other dummyHW switch devices, mainly for mqtt messages - and they do work..

any idea?
seems that i have found the solution - event if working with manual blocks and positioning in CONFIG.js, the switch must be in the favorite page in domoticz.
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 »

Try to use this in CONFIG.js

Code: Select all

var config = {}
config['use_favorites'] = 0;
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
hdpop38
Posts: 3
Joined: Thursday 21 September 2017 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - General Discussions

Post by hdpop38 »

Hi All,

I started to use Dashticz to see devices of Domoticz. Started it's easy but something not work ( perhaps some seting was fail )
I'm able to see temperature and log of domoticz.
But I not able to see switch devices IDX=123 with this code

blocks[123] = {}
blocks[123]['icon'] = 'fa-female';
blocks[123]['title'] = 'Annie';

And another thing, I not see my favorites devices declared in domoticz

If somebody can help me...
CONFIG.js
My Config.js
(4.87 KiB) Downloaded 134 times
Domotics devices
Domotics devices
Domoticz.JPG (49.72 KiB) Viewed 4572 times
Regards
Locked

Who is online

Users browsing this forum: No registered users and 0 guests