NEW frontpage.html - request comments

Moderator: leecollings

User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

Just created a virtual Sunrise/Sunset switch to use for the Day/Night icons.
I think this will reflect the day/night mode better ;-)
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

For now these Alarm icons will do for me ;-)

Download: (temporally)
https://dl.dropboxusercontent.com/u/23213779/icons.zip
Attachments
alarm_off.png
alarm_off.png (9.47 KiB) Viewed 3481 times
Alarm_on.png
Alarm_on.png (9.38 KiB) Viewed 3481 times
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Mozart »

I have a problem with the versions of the frontpage that use the seperated approach.
I have a working frontpage that is just 1 file (html, javascript & css).
When I try a version that has everything seperated I cannot switch on my lights. I do get a popup saying that it will switch on the lights but it does not.
When I open the java console in the webbrowser I get the 'Error' message, nothing else.
Any ideas?
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

Mozart wrote:I have a problem with the versions of the frontpage that use the seperated approach.
I have a working frontpage that is just 1 file (html, javascript & css).
When I try a version that has everything seperated I cannot switch on my lights. I do get a popup saying that it will switch on the lights but it does not.
When I open the java console in the webbrowser I get the 'Error' message, nothing else.
Any ideas?
Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by mvveelen »

These are the ones I use now:
alarm_off4.png
alarm_off4.png (22.17 KiB) Viewed 3465 times
alarm_on4.png
alarm_on4.png (22.27 KiB) Viewed 3465 times
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Mozart »

Siewert308SW wrote: Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?
I tried Firefox, Chrome and IE, all the same result.
Java version is: java version "1.7.0_51"

I tried with your package just now and I get the same result :(
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

mvveelen wrote:These are the ones I use now:
alarm_off4.png
alarm_on4.png
Nice ones, do remind me of the android wifi hotspot signal
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

Mozart wrote:
Siewert308SW wrote: Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?
I tried Firefox, Chrome and IE, all the same result.
Java version is: java version "1.7.0_51"

I tried with your package just now and I get the same result :(
What does the java site tell you when you use the link below.
https://www.java.com/nl/download/installed.jsp

And is your java correctly called in your Windows PATH?
Is your java enabled in your browser?
Sounds like your system is the culprit but i'm not a expert on this one.
Maybe someone else can help you.
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
Slayer007
Posts: 29
Joined: Wednesday 18 June 2014 23:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Slayer007 »

I don't think the problem is in Java, otherwise your old frontpage also wouldn't work.
Till yesterday I also had one file with everything in it. Did you named the files correctly?
What I did: I created 4 files:
Frontpage.css
Frontpage.html
Frontpage.js
Frontpage_setting.js

Important is that you change the path in the files to the ones you are using.
Then I copied parts of my old frontpage in de correct files, where they should be.

After that everything works the same as before.

Ps. I don't have a day and night css
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 »

Bin playing around with it a little.
Thanks for everyone who's involved with it.
Attachments
Screenshot_2015-02-16-16-55-08.png
Screenshot_2015-02-16-16-55-08.png (182.32 KiB) Viewed 3448 times
Screenshot_2015-02-16-16-48-21.png
Screenshot_2015-02-16-16-48-21.png (182.85 KiB) Viewed 3448 times
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: NEW frontpage.html - request comments

Post by pvm »

I have the skycons working. But not inside this page. I am building a homecontrol page which also displays my music system. I am not at home now, cannot post code. I followed the available example page and do some translation to match the forecast string to what skycons can handle
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Mozart »

Slayer007 wrote:I don't think the problem is in Java, otherwise your old frontpage also wouldn't work.
Till yesterday I also had one file with everything in it. Did you named the files correctly?
What I did: I created 4 files:
Frontpage.css
Frontpage.html
Frontpage.js
Frontpage_setting.js

Important is that you change the path in the files to the ones you are using.
Then I copied parts of my old frontpage in de correct files, where they should be.

After that everything works the same as before.

Ps. I don't have a day and night css
True, the old page works so java should be ok.
What I did was create a new folder called fp and put the files in there with subfolders.
I updated the references to the CSS, javascripts and icons so that it corresponds with the new folder structure.
Then I open on my tablet or desktop (makes no difference) the page http://domoticz/fp/frontpage.html
The page shows fine and the currect status of switches and dimmers is correct.
But clicking on any of those does nothing :(
I tried some debugging and when I open the Java Console in the browser I can see only 'Error'.
This is the result of the function SwitchToggle, that prints either Success of Error.
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
User avatar
mbliek
Posts: 194
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: the Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by mbliek »

Place everything inside the www folder and not in a new folder and it should work ;)

Had this problem also...
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Mozart »

mbliek wrote:Place everything inside the www folder and not in a new folder and it should work ;)

Had this problem also...
Yes, that solved it!
Thanks
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by mvveelen »

A small improvement (as requested via PM): the lastseen is now parsed into something better to read. It now reads:

17-2-2015 om 06:50 uur

(instead of the 'old' 2015-02-17 06:50:21)

You can play with it and alter it the way you like. Even the date.js can be altered if you like the names of the day / month in your own language. It should work in all browsers.

Added: date.js (extra file, upload to the js folder)
changed: frontpage.html (included the date.js file)
changed: frontpage.js (see the remarks I've added)

I've uploaded the whole package HERE

Example:
Schermafbeelding 2015-02-17 om 13.48.36.png
Schermafbeelding 2015-02-17 om 13.48.36.png (15.23 KiB) Viewed 3336 times
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Slayer007
Posts: 29
Joined: Wednesday 18 June 2014 23:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Slayer007 »

Thnx for looking into that. Great work. :D
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

Many thx mvveelen for the last seen update.
Only changed the time from am/pm to 24hr ;-)
Love the frontpage more and more and it's getting more mature by the day.
Attachments
IMAG0949_resize_resize.jpg
IMAG0949_resize_resize.jpg (179.92 KiB) Viewed 3303 times
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
Titanium87
Posts: 8
Joined: Saturday 14 February 2015 19:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Titanium87 »

Siewert308SW wrote:Wanna thank those who started this.
Had a old Samsung Galaxy Tab 7" eating dusk.
Last night i prepared it to run 24/7 with additional apps to beable to use Voice commands which is my next project to kill some time.
Today i made a wooden frame which only need some paint. ;-)
But here is my test setup...
Sorry if I missed it, but what software do you use?
I have a galaxy tab 7.0, and I cant seem to get the bar over and under away.
Over I have the battery and wifi symbols, and under I have the "back", "home" and "the other right one :p ".
I use chrome in the "home-screen-app version".

