NEW frontpage.html - request comments

Moderator: leecollings

woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: NEW frontpage.html - request comments

Post by woody4165 »

They are your devices!!!
If you have same functionality as described (ie. the var idx_CPUusage = '190' is a dummy device that monitor your cpu temp, and in Domoticz is labeled as 190), just change with your idx, if not the same.
You should put here all your idx that you want to be shown or that are needed in the frontpage.

It's the main thing you have to do if you want to customize the frontpage.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Xroads »

Thanks.
That made everything clear.
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
floris74
Posts: 75
Joined: Sunday 30 November 2014 8:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hoorn, Netherlands
Contact:

Re: RE: Re: NEW frontpage.html - request comments

Post by floris74 »

SwordFish wrote:
floris74 wrote:Hey SwordFish,

which tablet do you use? and can you see the whole frontpage, even with the statusbar? In immersive mode with only the statusbar my page freezes also and i cant see the bottom of the frontpage.html
I don't use immersive mode. I think I have a tab3.
Yes I see the whole page because I make it for my screen.
Try to adjust the scale in the index.html
Thanks. I still have the problem, but maybe I buy a tab 3 7 inch if I know that I don't have to edit the scale when I see the info bar at the top

Floris

Verstuurd vanaf mijn SM-G920F met Tapatalk
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Xroads »

Has anyone got Logitech media player to work from this frontpage??
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: NEW frontpage.html - request comments

Post by Flopp »

I have problem to view Frontpage in Domoticz. It is working fine when I open the HTML file directly, but when select it inside Domoticz it looks crappy.

I tried to read here in forum but I couldnt find it.

Anyone have any idea?

1 is in Domoticz
domoticz1.png
domoticz1.png (174.62 KiB) Viewed 3225 times
2 is directly
domoticz2.png
domoticz2.png (134.06 KiB) Viewed 3225 times
The rest od Domoticz gets also very strange when I select eg. Temperature, i have to resfresh(F5) to be able to view that Tab otherwise I look like this
domoticz3.png
domoticz3.png (180.39 KiB) Viewed 3222 times
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: NEW frontpage.html - request comments

Post by woody4165 »

Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Xroads
Posts: 30
Joined: Thursday 25 February 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Xroads »

As far as I have read, you can't put the frontpage in its own directory.
It has to be in the domoticz/www, otherwise it won't work.
Raspberry pi 2
Razberry z-wave module with Fibaro dimmer, relay and pir and Dlink pir.
433mhz RFlink with 5 pcs. on/off switches
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

NEW frontpage.html - request comments

Post by Flopp »

woody4165 wrote:Have you tried http://YOURIPADDRESS:8080/frontpage.html ?
After I copied the files from www, it worked but then I can't find it in custom.
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: NEW frontpage.html - request comments

Post by Flopp »

Xroads wrote:As far as I have read, you can't put the frontpage in its own directory.
It has to be in the domoticz/www, otherwise it won't work.
Can't be correct. If I wove all my files from template to www I can't find it in custom.
In template there was a file names custom. Example so it must be in Template folder you shall out your own custom frontpage
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: NEW frontpage.html - request comments

Post by woody4165 »

what does it mean that you can't find in custom?

I have the frontpage.htm in domoticz/www
other files, .js, .php in the relative folder always in domoticz/www
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: NEW frontpage.html - request comments

Post by Flopp »

If you want to have a Custom frontpage it will be available from Custom Tab. I still want to use the original Dashboard.
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 »

Not sure what you mean, I also use both, depending on the url I get the correct data;
- http://ip:port/ -> gives default dashboard
- http://ip:port:/frontpage.html -> gives the forntpage data

Just make sure all files have different names, so nothing gets overwritten.
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: NEW frontpage.html - request comments

Post by Flopp »

jannl wrote:Not sure what you mean, I also use both, depending on the url I get the correct data;
- http://ip:port/ -> gives default dashboard
- http://ip:port:/frontpage.html -> gives the forntpage data

Just make sure all files have different names, so nothing gets overwritten.
This is what I mean, I can choose from different Frontpage by clicking at Custom-tab, each choose is a HTML file in ...\www\templates
Attachments
domoticz4.png
domoticz4.png (129.75 KiB) Viewed 3149 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 »

