NEW frontpage.html - request comments
Moderator: leecollings
-
- 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
Not sure about skycons....naming according to the present names does not work?
I even put 'buienradar' on the second screen because is constantly moves, I like the screen static without distractions (except for the time, that changes every minute) while I am not looking at them
Sunset/rise times sound a nice to have (and not that difficult I think/hope).
And, yes, I am thinking about some traffic info to have a quick look on in the morning before leaving.
May be a combination of text and google maps traffic map.
Any tips/suggestions /howto's anyone?
I even put 'buienradar' on the second screen because is constantly moves, I like the screen static without distractions (except for the time, that changes every minute) while I am not looking at them
Sunset/rise times sound a nice to have (and not that difficult I think/hope).
And, yes, I am thinking about some traffic info to have a quick look on in the morning before leaving.
May be a combination of text and google maps traffic map.
Any tips/suggestions /howto's anyone?
-
- 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
I see you can create a widget: http://www.routeradar.nl/routeradar/rou ... p-uw-site/ so it can't be that hard to implement it
ANWB has one as well: http://www.anwb.nl/verkeer/nederland/ve ... eigen-site
ANWB has one as well: http://www.anwb.nl/verkeer/nederland/ve ... eigen-site
I am not active on this forum anymore.
- 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
i think I tried everything by now: not a working Skycon in a <div>. I can get them outside the div's but that's not the way I want it to be.jan_nl wrote:Not sure about skycons....naming according to the present names does not work?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 75
- Joined: Monday 11 November 2013 18:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
I tried googlae maps but the traffic layer doesnt work when embedded.jan_nl wrote: And, yes, I am thinking about some traffic info to have a quick look on in the morning before leaving.
May be a combination of text and google maps traffic map.
Any tips/suggestions /howto's anyone?
The widget of Routeradar is of no use because a large protion of the small screen is taken by the time line at the bottom.
I have tried Waze.com and livetraffic.tomtom.com but my html skills are too limited.
Domoticz v 1.16xx
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
1X RFXtrx433 USB 433.92MHz Transceiver Firmware version: 71
1X Synology Nas DS918+ DSM 7 (12Gb RAM mod)
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
@Jan_nl,
I hope you or someone else can help me out to get the scene toggle to work. Have been trying for hours but no succes.
When I want to display the status of my scenes I get "--" as a result. Displaying the name or other data works, so I really don't understand why the "ON or OFF status won't display.
This is my javascript code:
http://pastebin.com/8AEwrywr
I hope you or someone else can help me out to get the scene toggle to work. Have been trying for hours but no succes.
When I want to display the status of my scenes I get "--" as a result. Displaying the name or other data works, so I really don't understand why the "ON or OFF status won't display.
This is my javascript code:
http://pastebin.com/8AEwrywr
-
- 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
All the necessary code seems to be present.
You doublechecked the idx values? Scene is added to the concerning roomplan?
When using chrome on a desktop, you can enable inspect element (rightclick in the browser, lowest option), this shows the error messages in javascript, may that gives a hint
You doublechecked the idx values? Scene is added to the concerning roomplan?
When using chrome on a desktop, you can enable inspect element (rightclick in the browser, lowest option), this shows the error messages in javascript, may that gives a hint
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
I checked the IDX with JSON (DomoticzURL/json.htm?type=scenes) so they must be correct.
The only JS error I get is this one:
ReferenceError: switch_off_timeout is not defined javascript.js:220
I think my roomplan must also be ok. I added a screenshot.
The only JS error I get is this one:
ReferenceError: switch_off_timeout is not defined javascript.js:220
I think my roomplan must also be ok. I added a screenshot.
- Attachments
-
- Roomplan Domoticz
- Schermafbeelding 2015-01-30 om 19.26.12.png (89.16 KiB) Viewed 2836 times
-
- 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
It's not only the roomplan. It also has to do with the devices you added to your roomplan. If you want all devices to work, simply add a"0" in the script. If that doesn't work you have an other problem so solve.
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
I have been using floorplan = 0 from the start, so I'm afraid it is something else.Slayer007 wrote:It's not only the roomplan. It also has to do with the devices you added to your roomplan. If you want all devices to work, simply add a"0" in the script. If that doesn't work you have an other problem so solve.
Last edited by Skorpion on Saturday 31 January 2015 0:12, edited 1 time in total.
-
- 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
Now, I'm thinking I had the same problem. I had one scene and one test scene. When I call a json command both the status from the scenes appear, even if I selected one idd, they both show up. So my status wasn't correct at that time. I removed the test scene, so I had one scene over and that worked for me. I don't know what the problem there is.
-
- 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
I also have a small problem with scenes. When i click on it in this custom interface, it sets the scene to on, and clicking it again sets it to off.
But this is not the behaviour of a scene, but of a group.
When i click the scene in Domoticz itself, it always acts the same (and also as i would expect), it puts the devices like i configured in the scene (for watching TV i only leave 1 light on, rest of it turns off).
But with this interface, it inverses this because it is switching off as well. So first all those lights turn on (if they were off) and when i click the scene again, it turns them to the states i would expect...
But in my opinion, a scene can never be 'off', as it is only activated. Look in Domoticz, when you click on the button of a scene, it only says 'Switching On', never 'Switching Off'.
But this is not the behaviour of a scene, but of a group.
When i click the scene in Domoticz itself, it always acts the same (and also as i would expect), it puts the devices like i configured in the scene (for watching TV i only leave 1 light on, rest of it turns off).
But with this interface, it inverses this because it is switching off as well. So first all those lights turn on (if they were off) and when i click the scene again, it turns them to the states i would expect...
But in my opinion, a scene can never be 'off', as it is only activated. Look in Domoticz, when you click on the button of a scene, it only says 'Switching On', never 'Switching Off'.
I am not active on this forum anymore.
- 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
That's what I also noticed. I changed a little of the code so groups show on/off. And scenes only a SET button.
-
- 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
Can you post the part of the code you changed?
I am not active on this forum anymore.
-
- 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
New update.
I got my own 7" inch tablet (Archos 70c, from MediaMarkt website, 50.31) now.
For that I made the layout a bit smaller, so everything (6 lines) fit on the screen.
When you have a scene, now txt_scene is displayed. txt_scene must be in the settingsfile, ie
A group still gets On/Off.
I got my own 7" inch tablet (Archos 70c, from MediaMarkt website, 50.31) now.
For that I made the layout a bit smaller, so everything (6 lines) fit on the screen.
When you have a scene, now txt_scene is displayed. txt_scene must be in the settingsfile, ie
Code: Select all
var txt_scene = 'Set';
- Attachments
-
- frontpage.tar.gz
- (12.15 KiB) Downloaded 542 times
-
- Posts: 8
- Joined: Monday 30 December 2013 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
Is there a way to debug?
I downloaded the frontpage.tar from page 12, changed the settings inside frontpage_settings.js
put all the file inside /www/
but after opening frontpage.html, i got only empty cells...
(i got older version of frontpage.html working fine)
I downloaded the frontpage.tar from page 12, changed the settings inside frontpage_settings.js
put all the file inside /www/
but after opening frontpage.html, i got only empty cells...
(i got older version of frontpage.html working fine)
-
- 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
In google chrome, rightclick and select inspect element (Element inspecteren), this opens the java-script console and sometimes goves the correct hint on the error.
After opening, refresh the browser.
Most likely you did not copy everything correctly.
After opening, refresh the browser.
Most likely you did not copy everything correctly.
-
- Posts: 8
- Joined: Monday 30 December 2013 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
found it
it was a comma in the settings file that wasn't at the correct place!
it was a comma in the settings file that wasn't at the correct place!
-
- 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
I just installed your version, but when activating a scene it still inverts the state of the scene? I have a scene called 'Sleeping', and when i click it in Domoticz, the only thing it does is turning everything OFF. But with your skin it first turns everything ON and when tapping it again, it turns everything off like it shouldjan_nl wrote:New update.
I got my own 7" inch tablet (Archos 70c, from MediaMarkt website, 50.31) now.
For that I made the layout a bit smaller, so everything (6 lines) fit on the screen.
When you have a scene, now txt_scene is displayed. txt_scene must be in the settingsfile, ieA group still gets On/Off.Code: Select all
var txt_scene = 'Set';
And unfortunately it still doesn't fit on my Colorfly E708 Q1 tablet. The edge of the cells on the right are displayed outside of the screen...
I used your whole package, only thing i changed is the user variables part, IP-adress and IDX of roomplan part.
I am not active on this forum anymore.
- 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
jan_nl, what (exactly) did you change regarding the scenes-code? If you can give some pointers, I could get the code and insert it into the previous version, because I changed some things to fit my needs
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- 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
I only change the word for off to set. I did not check uf a scene can be switched off. Obviously this is possible in domoticz. I will see if I can disable this in frontpage.
For the layout. Since it is not really scalable, it depends on the number of pixels whether it fits ir not.
For the layout. Since it is not really scalable, it depends on the number of pixels whether it fits ir not.
Who is online
Users browsing this forum: No registered users and 1 guest