Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Derik »

Perhaps some stable version?
Or otherwise a solution..


xx
x
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

I am also waiting for a stable solution.
I love this plugin, but not its performance:(
Henk50
Posts: 7
Joined: Saturday 18 February 2017 9:34
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Henk50 »

Still running stable all the time the old version with latest Beta Domoticz V3.8942 on Pi3:
2018-02-23 19:23:26.896 (Buienr-VDaal) Initialized version 1.0.1, author 'ffes'
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Buienradar Weather Lookup Plugin

Post by felix63 »

It might have been raised before, but couldn't find it. I was a regular recurring 'timeout' with Buienradar 'onHeartbeat (a couple of times each day)'. This generates a great deal of errors that are not very informative or helpful. It would be nice to be able to prevent this error and/or reduce the nummer of Error-messages to generated.

Code: Select all

2018-04-13 17:57:27.854 Error: (Buienradar) 'onHeartbeat' failed 'timeout'.
2018-04-13 17:57:27.854 Error: (Buienradar) ----> Line 143 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2018-04-13 17:57:27.854 Error: (Buienradar) ----> Line 133 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2018-04-13 17:57:27.854 Error: (Buienradar) ----> Line 292 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function fillDevices
2018-04-13 17:57:27.854 Error: (Buienradar) ----> Line 104 in /home/pi/domoticz/plugins/domoticz-buienradar/rainforecast.py, function get_precipfc_data
2018-04-13 17:57:27.854 Error: (Buienradar) ----> Line 60 in /home/pi/domoticz/plugins/domoticz-buienradar/rainforecast.py, function get_rain
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 153 in /usr/lib/python3.4/urllib/request.py, function urlopen
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 461 in /usr/lib/python3.4/urllib/request.py, function open
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 571 in /usr/lib/python3.4/urllib/request.py, function http_response
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 493 in /usr/lib/python3.4/urllib/request.py, function error
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 433 in /usr/lib/python3.4/urllib/request.py, function _call_chain
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 676 in /usr/lib/python3.4/urllib/request.py, function http_error_302
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 455 in /usr/lib/python3.4/urllib/request.py, function open
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 473 in /usr/lib/python3.4/urllib/request.py, function _open
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 433 in /usr/lib/python3.4/urllib/request.py, function _call_chain
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 1217 in /usr/lib/python3.4/urllib/request.py, function https_open
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 1180 in /usr/lib/python3.4/urllib/request.py, function do_open
2018-04-13 17:57:27.855 Error: (Buienradar) ----> Line 1172 in /usr/lib/python3.4/http/client.py, function getresponse
2018-04-13 17:57:27.856 Error: (Buienradar) ----> Line 351 in /usr/lib/python3.4/http/client.py, function begin
2018-04-13 17:57:27.856 Error: (Buienradar) ----> Line 313 in /usr/lib/python3.4/http/client.py, function _read_status
2018-04-13 17:57:27.856 Error: (Buienradar) ----> Line 374 in /usr/lib/python3.4/socket.py, function readinto
2018-04-13 17:57:27.856 Error: (Buienradar) ----> Line 745 in /usr/lib/python3.4/ssl.py, function recv_into
2018-04-13 17:57:27.856 Error: (Buienradar) ----> Line 628 in /usr/lib/python3.4/ssl.py, function read
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Derik »

Dear developer...
Is there perhas something wrong with the python version usage of this plugin?
every-time i update my odroid board and my ubuntu os, there is a problem with the plugin...
I get an error domoticz rinning exited...
When i remove the plugin domoticz is running ok...
Do you now this problem??

Wat python version is necessary
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Derik »

kick? :? :?

Code: Select all

2018-05-22 23:51:45.617  (Radar) Started.
2018-05-22 23:51:45.618  EventSystem: reset all events...
2018-05-22 23:51:45.624  dzVents: Write file: /home/domoticz/domoticz/scripts/dzVents/generated_scripts/DZ: P1 reader.lua
2018-05-22 23:51:45.625  dzVents: Write file: /home/domoticz/domoticz/scripts/dzVents/generated_scripts/DZ: Teruglever 2000.lua
2018-05-22 23:51:45.625  dzVents: Write file: /home/domoticz/domoticz/scripts/dzVents/generated_scripts/DZ: Teruglever 1000.lua
2018-05-22 23:51:45.625  EventSystem: reset all device statuses...
2018-05-22 23:51:45.801  XiaomiGateway: RGB Gateway Detected
2018-05-22 23:51:46.022  PluginSystem: Entering work loop.
Segmentation fault
Only with the buienradar plugin..
And a crash of Domoticz
Without the plugin works fine...

hope someone..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by gielie »

I can't get the buienradar plugin to work and i get the following error.

Code: Select all

2018-09-23 11:01:25.139  Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-09-23 11:01:25.139  Error: (Buienradar) Module Import failed, exception: 'ImportError'
2018-09-23 11:01:25.140  Error: (Buienradar) Module Import failed: ' Name: buienradar'
2018-09-23 11:01:25.140  Error: (Buienradar) Error Line details not available.
it looks like a wrong python version problem.
Im running the latest beta on stretch and the rest of the plugins work fine.

Anyone has an idea how to solve this?
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
heblok
Posts: 2
Joined: Friday 19 October 2018 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by heblok »

Love this plug-in.

I noticed the Buienradar XML also contains a forcast for 5 days ahead which the plug-in wasn't picking up. I'm interested in this forecast so I can control my floor heating. It takes a few days for my system to take effect. So when I see it's going to be cold enough and it's becoming a colder season I'll switch on the floor heating pump...now it's still manual, but want to have domotics control it. So I added some bits to to the python code to get these value readings in domotics.

However, I'm not a python expert (just added bits based on general programming experience and reading the source). Also I'm not yet used to GIT. So anyone interested in helping out and maybe making this part of the official version? Also I could imagine the code and extra features may need some tidying up and maybe people are interested in adding a switch in the hardware config to enable/disable this feature?
Setup: Raspberri Pi 3B / Aeotec ZW090 Z-Stick Gen5 EU / RFXCom ProXL1 / Smart meter cable / various devices connected to control, e.g., heating, ventilation, Somfy screens, lights, and security
mickeyr61
Posts: 22
Joined: Thursday 19 May 2016 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by mickeyr61 »

I installed the buienradar plugin and followed the steps on gitbub. Everything looked fine, there are no errors and in the Hardware tab in Domoticz the buienradar is found and activated. But in the devices list, there are no devices created. I removed all the files, restarted domoticz and reinstalled the buienradar script, after restarting Domoticz I selected the Buienradar under hardware. But still no devices are found... How do I (manually) created the devices?
RapTile
Posts: 53
Joined: Saturday 10 March 2018 2:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RapTile »

mickeyr61 wrote: Monday 05 November 2018 22:47 I installed the buienradar plugin and followed the steps on gitbub. Everything looked fine, there are no errors and in the Hardware tab in Domoticz the buienradar is found and activated. But in the devices list, there are no devices created. I removed all the files, restarted domoticz and reinstalled the buienradar script, after restarting Domoticz I selected the Buienradar under hardware. But still no devices are found... How do I (manually) created the devices?
Shouldn't they be in the temperature tab or something?
mickeyr61
Posts: 22
Joined: Thursday 19 May 2016 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by mickeyr61 »

mickeyr61 wrote: Tuesday 06 November 2018 20:58 Shouldn't they be in the temperature tab or something?
No, I checked every tab, but there are no buienradar devices.
mickeyr61
Posts: 22
Joined: Thursday 19 May 2016 11:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by mickeyr61 »

mickeyr61 wrote: Tuesday 06 November 2018 20:58 Shouldn't they be in the temperature tab or something?
I just got a brainwave. In the settings I pushed the 'Allow devices for 5 minutes button' then reinstalled the buienradar plugin. And voila, the devices appeared under the devices tab. Problem solved
dvwerkhoven
Posts: 3
Joined: Thursday 20 December 2018 22:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by dvwerkhoven »

I try to display the buienradar weather data in the dashboard from Dashticz.
I use the hardware IDX, in the device tab.
But there is nothing to see in the dashboard, can someone explain why ?
cmartens75
Posts: 15
Joined: Monday 23 April 2018 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by cmartens75 »

First of all, thanks for the script. I was wondering if it is possible to move the rain devices from the "Utility" tab to the "Weather" tab in Domoticz as they are weather related. Thanks in advance for your reaction.
trunks403
Posts: 6
Joined: Wednesday 13 March 2019 15:32
Target OS: Windows
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by trunks403 »

thank you for the script, :) :)

Everything works good with the script but when i check log file i get lots of erros

error: buienrader hardware (12) Thread seems to have ended unexpectedly
Already tried a reboot and create the devices/hardware agian

Does somebody now a sollutions
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

this is because the plugin does not finish on time. I will look into it.
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Hello,

After upgrading to the latest version of this plugin I noticed that the text sensor with the weather prediction is not updated anymore.
In the log file everything is present. All other sensors are updated correctly.

The output of the log file:

2019-03-26 13:36:16.090 (Buienradar) Retrieve weather data from http://xml.buienradar.nl/
2019-03-26 13:36:16.317 (Buienradar) Temperature: 8.8
2019-03-26 13:36:16.317 (Buienradar) Wind Speed: 5.7 | Wind Bearing: 296.0 | Wind Direction: WNW | Wind Speed Gusts: 8.0 | Wind Chill: 5.8
2019-03-26 13:36:16.317 (Buienradar) Barometer: 1031.3 | Barometer Forecast: 0
2019-03-26 13:36:16.318 (Buienradar) Humidity: 62 | Humidity status: 0
2019-03-26 13:36:16.318 (Buienradar) Visibility: 27700
2019-03-26 13:36:16.318 (Buienradar) Solar Irradiance: 232.0
2019-03-26 13:36:16.318 (Buienradar) Rain rate: None
2019-03-26 13:36:16.319 (Buienradar) Weather prediction today: In het westen af en toe zon (Opgesteld op dinsdag 26 mrt 2019 om 12:00)
2019-03-26 13:36:16.331 (Buienradar) Update Buienradar - Temperature: 0 - '8.8'
2019-03-26 13:36:16.343 (Buienradar) Update Buienradar - Humidity: 62 - '0'
2019-03-26 13:36:16.354 (Buienradar) Update Buienradar - Barometer: 0 - '1031.3;0'
2019-03-26 13:36:16.363 (Buienradar) Update Buienradar - Wind: 0 - '296.0;WNW;57;80;8.8;5.8'
2019-03-26 13:36:16.372 (Buienradar) Update Buienradar - Visibility: 0 - '27.7'
2019-03-26 13:36:16.380 (Buienradar) Update Buienradar - Solar Radiation: 0 - '232.0'
2019-03-26 13:36:16.637 (Buienradar) Rain forecast: 0 [0-255] | 0.0 mm/hour

The output of the text sensor is not updated.
Buienradar-text_sensor.png
Buienradar-text_sensor.png (49.92 KiB) Viewed 2897 times
I would have expected the text: "In het westen af en toe zon"

Running the latest beta and the latest version of the plugin on Rasberry Pi.
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

hmm strange, here it works
SweetPants

Re: Buienradar Weather Lookup Plugin

Post by SweetPants »

What doe you see when you press the log button? You should see something like:
BR_forecast.png
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

It simply stops updating the sensor.
It has stopped March 21, probably directly after I upgraded the Buienradar script.
Attachments
Buienradar- Text_Sensor_log.png
Buienradar- Text_Sensor_log.png (50.88 KiB) Viewed 2879 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest