Page 28 of 66
Re: NEW frontpage.html - request comments
Posted: Saturday 28 March 2015 14:42
by dbfan
anybody knows what description to use to get wind-direction f.i. SSW iso degrees ? from wheather underground as example ?
or does somebody already found a nice way to show a wind-direction icon dependent on the actual direction ?
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 16:36
by dbfan
dbfan wrote:anybody knows what description to use to get wind-direction f.i. SSW iso degrees ? from wheather underground as example ?
or does somebody already found a nice way to show a wind-direction icon dependent on the actual direction ?
I figured it out with help of the wiki:
- created an additional virtual sensor ( text version )
- made a LUA-script to read the windsensor data, filter out the winddirection data and sent that to the new virtual sensor
hoppa
Anybody knows if we just can use the system icons, like the winddirection icon that is already displayed in the virtual sensor ?
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 16:39
by PeterFleur
With the API of the Dutch Railroad website (
http://webservices.ns.nl/ns-api-avt?station=alphen) you can get an XML file. I've attached the file.
Is there a way to convert that into this page tile? Would be nice to see if there is a delay of the trains before you leave the house.
Peter
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 16:52
by ThinkPad
It can probably be done by making a Lua script that parses the XML and sends the data to a virtual text sensor, just like the person above you did with weather data.
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 16:54
by dbfan
Buienradar again down in my frontpage.....
Am I the only one ?
How to resolve ?
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 17:10
by ThinkPad
dbfan wrote:Buienradar again down in my frontpage.....
Am I the only one ?
How to resolve ?
https://twitter.com/BuienRadarNL/status ... 1102391296
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 17:17
by jannl
PeterFleur wrote:With the API of the Dutch Railroad website (
http://webservices.ns.nl/ns-api-avt?station=alphen) you can get an XML file. I've attached the file.
Is there a way to convert that into this page tile? Would be nice to see if there is a delay of the trains before you leave the house.
Peter
I think for Python and/or Perl there should be tools to parse XML.
Might dive into to that in the near future.....(for Perl)
btw, there is no attachment and the links needs a username/password
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 17:19
by dbfan
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 22:09
by Skorpion
G3rard wrote:Here is the link were youy can download my frontpage.
http://www.filedropper.com/frontpagegz
The frontpage has a.o. the following changes compared to earlier versions posted in this topic.
- text with cell description changes according to the state (eg alarm on/off, sunrise/set)
- removed bounce effect (no vertical scrolling) on iPad
- use extra div's in the cells above (see also the post from zicht) to show 2 values in one cell
- various layout changes
Let me know if you have any questions regarding the configuration.
frontpage-day.jpg
frontpage-night.jpg
Thanks for sharing your code. It looks very nice!
Unfortunately, I can't get the dimmer function to work when using your code. It does show the "- On +" text/signs, but after pressing, there is no effect. (I want to use it in combination with my Philips Hue & Living Colors lamps in my Z-wave setup.)
Does it work in your setup? Does it need some altering?
Re: NEW frontpage.html - request comments
Posted: Sunday 29 March 2015 23:23
by G3rard
Skorpion wrote:
Thanks for sharing your code. It looks very nice!
Unfortunately, I can't get the dimmer function to work when using your code. It does show the "- On +" text/signs, but after pressing, there is no effect. (I want to use it in combination with my Philips Hue & Living Colors lamps in my Z-wave setup.)
Does it work in your setup? Does it need some altering?
Thanks!
In my setup I can use the dimmer function for Philips Hue and COCO dimmers. I use Hue Lux (only white), maybe you are using the color version?
Re: NEW frontpage.html - request comments
Posted: Monday 30 March 2015 11:27
by Skorpion
G3rard wrote:Skorpion wrote:
Thanks for sharing your code. It looks very nice!
Unfortunately, I can't get the dimmer function to work when using your code. It does show the "- On +" text/signs, but after pressing, there is no effect. (I want to use it in combination with my Philips Hue & Living Colors lamps in my Z-wave setup.)
Does it work in your setup? Does it need some altering?
Thanks!
In my setup I can use the dimmer function for Philips Hue and COCO dimmers. I use Hue Lux (only white), maybe you are using the color version?
I use Hue color, LivingColors and LivingWhites. I double checked the code, and as far as I can see, it doesn't differ from yours. There probably must be a faulty piece of code in my files though, because my RPi cpu usage goes sky high when I enable the dimmer function for one or multiple lamps.
Re: NEW frontpage.html - request comments
Posted: Monday 30 March 2015 23:11
by G3rard
Skorpion wrote:
I use Hue color, LivingColors and LivingWhites. I double checked the code, and as far as I can see, it doesn't differ from yours. There probably must be a faulty piece of code in my files though, because my RPi cpu usage goes sky high when I enable the dimmer function for one or multiple lamps.
Does it work if you use the frontpage.js file from the version I have shared in this topic?
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 11:18
by jossie67
Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 18:55
by rijo78
Hi,
Thanks for the great frontpage template. It is working really well for me. I'm getting very addicted to this domotica stuff.
All my switches work great.
I only have two issues left. When in daymode (IsDonker is switched off) I don't see the sun behind the cloud. When IsDonker is on, I can see the moon behind the rainy cloud.
In the frontpage.js I have changed the idx of IsDonker to the one I have in my Domoticz.
Any clue how to solve this issue?
The second issue I have is the pop-up to arm the home in field 1-19. I don't have anything to arm, so I would like to turn this one off. I suppose I have tho exclude a part in the frontpage.js, but it seems I have not excluded the correct part.
where can I find the part where the Domoticz security panel can be turned off? Or is there somebody that can convince me that this really is a needed function, and that I'm just too stupid to see otherwise...
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 19:43
by G3rard
rijo78 wrote:Hi,
Thanks for the great frontpage template. It is working really well for me. I'm getting very addicted to this domotica stuff.
All my switches work great.
I only have two issues left. When in daymode (IsDonker is switched off) I don't see the sun behind the cloud. When IsDonker is on, I can see the moon behind the rainy cloud.
In the frontpage.js I have changed the idx of IsDonker to the one I have in my Domoticz.
Any clue how to solve this issue?
The second issue I have is the pop-up to arm the home in field 1-19. I don't have anything to arm, so I would like to turn this one off. I suppose I have tho exclude a part in the frontpage.js, but it seems I have not excluded the correct part.
where can I find the part where the Domoticz security panel can be turned off? Or is there somebody that can convince me that this really is a needed function, and that I'm just too stupid to see otherwise...
The pictures shown related to the weather can be changed in frontpage.js. The pictures that are being used can be found in the icons folder.
Maybe there is no picture with a sun behind the cloud in the frontpage version that you are using?
You can remove the link to the security panel in frontpage.html.
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 20:09
by rijo78
The pictures shown related to the weather can be changed in frontpage.js. The pictures that are being used can be found in the icons folder.
Maybe there is no picture with a sun behind the cloud in the frontpage version that you are using?
You can remove the link to the security panel in frontpage.html.
Thanks! Found it. Regarding the images; I was a bit silly. The images are showing as should be. I was expecting something else. Then I checked how the images should look like, and found out that all is working great.
Now I only have to wait for my tablet to arrive
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 20:10
by rijo78
jossie67 wrote:Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
I don't think this is possible on a desktop computer. Better to work with this template on a tablet.
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 23:24
by dbfan
jan_nl wrote:Added some sort of traffic info, max 4 traffic-jams, the text is clickable and brings you to
http://www.anwb.nl/verkeer (which is not configurable (not yet anyway)).
Changes in frontpage.css (cell2_3), frontpages_settings.js and frontpage.js
I also added a script (wget_verkeer.sh) to get an rss feed from verkeerplaza, so this propably only works in the Netherlands. This scripts must run via crontab (changes about every minute)
Hi Jan,
how can I add more highways ? what is the exact syntax to add f.i. the A73 to this:
Code: Select all
var file_string = '';
var CheckHighway = 'A50:' ; // The ; is needed for searching!!
Re: NEW frontpage.html - request comments
Posted: Tuesday 31 March 2015 23:41
by G3rard
jossie67 wrote:Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
You can add some lines of code in frontpage.html to give you some small arrows which you can use to swipe on a desktop.
After
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 1 in frontpage.html add the following:
Code: Select all
<!-- show arrow to scroll on desktop -->
<div id="right-arrow"
style="font-size: 20px; position: absolute; right: 23%; top: 50%; z-index: 1000;"
onclick="javascript:window.mySwipe.next();">
<a href="#">></a>
</div>
And after
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 2 add the following code
Code: Select all
<!-- show arrow to scroll on desktop -->
<div id="left-arrow"
style="font-size: 20px; position: absolute; left: 23%; top: 50%; z-index: 1000;"
onclick="javascript:window.mySwipe.prev();">
<a href="#"><</a>
</div>
The position will probably be dependent on the size of your frontpage, but this code is working for me.
Re: NEW frontpage.html - request comments
Posted: Thursday 02 April 2015 1:03
by ThinkPad
If anyone needs some inspiration, have a look at the 'Toon' interface (smart thermostat from Eneco).
Screenshots can be found in
this news article and in
this comment.
There is also a basic Android app demo of this:
https://toonopafstand.eneco.nl/index_pc.html It seems to be build in 'PhoneGap (Cordova)'.