Buienradar Weather Lookup Plugin

Python and python framework
Rodio
Posts: 40
Joined: Thursday 16 April 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Rodio » Thursday 07 December 2017 23:14

Running v3.8153 on Synology and RPI.
I see NO problems

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 20:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by AndreFR » Monday 11 December 2017 10:25

I've got a 'problem' with the location of the 'Buienradar'. I've put the location in Domoticz setup (it's correctly used by the openweathermap), however if I run python3 locatest.py it's pointing to meetstation Lauwersoog (instead of Rotterdam):
pi@raspberrypi:~/domoticz/plugins/domoticz-buienradar $ python3 localtest.py
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: 1.6
Wind Speed: 5.65 | Wind Bearing: 97.0 | Wind Direction: E | Wind Speed Gusts: 8.9 | Wind Chill: -3.3
Barometer: None | Barometer Forecast: 5
Humidity: 81 | Humidity status: 3
Visibility: None
Solar Irradiance: 1.0
Rain rate: None
Weather prediction today: Opnieuw flinke sneeuwval (Opgesteld op maandag 11 dec 2017 om 06:30)

Any idea how to change the meetstation into Rotterdam??

User avatar
EdwinK
Posts: 1182
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 » Monday 11 December 2017 10:43

In localtest.py it uses this location only to test if things work. You need to use the other file. buienradar.py I think.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 20:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by AndreFR » Monday 11 December 2017 10:48

let's rephrase my question then: how do I check if the correct meetstation location is used?

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 20:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by AndreFR » Monday 11 December 2017 21:00

I found the solution: restart Domoticz and watch the logs :P

Btw its now pointing to the correct ‘meetstation’

rjblake
Posts: 149
Joined: Friday 21 October 2016 9:25
Target OS: NAS (Synology & others)
Domoticz version:
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by rjblake » Tuesday 19 December 2017 16:05

waaren wrote:
Wednesday 06 December 2017 9:46
Still the same problem with version Domoticz V3.8771 and one or more active plugins.

I use buienradar, homewizard, NUT_UPS and Sonos. If I make any or all of these plugins active, domoticz crashes with:

2017-12-06 08:38:18.481 PluginSystem: Entering work loop.
2017-12-06 08:38:18.650 Error: Domoticz received fatal signal 11 !...
2017-12-06 08:38:18.651 Error: /opt/domoticz/domoticz() [0x236254]
2017-12-06 08:38:18.652 Error: /opt/domoticz/domoticz(_Z14signal_handleri+0x4c) [0x23630c]
2017-12-06 08:38:18.652 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0x76c7e6b0]

on my RPI3 latest working Beta is domoticz.v3.8627
Still causes Domoticz to crash/fail to start on Raspberry Pi v3.8793 in my case. I have another Python plugin (Denon AVR) that is working just fine

AndreFR
Posts: 14
Joined: Thursday 30 November 2017 20:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by AndreFR » Wednesday 20 December 2017 12:08

I noticed that the buienrader plugin is giving some errors:
2017-12-20 08:08:38.909 Error: (Buienradar ) Error: URL: http://xml.buienradar.nl/
2017-12-20 08:08:38.913 Error: (Buienradar ) Error: URL: https://api.buienradar.nl/
2017-12-20 08:19:08.951 Error: (Buienradar ) 'onHeartbeat' failed 'TypeError':'type NoneType doesn't define __round__ method'.
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 143 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 133 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-12-20 08:19:08.951 Error: (Buienradar ) ----> Line 277 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function fillDevices

(above is repeating xx minutes).

I've nothing changed on my Raspberry Pi, even after reboot of the Pi the errors are occurin. Any solution???

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

Re: Buienradar Weather Lookup Plugin

Post by Derik » Monday 08 January 2018 0:21

Dear developer....

Is there perhaps a option to use the wind chill separate as 1 device?
I think this a extra option in the winter...
The data is in the list:

Code: Select all

2018-01-07 23:10:58.332 (D.M.: Buienradar) Wind Speed: 5.19 | Wind Bearing: 60.0 | Wind Direction: ENE | Wind Speed Gusts: 10.0 | Wind Chill: -6.4
Or can you make this in your plugin like the text funtion etc etc

Code: Select all

2018-01-07 23:10:58.333 (D.M.: Buienradar) Weather prediction today: Wind maakt het extra koud (Opgesteld op zondag 7 jan 2018 om 10:15)
Thanks from my kids... when they get a mail how cold it feels when they have to go school..:-)
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
EddyG
Posts: 238
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 3.9517
Location: Rhenen, Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EddyG » Monday 08 January 2018 13:55

If you want, you can do it manually by adding device 13 in the file plugin.py. It works for me.
@ffes This could be a choice in the setup. ;)

Code: Select all

    # Add the wind (and wind chill?) device
    if Parameters["Mode5"] == "True":
        if 6 not in Devices:
            Domoticz.Device(Name="Wind", Unit=6, TypeName="Wind+Temp+Chill", Used=1).Create()
    else:
        if 5 not in Devices:
            Domoticz.Device(Name="Wind", Unit=5, TypeName="Wind", Used=1).Create()
        if 13 not in Devices:
            Domoticz.Device(Name="Wind Chill", Unit=13, TypeName="Temperature", Used=1).Create()
and

Code: Select all

        # Wind
        if br.windBearing != None and br.windSpeed != None and br.windSpeedGusts != None:
            UpdateDevice(5, 0, str(br.windBearing)
                    + ";" + br.getWindDirection()
                    + ";" + str(round(br.windSpeed * 10))
                    + ";" + str(round(br.windSpeedGusts * 10))
                    + ";0;0")
            # Wind and Wind Chill
            UpdateDevice(6, 0, str(br.windBearing)
                    + ";" + br.getWindDirection()
                    + ";" + str(round(br.windSpeed * 10))
                    + ";" + str(round(br.windSpeedGusts * 10))
                    + ";" + str(round(br.temperature, 1))
                    + ";" + str(br.getWindChill()))
            # Wind Chill
            UpdateDevice(13, 0, str(br.getWindChill()))
Regards,
Eddy

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

Re: Buienradar Weather Lookup Plugin

Post by Derik » Monday 08 January 2018 14:17

@ Eddy...
Thanks looks great...

Make no different where in the plugin.py?
And is there then a new device visible in domoticz?

Please some more info..

Thanks
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
EddyG
Posts: 238
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 3.9517
Location: Rhenen, Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EddyG » Monday 08 January 2018 15:54

Put it in the place where I put it. It the code with unit 13.
You can see by the code where.
Yes there will be a new device in the Temperature tab with 'Buienrader Wind Chill'
The parts to be added are:

Code: Select all

      if 13 not in Devices:
            Domoticz.Device(Name="Wind Chill", Unit=13, TypeName="Temperature", Used=1).Create()
and

Code: Select all

# Wind Chill
UpdateDevice(13, 0, str(br.getWindChill()))
Regards,
Eddy

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

Re: Buienradar Weather Lookup Plugin

Post by Derik » Monday 08 January 2018 17:26

mmm Get an error:

Code: Select all

2018-01-08 16:13:32.751 Error: D.M.: Buienradar hardware (76) thread seems to have ended unexpectedly
Did use 1 of the first version and never did a update..

Perhaps there is a pr in github possible?
To make this standard...


Edit:
Start again everything removed..
New plugin install latest version...
Copy paste your latest code
Only error in the log:

Code: Select all

2018-01-08 16:37:25.382 (Solar: Dummy) Started.
2018-01-08 16:37:25.455 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/root/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-01-08 16:37:25.455 Error: (Solar: Dummy) Module Import failed, exception: 'IndentationError'
2018-01-08 16:37:25.456 Error: (Solar: Dummy) Import detail: File: /home/root/domoticz/plugins/domoticz-buienradar/plugin.py, Line: -1239619133, offset: 232
2018-01-08 16:37:25.456 Error: (Solar: Dummy) Error Line ' if 13 not in Devices:
Perhaps you can share your plugin.py code?
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
EddyG
Posts: 238
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 3.9517
Location: Rhenen, Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EddyG » Monday 08 January 2018 17:55

This my plugin.py (I had to upload with py changed in txt)

The "exception: 'IndentationError'" explains why.
Attachments
plugin.txt
(12.39 KiB) Downloaded 43 times
Regards,
Eddy

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

Re: Buienradar Weather Lookup Plugin

Post by Derik » Monday 08 January 2018 18:30

@ Edy THANKS!!!

this did the tric :-)
Got him:
ScreenShot111.png
ScreenShot111.png (31.71 KiB) Viewed 1180 times
And the thing i mis i think:
ScreenShot112.png
ScreenShot112.png (13.42 KiB) Viewed 1180 times
Thanks for the support!!
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
EddyG
Posts: 238
Joined: Monday 02 November 2015 6:54
Target OS: Raspberry Pi
Domoticz version: 3.9517
Location: Rhenen, Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by EddyG » Monday 08 January 2018 21:31

Not completely the same:
In the Temperature tab 2 Temperature device like below.
Attachments
2018-01-08_20-28-35.png
2018-01-08_20-28-35.png (24.58 KiB) Viewed 1166 times
Regards,
Eddy

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

Re: Buienradar Weather Lookup Plugin

Post by Derik » Saturday 20 January 2018 18:31

mmm
I did a new install because there was something wrong...

Only now i get an error in the wget step:

Code: Select all

root@odroidxu4:/home/root/domoticz/plugins# git clone https://github.com/ffes/domoticz-buienradar.git
Cloning into 'domoticz-buienradar'...
fatal: unable to access 'https://github.com/ffes/domoticz-buienradar.git/': Could not resolve host: github.com
Perhaps something changed???
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
EdwinK
Posts: 1182
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 20 January 2018 19:32

I just tried this myself a couple of minutes ago, and no errors cloning this plugin.

(still can't get it to work though)

Code: Select all

 sudo git clone https://github.com/ffes/domoticz-buienradar.git Buienradar
Cloning into 'Buienradar'...
remote: Counting objects: 154, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 154 (delta 2), reused 8 (delta 2), pack-reused 143
Receiving objects: 100% (154/154), 51.65 KiB | 38.00 KiB/s, done.
Resolving deltas: 100% (85/85), done.
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

tezzlicious
Posts: 14
Joined: Saturday 09 April 2016 13:47
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by tezzlicious » Saturday 20 January 2018 19:42

Following happens on beta 3.8862 (removed and readded Buienradar hardware):

Code: Select all

2018-01-20 18:36:23.075  (Buienradar) Found Meetstation Heino (ID: 6278) at 23.6 km from your home location
2018-01-20 18:36:23.076  (Buienradar) No Barometer and Visibility info found in your weather station, getting info from weather station De Bilt
2018-01-20 18:36:23.077  (Buienradar) Temperature: 2.8
2018-01-20 18:36:23.077  (Buienradar) Wind Speed: 0.92 | Wind Bearing: 95.0 | Wind Direction: E | Wind Speed Gusts: 1.2 | Wind Chill: 2.8
2018-01-20 18:36:23.077  (Buienradar) Barometer: 1000.44 | Barometer Forecast: 2
2018-01-20 18:36:23.077  (Buienradar) Humidity: 97 | Humidity status: 3
2018-01-20 18:36:23.077  (Buienradar) Visibility: 15600.0
2018-01-20 18:36:23.077  (Buienradar) Solar Irradiance: None
2018-01-20 18:36:23.077  (Buienradar) Rain rate: None
2018-01-20 18:36:23.078  (Buienradar) Weather prediction today: Af en toe nog winters (Opgesteld op zaterdag 20 jan 2018 om 05:45)
2018-01-20 18:36:23.079  Error: Domoticz received fatal signal 11 !...
2018-01-20 18:36:23.081  Error:   /home/pi/domoticz/domoticz() [0x209a84]
2018-01-20 18:36:23.081  Error:   /home/pi/domoticz/domoticz(_Z14signal_handleri+0x58) [0x209b3c]
2018-01-20 18:36:23.081  Error:   /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76bf3180]

dutchy
Posts: 3
Joined: Sunday 21 January 2018 21:27
Target OS: Windows
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by dutchy » Sunday 21 January 2018 21:33

Dear members,

I'm trying to install buienradar in my Windows setup, but I'm unable to find the plugins folder. I've been trying to use the manual on the github page, but it seems that I'm missing something.

Can someone help me out?

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by htilburgs » Sunday 21 January 2018 21:49

Domoticz v3.8833 (Fresh install by compile)
After installing this plugin, I received an error
Error: Domoticz received fatal signal 11 !...
Other plugins work fine. Disable this plugin and everything is fine again. Any ideas?
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests