NEW frontpage.html - request comments

Moderator: leecollings

roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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
custom_page.jpg (224.49 KiB) Viewed 4002 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 »

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 :D.
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 :).
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 »

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>
Last edited by G3rard on Tuesday 16 June 2015 22:40, edited 1 time in total.
Not using Domoticz anymore
PSYCHOTIC
Posts: 20
Joined: Saturday 21 February 2015 16:32
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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.
pimvolkert
Posts: 6
Joined: Sunday 11 January 2015 19:32
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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)
SweetPants

Re: NEW frontpage.html - request comments

Post 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
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 »

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.
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 »

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.
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 »

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.
Not using Domoticz anymore
SweetPants

Re: NEW frontpage.html - request comments

Post 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
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 »

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.
Not using Domoticz anymore
jossie67
Posts: 39
Joined: Wednesday 31 December 2014 12:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by jossie67 »

G3rard wrote:Here is the link to my updated frontpage.
http://we.tl/Hl5AoKa7Md
Could you upload your version again,the download link doesn't work any more
Raspberry Pi (3x)
Master Domoticz installed on a Synology
RFXCOM RFXtrx433E USB
RFLink
USB Z-Wave Mini Adapter
Mi-light
QuinLED
Landis+Gyr ZME120ACd
Kamstrup_M401
USB-IR-Schreib-Lesekopf Alecto WS1700
Watermeter with TCRT5000
Kodi
DS18B20
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 »

jossie67 wrote:
G3rard wrote:Here is the link to my updated frontpage.
http://we.tl/Hl5AoKa7Md
Could you upload your version again,the download link doesn't work any more
I have uploaded my frontpage to Github :D
https://github.com/gerard33/frontpage

I am new to Github so let me know if I have to change something.
Not using Domoticz anymore
jossie67
Posts: 39
Joined: Wednesday 31 December 2014 12:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by jossie67 »

G3rard wrote: I have uploaded my frontpage to Github :D
https://github.com/gerard33/frontpage

I am new to Github so let me know if I have to change something.
Thanks
Raspberry Pi (3x)
Master Domoticz installed on a Synology
RFXCOM RFXtrx433E USB
RFLink
USB Z-Wave Mini Adapter
Mi-light
QuinLED
Landis+Gyr ZME120ACd
Kamstrup_M401
USB-IR-Schreib-Lesekopf Alecto WS1700
Watermeter with TCRT5000
Kodi
DS18B20
pimvolkert
Posts: 6
Joined: Sunday 11 January 2015 19:32
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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?
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: NEW frontpage.html - request comments

Post by jannl »

Easiest way would be a perl or python script that runs continuously and computes min max temps and fills 2 virtual sensors.
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: NEW frontpage.html - request comments

Post 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.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by bizziebis »

One disadvantage of using the frontpage with a webcam stream enabled:

Image

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..
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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)
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: NEW frontpage.html - request comments

Post by jannl »

Or use snapshots to regularly update the image in frontpage and start the stream in a popup when you select it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest