Page 10 of 20
Re: Buienradar Weather Lookup Plugin
Posted: Tuesday 22 August 2017 7:39
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
devices.png
I love you already
Re: Buienradar Weather Lookup Plugin
Posted: Tuesday 22 August 2017 19:59
by Ewaldharmsen
awesome!
Re: Buienradar Weather Lookup Plugin
Posted: Tuesday 22 August 2017 22:00
by Brutus
Nice !
Re: Buienradar Weather Lookup Plugin
Posted: Wednesday 23 August 2017 15:59
by rickvanakkeren
How can I install this plugin?
Re: Buienradar Weather Lookup Plugin
Posted: Wednesday 23 August 2017 16:10
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
Re: Buienradar Weather Lookup Plugin
Posted: Sunday 03 September 2017 17:28
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?
Re: Buienradar Weather Lookup Plugin
Posted: Sunday 03 September 2017 17:33
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.
Re: Buienradar Weather Lookup Plugin
Posted: Sunday 03 September 2017 17:35
by rron
Ok thanks. I try to revert to the latest stable version.
Is there a special reason for this?
Re: Buienradar Weather Lookup Plugin
Posted: Sunday 03 September 2017 17:59
by rron
I went back to the stable version 8153 and buienradar is now in the hardwarelist
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!
Re: Buienradar Weather Lookup Plugin
Posted: Friday 08 September 2017 18:40
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?
Re: Buienradar Weather Lookup Plugin
Posted: Friday 08 September 2017 23:50
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.
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 13:33
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
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 13:43
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.
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 15:53
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.
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 15:58
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.
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 22:39
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?
Re: Buienradar Weather Lookup Plugin
Posted: Saturday 09 September 2017 23:16
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.
Re: Buienradar Weather Lookup Plugin
Posted: Monday 11 September 2017 0:26
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?
Re: Buienradar Weather Lookup Plugin
Posted: Monday 11 September 2017 0:40
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.
Buienradar Weather Lookup Plugin
Posted: Monday 11 September 2017 7:39
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