Page 10 of 66
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 8:58
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.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 9:13
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.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 11:19
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:
into this:
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
). Switching off/on will switch back tot the last set level, everything's fine now.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 11:27
by jannl
Ok, great, I will add it as well.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 11:53
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?
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 12:48
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.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 13:28
by mvveelen
Hmmm.....my protected switches (f.e. iPhone) are clickable. This shouldn't be with your code, should it?
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 14:35
by jannl
So far I did not do/test anything with protected switches......
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 15:36
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
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 16:26
by jannl
there could be some differences between my version and the one from bbqkees
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 17:10
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?
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 17:33
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.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 17:40
by jannl
The magmifying thingy is something from android. Not sure if it can be switched off.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 17:54
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
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 21:32
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.
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 21:52
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!
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 21:55
by jannl
Still not completely in it's cell. Not sure how to fix this
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 22:03
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?
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 22:04
by jannl
No, did not do anything with the thermostat, I can't test that
Re: NEW frontpage.html - request comments
Posted: Tuesday 27 January 2015 22:09
by floris74
Ok. thanks.