Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

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 »

@Mace, you have to install the latest version of the plugin in order to get these new devices.
Not using Domoticz anymore
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Cool! Works now. Just one question left: How can I see the location used to get the weather data from (wouldn't be of much help if I'm getting data from Maastricht when I'm near Rotterdam)?
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 »

It’s shown in the log when the scripts starts for the first time. You can press the Update button in the Hardware page and check the log.
The script determines the closest weather station based on the lon lat coordinates from Domoticz.
Not using Domoticz anymore
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Hmmmm:
2017-10-12 16:18:20.163 (Buienradar) Stop directive received.
2017-10-12 16:18:20.363 (Buienradar) Stopping threads.
2017-10-12 16:18:20.377 (Buienradar) Exiting work loop.
2017-10-12 16:18:20.377 (Buienradar) Stopped.
2017-10-12 16:18:20.377 (Buienradar) Started.
2017-10-12 16:18:20.815 (Buienradar) Entering work loop.
2017-10-12 16:18:20.815 (Buienradar) Initialized version 2.0, author 'ffes'

That's all....somehow, not all sensors get's updated...The following ones are red:
Buienradar - Rain forecast
Buienradar - Rain forecast [0-255]
Buienradar - Rain rate

The rest does get updates....
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 »

G3rard wrote: Wednesday 11 October 2017 23:16 .
The script determines the closest weather station based on the lon lat coordinates from Domoticz.
Thanks. Didn't know that either. Now it's getting data from Rotterdam instead of somewhere from the Northern part.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

You have to restart Domoticz and make sure all fields on the Hardware page are filled correctly.
Not using Domoticz anymore
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Think I've got it all covered:
DZ_BR2.PNG
DZ_BR2.PNG (219.73 KiB) Viewed 3283 times
Even if I fill in 1 minute in both fields, it doesn't get updated.
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 believe the minimum time to get data from Buienradar is 10 minutes.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

I removed the 'Hardware', rebooted and added the hardware again, with the standard variables. Still not seeing the selection of the nearest weather station and no updates of the mentioned devices.
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 »

@Mace, you have to wait for some rain :lol:
The devices only get updated when there is a rain forecast. As long as the value of the devices is 0 and the rain forecast is 0, the device won't get updated (that's standard behaviour of the Python plugin update function).

And I think you only check the status part of the log, because the plugin does give all info, also about the weather station, when you press Update when the Buienradar script is selected. Check the All part of the log.

It should contain something like:

Code: Select all

Found Meetstation xx (ID: 1234) at 20.0 km from your home location
Last edited by G3rard on Friday 13 October 2017 15:38, edited 1 time in total.
Not using Domoticz anymore
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 »

EdwinK wrote: Thursday 12 October 2017 17:19
G3rard wrote: Wednesday 11 October 2017 23:16 .
The script determines the closest weather station based on the lon lat coordinates from Domoticz.
Thanks. Didn't know that either. Now it's getting data from Rotterdam instead of somewhere from the Northern part.
Can you set debug level to True for the plugin in the Hardware page? Then it will show in the log which coordinates from Domoticz (settings) are being used.
Should be something like this:

Code: Select all

Rain forecast started with following coordinates from Domoticz: xx.xx;yy.yy
Rain forecast url: https://gps.buienradar.nl/getrr.php?lat=xx.xx&lon=yy.yy
Not using Domoticz anymore
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

G3rard wrote: Friday 13 October 2017 15:35 @Mace, you have to wait for some rain :lol:
The devices only get updated when there is a rain forecast. As long as the value of the devices is 0 and the rain forecast is 0, the device won't get updated (that's standard behaviour of the Python plugin update function).

And I think you only check the status part of the log, because the plugin does give all info, also about the weather station, when you press Update when the Buienradar script is selected. Check the All part of the log.

It should contain something like:

Code: Select all

Found Meetstation xx (ID: 1234) at 20.0 km from your home location
Check! Didn't know that of the rain update.

Did a push on the update button in Hardware, result in the All tab:
2017-10-13 17:13:00.778 EventSystem: Script event triggered: Resol
2017-10-13 17:13:48.457 (Buienradar) Stop directive received.
2017-10-13 17:13:48.557 (Buienradar) Stopping threads.
2017-10-13 17:13:48.731 (Buienradar) Exiting work loop.
2017-10-13 17:13:48.731 (Buienradar) Stopped.
2017-10-13 17:13:48.731 (Buienradar) Started.
2017-10-13 17:13:49.156 (Buienradar) Entering work loop.
2017-10-13 17:13:49.156 (Buienradar) Initialized version 2.0, author 'ffes'
Scrolled thru the rest of the log (4 minutes), no mentioning of a station found....Strange!

I'm on Beat 3.8590 since a few minutes.
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 »

G3rard wrote: Friday 13 October 2017 15:37
Can you set debug level to True for the plugin in the Hardware page? Then it will show in the log which coordinates from Domoticz (settings) are being used.
Should be something like this:

Code: Select all

Rain forecast started with following coordinates from Domoticz: xx.xx;yy.yy
Rain forecast url: https://gps.buienradar.nl/getrr.php?lat=xx.xx&lon=yy.yy

Yes, did that, and found it now working with the correct city/
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Still not getting anything like this in the onscreen log. Is there a log being written to the Pi?
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 »