Flopp wrote:
jannl wrote:Not sure what you mean, I also use both, depending on the url I get the correct data;
- http://ip:port/ -> gives default dashboard
- http://ip:port:/frontpage.html -> gives the forntpage data

Just make sure all files have different names, so nothing gets overwritten.
This is what I mean, I can choose from different Frontpage by clicking at Custom-tab, each choose is a HTML file in ...\www\templates
Just add a HTML file with an iframe to the frontpage in the templates folder.

I am using the following html

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="748">
</iframe>
</div>

</head>

</html>
Not using Domoticz anymore
Flopp
Posts: 279
Joined: Sunday 03 January 2016 14:55
Target OS: -
Domoticz version:
Location: Sweden
Contact:

Re: NEW frontpage.html - request comments

Post by Flopp »

G3rard wrote:
Flopp wrote:
jannl wrote:Not sure what you mean, I also use both, depending on the url I get the correct data;
- http://ip:port/ -> gives default dashboard
- http://ip:port:/frontpage.html -> gives the forntpage data

Just make sure all files have different names, so nothing gets overwritten.
This is what I mean, I can choose from different Frontpage by clicking at Custom-tab, each choose is a HTML file in ...\www\templates
Just add a HTML file with an iframe to the frontpage in the templates folder.

I am using the following html

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="748">
</iframe>
</div>

</head>

</html>
Thank you now it works like I want :)
M4RcO
Posts: 11
Joined: Saturday 12 March 2016 18:45
Target OS: Windows
Domoticz version: 3.4834
Location: Germany
Contact:

Re: NEW frontpage.html - request comments

Post by M4RcO »

Hello Everyone!

I use the Frontpage from G3rard, and the Frontpage ist working but not the day/night css.

How i can Configure that? is this IsDonker ? But what is IsDonker?

Can anyone help me pls ?

Thx :)
Hardware: Shuttle XS35V5Pro
OS: Windows 7 Pro x64
Domoticz branch: beta
Domoticz Version: V3.5010
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: NEW frontpage.html - request comments

Post by woody4165 »

isDonker is the number of a "special" dummy switch device that you have to create and you have to define a Timer for it like below

Image

You have to set isDonker as the idx number of this switch in the frontpage_setting.js and in frontpage.js there is the logic to evaluate if it's On or Off.
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
M4RcO
Posts: 11
Joined: Saturday 12 March 2016 18:45
Target OS: Windows
Domoticz version: 3.4834
Location: Germany
Contact:

Re: NEW frontpage.html - request comments

Post by M4RcO »

woody4165 wrote:isDonker is the number of a "special" dummy switch device that you have to create and you have to define a Timer for it like below

Image

You have to set isDonker as the idx number of this switch in the frontpage_setting.js and in frontpage.js there is the logic to evaluate if it's On or Off.
Thanks!
So i created a switch but it isnt working

Its all time the night css.

Help pls
Hardware: Shuttle XS35V5Pro
OS: Windows 7 Pro x64
Domoticz branch: beta
Domoticz Version: V3.5010
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: NEW frontpage.html - request comments

Post by woody4165 »

you have to wait one of the two events (sunset or sunrise) to happen and after that it will change automatically.
If you want you can try to switch it manually, but it should switch based on the event.

I have set also is_Sunset to the same idx number
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
M4RcO
Posts: 11
Joined: Saturday 12 March 2016 18:45
Target OS: Windows
Domoticz version: 3.4834
Location: Germany
Contact:

Re: NEW frontpage.html - request comments

Post by M4RcO »

woody4165 wrote:you have to wait one of the two events (sunset or sunrise) to happen and after that it will change automatically.
If you want you can try to switch it manually, but it should switch based on the event.

I have set also is_Sunset to the same idx number
So i tried to switch but, it isnt working. i wait now few days and ill see.
Hardware: Shuttle XS35V5Pro
OS: Windows 7 Pro x64
Domoticz branch: beta
Domoticz Version: V3.5010
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests