NEW frontpage.html - request comments

Moderator: leecollings

dbfan
Posts: 10
Joined: Wednesday 25 March 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post 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 ?
dbfan
Posts: 10
Joined: Wednesday 25 March 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post 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 :D

Anybody knows if we just can use the system icons, like the winddirection icon that is already displayed in the virtual sensor ?
PeterFleur
Posts: 32
Joined: Sunday 08 March 2015 13:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4739
Contact:

Re: NEW frontpage.html - request comments

Post 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
RaspberryPI
ZWave
RFXtrx433E
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 »

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.
I am not active on this forum anymore.
dbfan
Posts: 10
Joined: Wednesday 25 March 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by dbfan »

Buienradar again down in my frontpage..... :(
Am I the only one ?
How to resolve ?
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 »

dbfan wrote:Buienradar again down in my frontpage..... :(
Am I the only one ?
How to resolve ?
https://twitter.com/BuienRadarNL/status ... 1102391296 ;)
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 »

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
dbfan
Posts: 10
Joined: Wednesday 25 March 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by dbfan »

ThinkPad wrote:
dbfan wrote:Buienradar again down in my frontpage..... :(
Am I the only one ?
How to resolve ?
https://twitter.com/BuienRadarNL/status ... 1102391296 ;)
ah, okay...
strange that this one still running http://www2.buienradar.nl/display.php?w ... opacity=75
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 »

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?
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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?
Not using Domoticz anymore
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 »

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.
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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?
Last edited by G3rard on Tuesday 31 March 2015 19:49, edited 1 time in total.
Not using Domoticz anymore
jossie67
Posts: 39
Joined: Wednesday 31 December 2014 12:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by jossie67 »

Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
Raspberry Pi (3x)
Master Domoticz installed on a Synology
RFXCOM RFXtrx433E USB
RFLink
USB Z-Wave Mini Adapter
Mi-light
QuinLED
Landis+Gyr ZME120ACd
Kamstrup_M401
USB-IR-Schreib-Lesekopf Alecto WS1700
Watermeter with TCRT5000
Kodi
DS18B20
rijo78
Posts: 9
Joined: Monday 30 March 2015 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Re: NEW frontpage.html - request comments

Post 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... :lol:
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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... :lol:
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.
Not using Domoticz anymore
rijo78
Posts: 9
Joined: Monday 30 March 2015 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Re: NEW frontpage.html - request comments

Post 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 :D
rijo78
Posts: 9
Joined: Monday 30 March 2015 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Contact:

Re: NEW frontpage.html - request comments

Post 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.
dbfan
Posts: 10
Joined: Wednesday 25 March 2015 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post 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!!
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: NEW frontpage.html - request comments

Post 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.
Not using Domoticz anymore
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 »

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)'.
I am not active on this forum anymore.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests