Buienradar Weather Lookup Plugin

Python and python framework
Mace
Posts: 46
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 » Wednesday 04 October 2017 11:00

@Derik: I see in your profile that you are running in Beta. Is this still the case? I'm on the latest beta (3.8452) and although Buienradar returned in the hardware list, I only get the temp/humidity and wind devices, not the rain sensors, which I really need to be able to automate my sunscreen.

johnnie
Posts: 15
Joined: Wednesday 10 December 2014 22:08
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by johnnie » Saturday 07 October 2017 18:23

Dear experts,

Can you please help me, I'm running circules.

When I select the plugin in the hardware-tab, I doesn't show any options and I'm not able to add it to the hardware list, the "toevoegen" button doesn't work. See also the picture.

I followed the github for this plugin and managed to get output running python3 localtest.py, from cli in the directory of the plugin.

After several reboots of the Pi (and Domoticz), searched the internet relating to the following log:
2017-10-07 16:51:52.642 PluginSystem: Started, Python version '3.4.2'.
2017-10-07 16:52:07.324 Python EventSystem: Module not found - Trying to initialize.
2017-10-07 16:52:07.330 Python EventSystem: Initalizing event module.
Found in a thread that this seems to be normal, but can somebody please confirm?

I'm running Rpi with Jessie, and Domoticz Version: 3.8153 Build Hash: 494fff7.
Did all apt updates today aswell.

Thanks in advance, John

>>>
Found the issue, tried to add plugin with browser: Microsoft Edge/Firefox (latest).
Tried it with an older Chrome ans with Safari on Iphone which was the solution........

>>>
Attachments
buienradar.JPG
buienradar.JPG (26.3 KiB) Viewed 430 times
Raspi B+; Razberry zwave; CW2 PIUPS; lots of sensors allready

Mace
Posts: 46
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 » Tuesday 10 October 2017 12:47

Mace wrote:
Wednesday 04 October 2017 11:00
@Derik: I see in your profile that you are running in Beta. Is this still the case? I'm on the latest beta (3.8452) and although Buienradar returned in the hardware list, I only get the temp/humidity and wind devices, not the rain sensors, which I really need to be able to automate my sunscreen.
Can anybody not on the Beta tell me what devices are generated when using this in Domoticz?

raymond
Posts: 78
Joined: Monday 12 October 2015 15:46
Target OS: Raspberry Pi
Domoticz version: V3.8275
Contact:

Re: Buienradar Weather Lookup Plugin

Post by raymond » Tuesday 10 October 2017 13:31

I'm on the latest stable version v3.8153 and it generates (as stated in the first post of this thread and an addition made by G3rard)

In Temperature and Weather tabs: temperature, humitidy, barometer, wind, visibility, Solar Radiation.
In the Utility tab you also get: rain rate, 2 devices for rain forecast, weather forecast.

Hope this helps,

Ray

Mace
Posts: 46
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 » Wednesday 11 October 2017 8:12

Thanks, Raymond. In the Beta, I don't have:
visibility, Solar Radiation, rain rate, 2 devices for rain forecast and weather forecast.

Hope this gets added back soon, as I really have a need for the rain forecast.

User avatar
G3rard
Posts: 825
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 » Wednesday 11 October 2017 9:19

@Mace, you have to install the latest version of the plugin in order to get these new devices.
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

Mace
Posts: 46
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 » Wednesday 11 October 2017 16:35

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: 825
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 » Wednesday 11 October 2017 23:16

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.
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

Mace
Posts: 46
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 » Thursday 12 October 2017 16:23

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: 787
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: 3.8552
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK » 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.
Running latest STABLE on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
G3rard
Posts: 825
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 » Thursday 12 October 2017 23:04

You have to restart Domoticz and make sure all fields on the Hardware page are filled correctly.
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

Mace
Posts: 46
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 » Friday 13 October 2017 0:05

Think I've got it all covered:
DZ_BR2.PNG
DZ_BR2.PNG (219.73 KiB) Viewed 230 times
Even if I fill in 1 minute in both fields, it doesn't get updated.

User avatar
EdwinK
Posts: 787
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: 3.8552
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK » Friday 13 October 2017 9:30

I believe the minimum time to get data from Buienradar is 10 minutes.
Running latest STABLE on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

Mace
Posts: 46
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 » Friday 13 October 2017 11:19

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: 825
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 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
Last edited by G3rard on Friday 13 October 2017 15:38, edited 1 time in total.
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
G3rard
Posts: 825
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 13 October 2017 15:37

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
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

Mace
Posts: 46
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 » Friday 13 October 2017 17:18

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: 787
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: 3.8552
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK » Friday 13 October 2017 18:23

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 STABLE on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

Mace
Posts: 46
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 » Tuesday 17 October 2017 8:51

Still not getting anything like this in the onscreen log. Is there a log being written to the Pi?

User avatar
EdwinK
Posts: 787
Joined: Sunday 22 January 2017 22:46
Target OS: NAS (Synology & others)
Domoticz version: 3.8552
Location: Rhoon
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EdwinK » Tuesday 17 October 2017 9:37

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 STABLE on a NAS Synology 413j | Toon Thermostat | RFxcom | Dashticz V2 |

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests