Page 40 of 66
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 15:30
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
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 16:16
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.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 17:20
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.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 17:23
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.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 17:28
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!
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 17:54
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
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 21:02
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;
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 21:17
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økken','1','0'],
.
.
I find this a lot easier than looking up index numbers...
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 22:09
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 (10.93 KiB) Viewed 3022 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.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 22:17
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.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 November 2015 23:21
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!!
Re: NEW frontpage.html - request comments
Posted: Monday 30 November 2015 7:04
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.
Re: NEW frontpage.html - request comments
Posted: Monday 30 November 2015 13:21
by SwordFish
@G3rard,
Here is my frontpage.js.
Thanks
Re: NEW frontpage.html - request comments
Posted: Monday 30 November 2015 20:53
by G3rard
@SwordFish
Here is the changed frontpage.js file which is working over here.
Let me know if it is working for you.
Re: NEW frontpage.html - request comments
Posted: Monday 30 November 2015 20:56
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
Re: NEW frontpage.html - request comments
Posted: Thursday 03 December 2015 21:41
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
Re: NEW frontpage.html - request comments
Posted: Monday 07 December 2015 20:03
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
Re: NEW frontpage.html - request comments
Posted: Tuesday 08 December 2015 0:44
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?
Re: NEW frontpage.html - request comments
Posted: Tuesday 08 December 2015 19:10
by SwordFish
@G3rard
Its working
Thanks for helping
Re: NEW frontpage.html - request comments
Posted: Wednesday 09 December 2015 23:23
by markk
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?