Page 140 of 184

Re: Dashticz - Two Questions

Posted: Friday 08 September 2017 9:49
by Cletus
Bingo! Bedankt Hansie!!! :)

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

Much appreciated!

Re: Dashticz - General Discussions

Posted: Saturday 09 September 2017 11:28
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?

Re: Dashticz - General Discussions

Posted: Sunday 10 September 2017 16:31
by PieterS
Problem solved: Syntax error because of the annotation...

// should be /* text */ :(

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 1:18
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.

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 10:27
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?

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 10:41
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.

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 11:13
by EdwinK
Can you post the content of your CONFIG.js (remove personal information like API-keys)

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 11:20
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]
*/

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 11:42
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)

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 12:09
by florisi
thanks, it works

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 13:22
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

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 17:51
by EdwinK
I think if you just have one screen in CONFIG.js it wouldn't swipe.

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 18:12
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 3966 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?

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 21:34
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.

Re: Dashticz - General Discussions

Posted: Sunday 17 September 2017 21:36
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?

Re: Dashticz - General Discussions

Posted: Tuesday 19 September 2017 10:31
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 3882 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 3861 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]

Re: Dashticz - General Discussions

Posted: Tuesday 19 September 2017 20:31
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.

Re: Dashticz - General Discussions

Posted: Wednesday 20 September 2017 10:35
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.

Re: Dashticz - General Discussions

Posted: Wednesday 20 September 2017 10:43
by woody4165
Try to use this in CONFIG.js

Code: Select all

var config = {}
config['use_favorites'] = 0;

Re: Dashticz - General Discussions

Posted: Thursday 21 September 2017 12:42
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 133 times
Domotics devices
Domotics devices
Domoticz.JPG (49.72 KiB) Viewed 4566 times
Regards