NEW frontpage.html - request comments

Moderator: leecollings

User avatar
havnegata
Posts: 114
Joined: Wednesday 10 September 2014 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Location: Norway
Contact:

Re: NEW frontpage.html - request comments

Post by havnegata »

G3rard wrote:
havnegata wrote:So far so good! I'm reading G3rard's post on how to get the alarm working: http://www.domoticz.com/forum/viewtopic ... nel#p38181
I have the icon correct and the security panel pops up, but when I try to push the numbers for my code nothing happens, only sound. Any ideas?
Which browser are you using? I use Chrome and it works over here.
I'm using Chrome as well. Do you know where I can find the html code for this panel? Sadly my html skills are low, but if I was to know where to look, it might be a chance to discover something wrong :)
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

Thanks for the reply. Yes I have checked that out, but I don't get it to work.

G3rard wrote:
SwordFish wrote:G3rard, how do I get the 33dimmer.png enz to work?
Nice frontpage.
Thanks.

Did you already check this post?
http://www.domoticz.com/forum/viewtopic ... mer#p37199
I am not using that function so let me know if this doesn't work then I will have another look at it.
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by G3rard »

havnegata wrote: I'm using Chrome as well. Do you know where I can find the html code for this panel? Sadly my html skills are low, but if I was to know where to look, it might be a chance to discover something wrong :)
Does the security panel work when you open it from Domoticz? The frontpage opens the panel from Domoticz.
Not using Domoticz anymore
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by G3rard »

SwordFish wrote:Thanks for the reply. Yes I have checked that out, but I don't get it to work.
I will look into this. What type of dimmer are you using (kaku, zwave, hue)? Because I think not all dimmers use the same dim levels in the frontpage.
Not using Domoticz anymore
User avatar
havnegata
Posts: 114
Joined: Wednesday 10 September 2014 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Location: Norway
Contact:

Re: NEW frontpage.html - request comments

Post by havnegata »

G3rard wrote:
havnegata wrote: I'm using Chrome as well. Do you know where I can find the html code for this panel? Sadly my html skills are low, but if I was to know where to look, it might be a chance to discover something wrong :)
Does the security panel work when you open it from Domoticz? The frontpage opens the panel from Domoticz.
I will check it when I come home tonight. Thanks for your willingness in helping me!
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

G3rard wrote:
SwordFish wrote:Thanks for the reply. Yes I have checked that out, but I don't get it to work.
I will look into this. What type of dimmer are you using (kaku, zwave, hue)? Because I think not all dimmers use the same dim levels in the frontpage.
Thanks,
I use kaku dimmers
hansrune
Posts: 49
Joined: Monday 07 October 2013 10:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by hansrune »

So much good work in here. Let me add my 2 cents, in case you find this useful.

Here is a small trick in case you access your frontpage using different URLs. I have an internal URL that I use at home with tablets , and with no password protection to access the frontpage over plain http. I also use an internet accessible URL using https and a public DNS name to access the same. I think the following works for most browsers in frontpage_settings.js:

Code: Select all

// ############################################################################################################
// #### vvvvv   USER VALUES below vvvvv   #######
// ############################################################################################################
$(document).ready(function() {
        $.domoticzurl=window.location.protocol + "//" + window.location.host;
hansrune
Posts: 49
Joined: Monday 07 October 2013 10:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by hansrune »

Why use index numbers for user variables where the variable name will do? Sensors need to be replaced from time to time, and some even need to be replaced with new Domoticz devices after battery replacement. The following small change in frontpage.js (last line adds $.PageArray[ii][0] === item.Name || to the original if-statement) enables use of both the device name (item.Name) or device index (item.idx):

Code: Select all

    var jurl=$.domoticzurl+"/json.htm?type=devices&plan="+$.roomplan+"&jsoncallback=?";
    $.getJSON(jurl,
    {
        format: "json"
    },
    function(data) {
    if (typeof data.result != 'undefined') {
    $.each(data.result, function(i,item){
    for( var ii = 0, len = $.PageArray.length; ii < len; ii++ ) {
    if( $.PageArray[ii][0] === item.Name || $.PageArray[ii][0] === item.idx ) { 
... and frontpage_settings.js can then use the device names OR index numbers as follows

Code: Select all

.
.
['168','Status',                        'cell11',       'Garageport','0','0'],
['Hovedstue Temp','Temp',               'cell12',       'Stue','1','0'],
['Kj\u00f8kken Temp','Temp',            'cell13',       'Kj&oslash;kken','1','0'],
.
.
I find this a lot easier than looking up index numbers...
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by G3rard »

SwordFish wrote:Thanks for the reply. Yes I have checked that out, but I don't get it to work.

G3rard wrote:
SwordFish wrote:G3rard, how do I get the 33dimmer.png enz to work?
Nice frontpage.
Thanks.

Did you already check this post?
http://www.domoticz.com/forum/viewtopic ... mer#p37199
I am not using that function so let me know if this doesn't work then I will have another look at it.
I got it working here.
dimmer.jpg
dimmer.jpg (10.93 KiB) Viewed 3023 times
Because I have made several changes in the dimmer code in the frontpage.js file which is on Github, it is the easiest if you send me your frontpage.js file (or just drop the code here) and I will change it for you.
However the color of the dimmer.png files is other than the colors I use in the frontpage.
Not using Domoticz anymore
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by G3rard »

hansrune wrote:Why use index numbers for user variables where the variable name will do? Sensors need to be replaced from time to time, and some even need to be replaced with new Domoticz devices after battery replacement. The following small change in frontpage.js (last line adds $.PageArray[ii][0] === item.Name || to the original if-statement) enables use of both the device name (item.Name) or device index (item.idx):
I find this a lot easier than looking up index numbers...
Great addition, works nice indeed.
Not using Domoticz anymore
User avatar
havnegata
Posts: 114
Joined: Wednesday 10 September 2014 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10162
Location: Norway
Contact:

Re: NEW frontpage.html - request comments

Post by havnegata »

havnegata wrote:
G3rard wrote:
havnegata wrote: I'm using Chrome as well. Do you know where I can find the html code for this panel? Sadly my html skills are low, but if I was to know where to look, it might be a chance to discover something wrong :)
Does the security panel work when you open it from Domoticz? The frontpage opens the panel from Domoticz.
I will check it when I come home tonight. Thanks for your willingness in helping me!
G3rard, your assumptions were right. Sec panel was no longer working in Domoticz either. An upgrade to the latest version of Domoticz fixed everything. Thanks alot G3rard for the job on this perfect frontpage!!
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

I got it working here.
dimmer.jpg
Because I have made several changes in the dimmer code in the frontpage.js file which is on Github, it is the easiest if you send me your frontpage.js file (or just drop the code here) and I will change it for you.
However the color of the dimmer.png files is other than the colors I use in the frontpage.
Thanks verry much.
I will send the frontpage.js tonight after work.
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

@G3rard,
Here is my frontpage.js.
Thanks
Attachments
frontpage.zip
(9.22 KiB) Downloaded 140 times
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by G3rard »

@SwordFish
Here is the changed frontpage.js file which is working over here.
Let me know if it is working for you.
frontpage.zip
(9.34 KiB) Downloaded 217 times
Not using Domoticz anymore
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

G3rard wrote:@SwordFish
Here is the changed frontpage.js file which is working over here.
Let me know if it is working for you.
frontpage.zip
Thanks
I will try it and let you known
miljume
Posts: 62
Joined: Thursday 03 December 2015 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8742
Contact:

Re: NEW frontpage.html - request comments

Post by miljume »

First of all really great work with the frontpage!

I am new to this board and have just started some work with my RPi and some sensors and I will publish sensor information on the frontpage through a 7 inch tablet

One question: Would it be possible to get a popup with the log graph for a sensor when you click on that cell?

So that you easy could look at the historical data for that sensor

Regards,
Mikael
miljume
Posts: 62
Joined: Thursday 03 December 2015 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8742
Contact:

Re: NEW frontpage.html - request comments

Post by miljume »

Sorry, but I dont know what you mean?

Did a search of the forum without finding the info but perhaps I didnt search thorough enough

Regards,
Mikael
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by markk »

hi. Ive recently bought a Kindle fire which I hope to one day use to display a "front page" of Domoticz in my hallway. i got lost on the installation instructions in the very first post on this thread almost a year ago and hoped to be able to suss it out from all the others or wait for a wiki. Alas, 42 pages of posts later I'm still none the wiser and cant get past line three of the first ever set of instructions and still no wiki. anyway, here goes with possibly the most stupid question ever asked on here:How do I adjust user settings in HTML? :oops:
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: NEW frontpage.html - request comments

Post by SwordFish »

@G3rard
Its working :P
Thanks for helping
Attachments
Knipsel.JPG
Knipsel.JPG (12.68 KiB) Viewed 3463 times
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by markk »

vil1driver wrote: Or wiki CustomStatusPage for my work
http://domoticz.com/wiki/CustomStatusPage


I didn't know this wiki existed. I couldn't find it on the wiki page.

I'm trying to follow but am stuck really early on. This part: "Now copy the frontpage_example.html to another file, for example frontpage.html"
Could someone explain please?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests