Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by schulpr »

G3rard wrote: Monday 21 August 2017 23:58 I have made some updates to the Buienradar script of @ffes.

Added the following devices (data from xml.buienradar.nl):
* Visibility
* Solar radiation
* Rain rate
* Weather forecast
* Rain forecast (uses data from https://gps.buienradar.nl/getrr.php?lat=51&lon=3)

Check this Dutch site for more information on the rain forecast.

I have made a pull request for this and hopefully it will be merged :D


devices.png
I love you already ;)
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

awesome!
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Brutus »

Nice !
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren »

How can I install this plugin?
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by jvdz »

Which part of the elaborate explanation in Github isn't working for you? https://github.com/ffes/domoticz-buienr ... -and-setup
You of course need to take the version of @G3rard at this moment untill that gets merged into the original: https://github.com/gerard33/domoticz-buienradar

Hope that helps. ;)
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron »

Is there an issue with the latest beta release 8373? I can't find buienradar in the hardware list.
What have I done:

sudo apt-get update
sudo apt-get upgrade
sudo apt install python3.4
sudo apt install libpython3.4
sudo apt install python3-dev

After that I have rebooted domoticz.sh
There's buienradar-domoticz in the plugin dir and when I run the localtest.py it's working.
Did I forgot something? :?:
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard »

In the latest Domoticz beta versions the Python plugin has been disabled.
You can use the last stable version if you want to use plugins.
Not using Domoticz anymore
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron »

Ok thanks. I try to revert to the latest stable version.
Is there a special reason for this?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rron
Posts: 223
Joined: Sunday 30 March 2014 15:24
Target OS: Linux
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron »

I went back to the stable version 8153 and buienradar is now in the hardwarelist :D
The only thing now is that the script is not working.
In the logging I see only: 2017-09-03 17:55:02.809 (Buienradar) Initialized version 1.1.0, author 'ffes'
No further remarks.
Did I forgot something?
It works!
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren »

I'm also using the stable version of Domoticz. I can see the buienradar plugin in the hardware list, but no devices are created. In the log I see

Code: Select all

2017-09-08 18:36:49.715 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5/:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-09-08 18:36:49.715 Error: (Buienradar) Module Import failed, exception: 'SyntaxError'
2017-09-08 18:36:49.716 Error: (Buienradar) Import detail: File: /home/pi/domoticz/plugins/domoticz-buienradar/rainforecast.py, Line: 1734047936, offset: 92
2017-09-08 18:36:49.716 Error: (Buienradar) Error Line ' Domoticz.Log("No data found from Buienradar containing rain forecast, assuming rain forecast is 0)
Can someone help me?
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard »

rickvanakkeren wrote: Friday 08 September 2017 18:40 I'm also using the stable version of Domoticz. I can see the buienradar plugin in the hardware list, but no devices are created. In the log I see

Code: Select all

2017-09-08 18:36:49.715 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5/:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-09-08 18:36:49.715 Error: (Buienradar) Module Import failed, exception: 'SyntaxError'
2017-09-08 18:36:49.716 Error: (Buienradar) Import detail: File: /home/pi/domoticz/plugins/domoticz-buienradar/rainforecast.py, Line: 1734047936, offset: 92
2017-09-08 18:36:49.716 Error: (Buienradar) Error Line ' Domoticz.Log("No data found from Buienradar containing rain forecast, assuming rain forecast is 0)
Can someone help me?
Yep, I see you are using my updated version from https://github.com/gerard33/domoticz-buienradar.
I missed a " in line 92 of rainforecast.py. Just updated this on Github.
If you use the latest version of rainforecast.py from Github it should work.
Not using Domoticz anymore
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren »

Thanks for your quick reply. I updated the python-file, and for 90% it works. But I'm now getting another error:

Code: Select all

HTTP error in rain predictor: URL: https://gps.buienradar.nl/getrr.php?lat=52.01&lon=4.32
Can you see what's going wrong here?

Thanks
rickvanakkeren
Posts: 26
Joined: Thursday 03 December 2015 13:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren »

This is by the way the whole log

Code: Select all

2017-09-09 13:41:31.719 (Buienradar) Retrieve weather data from http://xml.buienradar.nl/
2017-09-09 13:41:31.830 (Buienradar) Temperature: 13.0
2017-09-09 13:41:31.831 (Buienradar) Wind Speed: 5.5 | Wind Bearing: 266.0 | Wind Direction: W | Wind Speed Gusts: 9.7 | Wind Chill: 13.0
2017-09-09 13:41:31.831 (Buienradar) Barometer: 996.56 | Barometer Forecast: 2
2017-09-09 13:41:31.831 (Buienradar) Humidity: 87 | Humidity status: 3
2017-09-09 13:41:31.831 (Buienradar) Visibility: 3120
2017-09-09 13:41:31.831 (Buienradar) Solar Irradiance: 8.0
2017-09-09 13:41:31.831 (Buienradar) Rain rate: 23.7
2017-09-09 13:41:31.832 (Buienradar) Weather prediction today: Beter weer vanuit het westen! Maar voor hoelang? (Opgesteld op zaterdag 9 sep 2017 om 12:30)
2017-09-09 13:41:31.833 (Buienradar) Rain forecast started with following coordinates from Domoticz: 52.007062;4.322434
2017-09-09 13:41:31.833 (Buienradar) Rain forecast url: https://gps.buienradar.nl/getrr.php?lat=52.01&lon=4.32
2017-09-09 13:41:31.834 Error: (Buienradar) HTTP error in rain predictor: URL: https://gps.buienradar.nl/getrr.php?lat=52.01&lon=4.32
2017-09-09 13:41:31.834 (Buienradar) Going to try another Buienradar URL
2017-09-09 13:41:31.928 (Buienradar) Timeframe: 30, rows: 7
2017-09-09 13:41:31.928 (Buienradar) 000|13:45
2017-09-09 13:41:31.928 (Buienradar) 000|13:50
2017-09-09 13:41:31.928 (Buienradar) 000|13:55
2017-09-09 13:41:31.928 (Buienradar) 000|14:00
2017-09-09 13:41:31.929 (Buienradar) 000|14:05
2017-09-09 13:41:31.929 (Buienradar) 000|14:10
2017-09-09 13:41:31.929 (Buienradar) 000|14:15
2017-09-09 13:41:31.929 (Buienradar) Rain forecast: 0 [0-255] | 0.0 mm/hour
So it seems that "another Buienradar URL" works.
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard »

Yep that is by design. Sometimes the url is not reachable, so I have added a second URL which will be checked if the first one fails. So this error should only be there occasionally.
Not using Domoticz anymore
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK »

I've got some other errors now
2017-09-09 15:50:16.864 Error: (Buienradar) 'onHeartbeat' failed 'NameError':'name 'br' is not defined'.
2017-09-09 15:50:16.864 Error: (Buienradar) ----> Line 143 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-09-09 15:50:16.864 Error: (Buienradar) ----> Line 130 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-09-09 15:50:27.064 Error: (Buienradar) 'onHeartbeat' failed 'NameError':'name 'br' is not defined'.
2017-09-09 15:50:27.064 Error: (Buienradar) ----> Line 143 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-09-09 15:50:27.064 Error: (Buienradar) ----> Line 130 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-09-09 15:50:37.264 Error: (Buienradar) 'onHeartbeat' failed 'NameError':'name 'br' is not defined'.
2017-09-09 15:50:37.264 Error: (Buienradar) ----> Line 143 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-09-09 15:50:37.264 Error: (Buienradar) ----> Line 130 in /usr/local/domoticz/var/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
Just did a git clone earlier today.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
HierBenIk
Posts: 5
Joined: Saturday 09 September 2017 22:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Buienradar Weather Lookup Plugin

Post by HierBenIk »

I just updated my Domoticz to the latest stable release.
After the update I installed the Buienradar Weather Lookup plugin.
Now I can see the new hardware in Domoticz but the hardware cannot be added.
Does sombody has any idea why the hardware cannot be added?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK »

I thought I saw a fix for this before but can't seem to find it anymore.
Found Meetstation Lauwersoog (ID: 6277) at 7.7 km from your home location
N
Living near Rotterdam, that station is a bit further away.

Running G3rard's version of the script.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
mrombout
Posts: 5
Joined: Monday 11 September 2017 0:16
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.10415
Contact:

Re: Buienradar Weather Lookup Plugin

Post by mrombout »

Domoticz V3.8392 (c)2012-2017 GizMoCuz
Build Hash: 68538e3, Date: 2017-09-10 15:51:15


Well, I´d really like this plugin to start working... but, if I did I wouldn´t post this :-)
Read the entire thread, installed all Python dependencies, restarted service etc. but also in my case I caný find the entry with Buienradar.
The python3 localtest.py works ok

Retrieve weather data from http://xml.buienradar.nl/
XML file contains weather station information
Found Meetstation Lauwersoog (ID: 6277) at 7.7 km from your home location
No Barometer and Visibility info found in your weather station, getting info from weather station De Bilt
Temperature: 14.7
Wind Speed: 11.96 | Wind Bearing: 182.0 | Wind Direction: S | Wind Speed Gusts: 16.0 | Wind Chill: 14.7
Barometer: 994.51 | Barometer Forecast: 2
Humidity: 80 | Humidity status: 3
Visibility: 14800.0
Solar Irradiance: None
Rain rate: None
Weather prediction today: Winderige en natte nacht (Opgesteld op zondag 10 sep 2017 om 11:45)

I run the last beta of Domoticz.
Any tips?
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by pvm »

First of all: I really like the plugin, I've been using it on my raspberry pi domoticz install

An idea: Is it possible to include this plugin in domoticz itself (no need to get from seperate repository and related steps) ?
It would be easier to use and for more Domoticz users.
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Buienradar Weather Lookup Plugin

Post by G3rard »

mrombout wrote:Domoticz V3.8392 (c)2012-2017 GizMoCuz
Build Hash: 68538e3, Date: 2017-09-10 15:51:15


Well, I´d really like this plugin to start working... but, if I did I wouldn´t post this :-)
Read the entire thread, installed all Python dependencies, restarted service etc. but also in my case I caný find the entry with Buienradar.
The python3 localtest.py works ok

I run the last beta of Domoticz.
Any tips?
viewtopic.php?p=148953#p148953
Not using Domoticz anymore
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests