Page 13 of 66

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 11:59
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?

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 12:04
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

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 12:10
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.

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 14:06
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.

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 17:44
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

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 18:37
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

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 19:28
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.

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 20:14
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.

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 20:27
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. :(

Re: NEW frontpage.html - request comments

Posted: Friday 30 January 2015 20:32
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.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 0:07
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'.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 10:13
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.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 10:22
by ThinkPad
Can you post the part of the code you changed?

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 12:59
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.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 13:20
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)

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 13:24
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.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 13:29
by FutureCow
found it :)
it was a comma in the settings file that wasn't at the correct place!

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 13:54
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.

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 14:03
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 :)

Re: NEW frontpage.html - request comments

Posted: Saturday 31 January 2015 14:48
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.