NEW frontpage.html - request comments

Moderator: leecollings

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

hm, not sure if I tested that.

Fixed a problem with pressing + when on lowest level (setting to level=1 does not seem to work)

I will check it this evening.
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by bbqkees »

mvveelen wrote:Great, I'm going to try it tomorrow. Any chance the Skycons will work in a next version? Or is this simply not possible....?
In the end it should be possible. But I did not have enough time to look into it yet.
Weekend was almost fully booked with other stuff, and spend too much time looking for unfinished div's in the html.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
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 »

Ok, just hoping you will find a solution for it :)

I've made a little improvement for the dimmer / level / thingy I had: I've changed this:

Code: Select all

var d = ((level )/100*16)  ;
into this:

Code: Select all

var d = ((level-.1)/100*16)  ;
And that fixes the problem with not being able to go down from the 100% level. I checked all levels and they correspond to the levels you see in the main Domoticz page (the one with the slider :D ). Switching off/on will switch back tot the last set level, everything's fine now.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
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 »

Ok, great, I will add it as well.
jkimmel
Posts: 129
Joined: Monday 25 November 2013 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Mallorca
Contact:

Re: NEW frontpage.html - request comments

Post by jkimmel »

jan_nl wrote: Hope you all now your way with tar and gzip (tip: use 7zip in Windows)
Basically everything is split
- frontpage.html for the html ;-)
- js/swipe.js
- js/frontpage.js
- js/frontpage_settings.js
- css/frontpage.css
Before asking silly questions, could you provide a readme about where to copy, where to change local parameters and howto start?
Rfxcom
Raspi 4
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 »

lol, since my last update yesterday I was thinking the same.
May be I will do that tonight,

For now, put everything in the domoticz/www directory, including the subdirectorys.

In the frontpage_settings.js (in the js subdir) you will find the things you need to change.
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 »

Hmmm.....my protected switches (f.e. iPhone) are clickable. This shouldn't be with your code, should it?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
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 »

So far I did not do/test anything with protected switches......
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 »

Well, if I look at the code, it should prohibit me from switching the protected switches and also there should be a pop-up telling me the switch is protected. It worked in a previous version, so I don't know what has been changed :)
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
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 »

there could be some differences between my version and the one from bbqkees
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by ThinkPad »

I recieved the code from mvveelen. It works good (including dimming!), but i experienced something annoying on my Android tablet.

When i touch a button, it opens some kind of magnification / zoompopup. Extremely irritating. Maybe it can be solved by putting a line of code into the page, but i don't know what to put in.
I already looked shortly on Google, but couldn't directly find something... Anyone has an idea?
I am not active on this forum anymore.
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 »

If the buttons are too small, or too short next to each other you will get a zoom popup. Chrome does this, you cannot change it as far as I know.
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 »

The magmifying thingy is something from android. Not sure if it can be switched off.
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by ThinkPad »

It seems like this:

Code: Select all

<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no" />
Disables the magnifying. Put it under the existing <meta> tags in the frontpage.html

Found it here:
https://stackoverflow.com/questions/129 ... st#tab-top
I am not active on this forum anymore.
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 »

So, new update.

- protected works again
- added lastseen (which was not in my frontpage yet)
- some clarifications in the code (remarks)
- added the tip from Thinkpad regarding de magnifier
- added the fix from mvveelen regarding the dimmer 100%

Downside: adding the lastseen changed the settingsfile and the html file. In order to use hte new frontpage.js, and additional field must be added to the PageArray. Explained in the file.

Added a small (very small) readme. Lot of explanation is in de code/files.
Attachments
frontpage.tar.gz
(11.98 KiB) Downloaded 290 times
floris74
Posts: 75
Joined: Sunday 30 November 2014 8:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hoorn, Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by floris74 »

Its great. I'm gonna try it tonight. In the version of yesterday, nudie radar (haha, buienradar...) wasn't exactly in his cel. Keep up the good work, and again, thanks!
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 »

Still not completely in it's cell. Not sure how to fix this
floris74
Posts: 75
Joined: Sunday 30 November 2014 8:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hoorn, Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by floris74 »

Ok. tnx. probably becouse the cells are a bit smaller than the first frontpage.html editions? Oh, dit you fix the thermostat aswell? or is that more the part for bbqkees?
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 »

No, did not do anything with the thermostat, I can't test that
floris74
Posts: 75
Joined: Sunday 30 November 2014 8:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hoorn, Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post by floris74 »

Ok. thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests