Buienradar Weather Lookup Plugin

Python and python framework
Harald777
Posts: 12
Joined: Thursday 01 June 2017 8:44
Target OS: Raspberry Pi
Domoticz version: 3.7661
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Harald777 » Tuesday 20 June 2017 21:54

Is someone running this plugin stable? I am still getting domoticz shut downs 3 times a day when I use this "python" plugin. Only renaming my plugin folder solves the issue.
Perhaps a new and fresh domoticz installation solves the problem?????

Verstuurd vanaf mijn Nexus 9 met Tapatalk

ffes
Posts: 51
Joined: Friday 27 January 2017 0:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes » Friday 23 June 2017 14:02

Some major work has been done on the python plugins in Domoticz recently. Not sure how stable it is at the moment. My Domotics at home is not running as it should be (problem with my hardware), so I can only test a little.

Harald777
Posts: 12
Joined: Thursday 01 June 2017 8:44
Target OS: Raspberry Pi
Domoticz version: 3.7661
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Harald777 » Friday 23 June 2017 20:23

ffes wrote:Some major work has been done on the python plugins in Domoticz recently. Not sure how stable it is at the moment. My Domotics at home is not running as it should be (problem with my hardware), so I can only test a little.
Hope to see this plugin working again in the near future.
Today updated my pi, including all installed packages.
Activated the Buienradar plugin and unfortunately within a few hours Domoticz was offline again.

User avatar
Brutus
Posts: 286
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Heerlen, The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Brutus » Thursday 06 July 2017 20:19

Is it possible to include the "Solar Irradiance" and "Visibility" ?

They come visible at the log but not as a device.
1x Intel NUC D54250WYK (Windows 7)
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
17x Fibaro Modules

User avatar
G3rard
Posts: 826
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard » 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
devices.png (111.54 KiB) Viewed 982 times
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

schulpr
Posts: 95
Joined: Thursday 01 January 2015 10:10
Target OS: NAS (Synology & others)
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by schulpr » Tuesday 22 August 2017 7:39

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: 44
Joined: Tuesday 07 February 2017 16:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen » Tuesday 22 August 2017 19:59

awesome!

User avatar
Brutus
Posts: 286
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Heerlen, The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Brutus » Tuesday 22 August 2017 22:00

Nice !
1x Intel NUC D54250WYK (Windows 7)
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
17x Fibaro Modules

rickvanakkeren
Posts: 36
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren » Wednesday 23 August 2017 15:59

How can I install this plugin?

User avatar
jvdz
Posts: 1062
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by jvdz » Wednesday 23 August 2017 16:10

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

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron » Sunday 03 September 2017 17:28

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

User avatar
G3rard
Posts: 826
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard » Sunday 03 September 2017 17:33

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.
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron » Sunday 03 September 2017 17:35

Ok thanks. I try to revert to the latest stable version.
Is there a special reason for this?
Rpi, RFXcom, klikaan klikuit switch,thermosmart

rron
Posts: 127
Joined: Sunday 30 March 2014 15:24
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Waterland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rron » Sunday 03 September 2017 17:59

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

rickvanakkeren
Posts: 36
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren » 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?

User avatar
G3rard
Posts: 826
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard » Friday 08 September 2017 23:50

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.
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

rickvanakkeren
Posts: 36
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren » Saturday 09 September 2017 13:33

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: 36
Joined: Thursday 03 December 2015 14:58
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rickvanakkeren » Saturday 09 September 2017 13:43

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: 826
Joined: Wednesday 04 March 2015 23:15
Target OS: Linux
Domoticz version: V3.8153
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by G3rard » Saturday 09 September 2017 15:53

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.
Ubuntu Server 14.04 | Domoticz v3.8153 | RFXtrx433E | Z-Wave Aeotec Z-Stick S2
Frontpage | Sonos PHP | Dark th3me | Sony Bravia Python plugin | Sonos Python plugin

User avatar
EdwinK
Posts: 915
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK » Saturday 09 September 2017 15:58

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 | RFxcom | Dashticz V2 |

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests