Page 33 of 66
Re: NEW frontpage.html - request comments
Posted: Wednesday 10 June 2015 23:43
by roblom
I have a custom page with the example that is included in Domoticz. This works like a charm.
Now I installed the frontpage of G3rard but I can't get it to work. What more do I have to do than change the user values in "frontpage_settings.js"?
I filled in the correct IP, changed the number of the roomplan (the same I use with the working custom page) and set some idx numbers (also the same like the other custom page). The only thing I get is.

- custom_page.jpg (224.49 KiB) Viewed 4129 times
Re: NEW frontpage.html - request comments
Posted: Thursday 11 June 2015 0:03
by G3rard
Luuc_a wrote:
so I only have a up and down button and this is working for blinds with only On/Off status.
and what doe you mean with?
I have set the blinds with value Data in frontpage_settings.js, maybe a bit strange but it is working

.
I meant the following line in frontpage_settings.js.
Code: Select all
['71','Data', 'cell19', 'Scherm (V)','1','0'],
So I gave the value Data to the blinds. I thought maybe that could be of influence regarding the stop button. But if you have blinds without a stop function then that's the cause of the issue

.
Re: NEW frontpage.html - request comments
Posted: Thursday 11 June 2015 0:11
by G3rard
roblom wrote:I have a custom page with the example that is included in Domoticz. This works like a charm.
Now I installed the frontpage of G3rard but I can't get it to work. What more do I have to do than change the user values in "frontpage_settings.js"?
I filled in the correct IP, changed the number of the roomplan (the same I use with the working custom page) and set some idx numbers (also the same like the other custom page). The only thing I get is.
Edit: I use the following html code in the template folder to show the frontpage in the menu Custom. That's working fine.
I think it's important that the frontpage files and folders are either in the www folder or on a webserver. Then in the HTML code below you can put that page in an i-frame.
Code: Select all
<html>
<head>
<div align="center">
<iframe src="http://<ip>/<folder>/frontpage.html" name="targetframe" allowTransparency="true" scrolling="no" frameborder="0" width="1024" height="750">
</iframe>
</div>
</head>
</html>
Re: NEW frontpage.html - request comments
Posted: Tuesday 16 June 2015 21:28
by PSYCHOTIC
Guys,
Is it possible to put a graph (voltage & counter) on the frontpage?
Greetz P.S.Y.C.H.O.T.I.C.
Re: NEW frontpage.html - request comments
Posted: Tuesday 16 June 2015 21:51
by pimvolkert
Another feature request
Display Max and Min temperature of today in one cell. Or is this already possible?
(I must confess that as a happy Frontpage user I have difficulties finding information in this lloonngg thread)
Re: NEW frontpage.html - request comments
Posted: Saturday 20 June 2015 20:41
by SweetPants
Guys,
Great topic and nice work. I have been playing around with it on a desktop and looks really nice.
I want to use my old nexus 7 (1280x800) and hang it on the wall, but I can't get the screen size right.
Is there an easy way to set the screen size in frontpage?
Regards
Re: NEW frontpage.html - request comments
Posted: Sunday 21 June 2015 0:20
by G3rard
PSYCHOTIC wrote:Guys,
Is it possible to put a graph (voltage & counter) on the frontpage?
Greetz P.S.Y.C.H.O.T.I.C.
If you have a webpage with the graph available, then you can add this to the frontpage.html file.
Re: NEW frontpage.html - request comments
Posted: Sunday 21 June 2015 0:40
by G3rard
pimvolkert wrote:Another feature request
Display Max and Min temperature of today in one cell. Or is this already possible?
(I must confess that as a happy Frontpage user I have difficulties finding information in this lloonngg thread)
Do you have something for the min and max temperature? Because two values in a cell is possible.
Re: NEW frontpage.html - request comments
Posted: Sunday 21 June 2015 0:44
by G3rard
SweetPants wrote:Guys,
Great topic and nice work. I have been playing around with it on a desktop and looks really nice.
I want to use my old nexus 7 (1280x800) and hang it on the wall, but I can't get the screen size right.
Is there an easy way to set the screen size in frontpage?
Regards
I have my frontpage working on my Nexus 7, you can download it from this topic.
I changed the css a little bit and am using an app to hide the navigation and status bars.
Re: NEW frontpage.html - request comments
Posted: Sunday 21 June 2015 9:52
by SweetPants
G3rard wrote:I have my frontpage working on my Nexus 7, you can download it from this topic.
Mine is the old Nexus 7 (2012) one (1280 x 800), have tried yours but the bottom row of buttons fels of the screen
Re: NEW frontpage.html - request comments
Posted: Sunday 21 June 2015 17:17
by G3rard
SweetPants wrote:Mine is the old Nexus 7 (2012) one (1280 x 800), have tried yours but the bottom row of buttons fels of the screen
That's a different resolution indeed than my Nexus 7 from 2013. The CSS is not responsive, so you can either make it responsive (the hard way) or remove some cells (the easy way) so it will fit your screen.
Re: NEW frontpage.html - request comments
Posted: Monday 22 June 2015 14:22
by jossie67
Could you upload your version again,the download link doesn't work any more
Re: NEW frontpage.html - request comments
Posted: Monday 22 June 2015 20:54
by G3rard
jossie67 wrote:
Could you upload your version again,the download link doesn't work any more
I have uploaded my frontpage to Github
https://github.com/gerard33/frontpage
I am new to Github so let me know if I have to change something.
Re: NEW frontpage.html - request comments
Posted: Monday 22 June 2015 22:08
by jossie67
Re: NEW frontpage.html - request comments
Posted: Tuesday 23 June 2015 17:45
by pimvolkert
G3rard wrote:pimvolkert wrote:Another feature request
Display Max and Min temperature of today in one cell. Or is this already possible?
(I must confess that as a happy Frontpage user I have difficulties finding information in this lloonngg thread)
Do you have something for the min and max temperature? Because two values in a cell is possible.
Yes, two values in a cell is a very nice feature and which actually inspired me to my feature request.l And no I do not have a min and max temperature. That is a problem (for me). The min/max temperature is probable not stored and needs to be calculated every so many minutes. Anyone an idea how to do that?
Re: NEW frontpage.html - request comments
Posted: Wednesday 24 June 2015 7:37
by jannl
Easiest way would be a perl or python script that runs continuously and computes min max temps and fills 2 virtual sensors.
Re: NEW frontpage.html - request comments
Posted: Wednesday 24 June 2015 8:45
by pj-r
If it dont need to be fully real time.. For today or last 24 hours this way could work:
Code: Select all
http://DOMO_IP:DOMO_PORT/json.htm?type=graph&sensor=temp&idx=TEMP_SENSOR_IDX&range=day
What results this kinda json:
Code: Select all
{
"result" : [
{
"d" : "2015-06-19 09:35",
"hu" : "93",
"te" : 13.0
},
{
"d" : "2015-06-19 09:40",
"hu" : "93",
"te" : 13.0
},
........... Just making it shorter ...........
{
"d" : "2015-06-24 09:30",
"hu" : "95",
"te" : 14.90
},
{
"d" : "2015-06-24 09:35",
"hu" : "95",
"te" : 14.90
}
],
"status" : "OK",
"title" : "Graph temp day"
}
Just loop it thru in js and pick min & max temps.
For just today you need to filter out yesterdays values.
EDIT:
It looks like domoticz already calculates that information for monthly graph:
Code: Select all
http://DOMO_IP:DOMO_PORT/json.htm?type=graph&sensor=temp&idx=TEMP_SENSOR_IDX&range=month
What result is this:
Code: Select all
{
"result" : [
{
"d" : "2015-05-24",
"hu" : "73",
"ta" : 10.660,
"te" : 16.40,
"tm" : 5.90
},
........... Just making it shorter ...........
{
"d" : "2015-06-24",
"hu" : "95",
"ta" : 15.17457627118640,
"te" : 15.90,
"tm" : 14.60
}
],
"status" : "OK",
"title" : "Graph temp month"
}
Where last entry "te" is the max and "tm" is min of today.
Re: NEW frontpage.html - request comments
Posted: Friday 10 July 2015 19:45
by bizziebis
One disadvantage of using the frontpage with a webcam stream enabled:
I can turn wifi off when the screen is off, but then you have to wait a while when you are in front of your tablet and want to switch something on or off..
Re: NEW frontpage.html - request comments
Posted: Tuesday 14 July 2015 21:00
by BarryT
bizziebis wrote:One disadvantage of using the frontpage with a webcam stream enabled:
I can turn wifi off when the screen is off, but then you have to wait a while when you are in front of your tablet and want to switch something on or off..
You can make a javascript with a timer/refresh/reload/redirect in it, then it shows only some minutes (or seconds) the webcam frame, and then goes to black (or another iframe/page)
Re: NEW frontpage.html - request comments
Posted: Wednesday 15 July 2015 7:40
by jannl
Or use snapshots to regularly update the image in frontpage and start the stream in a popup when you select it.