I also wanted to say that I LOVE this frontpage !
1 week ago I had NO clue when it comes to coding ULA, Python, HTML etc......
Thank you all for the inspiration and information !!!
User avatar
Siewert308SW
Posts: 288
Joined: Monday 29 December 2014 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by Siewert308SW »

Titanium87 wrote:
Siewert308SW wrote:Wanna thank those who started this.
Had a old Samsung Galaxy Tab 7" eating dusk.
Last night i prepared it to run 24/7 with additional apps to beable to use Voice commands which is my next project to kill some time.
Today i made a wooden frame which only need some paint. ;-)
But here is my test setup...
Sorry if I missed it, but what software do you use?
I have a galaxy tab 7.0, and I cant seem to get the bar over and under away.
Over I have the battery and wifi symbols, and under I have the "back", "home" and "the other right one :p ".
I use chrome in the "home-screen-app version".

I also wanted to say that I LOVE this frontpage !
1 week ago I had NO clue when it comes to coding ULA, Python, HTML etc......
Thank you all for the inspiration and information !!!
I run CM 11
The browser i use is firefox with a plugin called "full screen"
Setup:
- RPi4 - Domo Stable / Aeotec Z-stick7 / PiHole Unbound Gemini
- RPi4 - PiHole / PiVPN Unbound Gemini
- Synology DS923+ / DS218j
- P1 Gas/Power, SmartGateway watermeter
- Fibaro switches, contacts, plugs, smoke/Co2 ect
- rootfs @ USB HDD
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by mvveelen »

Siewert308SW wrote:Many thx mvveelen for the last seen update.
Only changed the time from am/pm to 24hr ;-)
Love the frontpage more and more and it's getting more mature by the day.
Yeah, I came home tonight and saw the time I arrived was 09:15, so I changed the time to HH:mm and now it's displaying 21:15 :)
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest