Page 1 of 1

Summary of new frontpage threat

Posted: Thursday 23 February 2017 11:47
by Ewaldharmsen
I took me a lot of time to read through the new frontpage pages, so to prevent new users doing the same, I think it a good idea to start a summary of that here.
In same time I can check if I understand it all correctly.

Re: Summary of new frontpage threat

Posted: Thursday 23 February 2017 11:48
by Ewaldharmsen
• Download frontpage from https://github.com/gerard33/frontpage
• Extract the ZIP and place it in the www folder of Domoticz
• Edit www\js\frontpage_settings.js:
o ~line 116: set roomplan to 0 fo all devices
o Change the URL to something like $.domoticzurl="http://Your local URL:8080";
o Change the array on line 115 and inwards:
 IDX: unique number as can be found in domoticz: http://Your local URL:8080/#/Devices
 Value determines the type of the device you add:
• Desc means that you are using the subcells. IDX needs to be 0 in that case
• You get all possible values for “value” by executing this in your browser: http://Your local URL:8080/json.htm?type=devices&plan=0
 Label is de location where the value should be displayed
 Description is the text which gets displayed
 Several options, see comments in the file
• Edit www\js\frontpage.js if you want to have an extra unit symbol, around line 670 you can add symbols, I added bf for my windspeed like this:
if(item.idx == idx_WindSnelheid && vdata > -100){
vdata=vdata+"<sup style=\'font-size:40%;vertical-align:top;position:relative;bottom:-5em;\'> bf</sup>";}
• Create a virtual switch in Domoticz. Set timers so that it turn ON when the sun goes down, goes off when sun comes up. Set value of the idx_IsDonker to the IDK value in www\js\frontpage_settings.js