NEW frontpage.html - request comments

Moderator: leecollings

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 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?
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 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
I am not active on this forum anymore.
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 »

jan_nl wrote:Not sure about skycons....naming according to the present names does not work?
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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
pwhooftman
Posts: 75
Joined: Monday 11 November 2013 18:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by pwhooftman »

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?
I tried googlae maps but the traffic layer doesnt work when embedded.

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)
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

@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
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 »

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
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

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.
Attachments
Roomplan Domoticz
Roomplan Domoticz
Schermafbeelding 2015-01-30 om 19.26.12.png (89.16 KiB) Viewed 2831 times
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 »

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.
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

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.
I have been using floorplan = 0 from the start, so I'm afraid it is something else. :(
Last edited by Skorpion on Saturday 31 January 2015 0:12, edited 1 time in total.
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 »

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.
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 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'.
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 »

That's what I also noticed. I changed a little of the code so groups show on/off. And scenes only a SET button.
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 »

Can you post the part of the code you changed?
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 »

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

Code: Select all

var txt_scene = 'Set';
A group still gets On/Off.
Attachments
frontpage.tar.gz
(12.15 KiB) Downloaded 542 times
FutureCow
Posts: 8
Joined: Monday 30 December 2013 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by FutureCow »

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)
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 »

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.
FutureCow
Posts: 8
Joined: Monday 30 December 2013 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by FutureCow »

found it :)
it was a comma in the settings file that wasn't at the correct place!
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 »

jan_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, ie

Code: Select all

var txt_scene = 'Set';
A group still gets On/Off.
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 should :?:
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.
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 »

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

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

Who is online

Users browsing this forum: No registered users and 1 guest