2017-10-17 09:34:38.683 (Buienradar) Calling message handler 'onHeartbeat'.
2017-10-17 09:34:38.688 (Buienradar) Retrieve weather data from http://xml.buienradar.nl/
2017-10-17 09:34:38.782 (Buienradar) Temperature: 14.2
2017-10-17 09:34:38.782 (Buienradar) Wind Speed: 4.08 | Wind Bearing: 221.0 | Wind Direction: SW | Wind Speed Gusts: 6.1 | Wind Chill: 14.2
2017-10-17 09:34:38.783 (Buienradar) Barometer: 1021.16 | Barometer Forecast: 0
2017-10-17 09:34:38.783 (Buienradar) Humidity: 82 | Humidity status: 3
2017-10-17 09:34:38.783 (Buienradar) Visibility: 12000
2017-10-17 09:34:38.783 (Buienradar) Solar Irradiance: 65.0
2017-10-17 09:34:38.783 (Buienradar) Rain rate: None
2017-10-17 09:34:38.784 (Buienradar) Weather prediction today: Mooi en warm nazomerweer (Opgesteld op dinsdag 17 okt 2017 om 07:30)
2017-10-17 09:34:38.784 (Temperatuur - BR) Updating device from 0:'13.9' to have values 0:'14.2'.
2017-10-17 09:34:39.022 (Buienradar) Update Temperatuur - BR: 0 - '14.2'
2017-10-17 09:34:39.022 (Luchtv. - BR) Updating device from 83:'3' to have values 82:'3'.
2017-10-17 09:34:39.259 (Buienradar) Update Luchtv. - BR: 82 - '3'
2017-10-17 09:34:39.259 (BARO - BR) Updating device from 0:'1021.1;0' to have values 0:'1021.2;0'.
2017-10-17 09:34:39.482 (Buienradar) Update BARO - BR: 0 - '1021.2;0'
2017-10-17 09:34:39.483 (Wind - BR) Updating device from 0:'221.0;SW;44;70;13.9;13.9' to have values 0:'221.0;SW;41;61;14.2;14.2'.
2017-10-17 09:34:39.820 (Buienradar) Update Wind - BR: 0 - '221.0;SW;41;61;14.2;14.2'
2017-10-17 09:34:39.820 (Zichtbaarheid - BR) Updating device from 0:'12.1' to have values 0:'12.0'.
2017-10-17 09:34:40.071 (Buienradar) Update Zichtbaarheid - BR: 0 - '12.0'
2017-10-17 09:34:40.072 (Zonkracht - BR) Updating device from 0:'60.0' to have values 0:'65.0'.
2017-10-17 09:34:40.309 (Buienradar) Update Zonkracht - BR: 0 - '65.0'
2017-10-17 09:34:40.310 (Buienradar) Rain forecast started with following coordinates from Domoticz: 51.860067;4.412692
2017-10-17 09:34:40.310 (Buienradar) Rain forecast url: https://gps.buienradar.nl/getrr.php?lat=51.86&lon=4.41
2017-10-17 09:34:40.716 (Buienradar) Timeframe: 30, rows: 7
2017-10-17 09:34:40.719 (Buienradar) 000|09:35
2017-10-17 09:34:40.720 (Buienradar) 000|09:40
2017-10-17 09:34:40.720 (Buienradar) 000|09:45
2017-10-17 09:34:40.720 (Buienradar) 000|09:50
2017-10-17 09:34:40.720 (Buienradar) 000|09:55
2017-10-17 09:34:40.721 (Buienradar) 000|10:00
2017-10-17 09:34:40.721 (Buienradar) 000|10:05
2017-10-17 09:34:40.721 (Buienradar) Rain forecast: 0 [0-255] | 0.0 mm/hour
This is (part of) my log file.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Hmmm.....Where is this log found? Not in Domoticz itself, in the 'log-tab'?
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 »

This is from the log-tab in Domoticz.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by manjh »

Interesting plugin, especially for those of us living in The Netherlands!

I installed it onto my R-Pi, following the steps in the Wiki article. Rebooted the Pi, and added the plugin on the hardware page.
After that several devices showed up, and I was happy. Waiting for some history to build up.

Later that night I noticed Domoticz no longer reacted to pir sensors (lights stayed out).
Looked online: no response in the browser.
Logged on to the R-Pi and looked at Domoticz status: all looks OK.
Restarted Domoticz, same result. Rebooted the Pi: no change.

Since I can't live without Domoticz these days, decided to stop Domoticz, and remove the plugin from the plugins directory.
Started Domoticz up again, and all was OK again.... removed Buienradar from the HW page.

Since I see many happy users on this thread, I am wondering what could have gone wrong...
Hans
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Buienradar Weather Lookup Plugin

Post by Snowtiger »

EdwinK wrote:This is from the log-tab in Domoticz.
i assume you have debug set to true in the Hardware setup of Buienradar plugin?
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Mace »

Set it both to True and Logging. All I get is:
2017-10-18 14:42:03.412 (Buienradar) Stop directive received.
2017-10-18 14:42:03.612 (Buienradar) Stopping threads.
2017-10-18 14:42:03.631 (Buienradar) Exiting work loop.
2017-10-18 14:42:03.631 (Buienradar) Stopped.
2017-10-18 14:42:03.632 (Buienradar) Started.
2017-10-18 14:42:04.039 (Buienradar) Entering work loop.
2017-10-18 14:42:04.039 (Buienradar) Initialized version 2.0, author 'ffes'

I'm on the latest Beta.
Post Reply

Who is online

Users browsing this forum: sincze and 1 guest