Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

Post Reply
schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by schulpr »

I'm on Lelystad. I see that barometer is empty.

(Buienradar) Temperature: 6.6
2017-02-19 19:08:39.118 (Buienradar) Wind Speed: 2.88
2017-02-19 19:08:39.118 (Buienradar) Wind Bearing: 247.0
2017-02-19 19:08:39.118 (Buienradar) Wind Direction: WSW
2017-02-19 19:08:39.118 (Buienradar) Wind Speed Gusts: 3.6
2017-02-19 19:08:39.119 (Buienradar) Wind Chill: 4.5
2017-02-19 19:08:39.119 (Buienradar) Barometer: None
2017-02-19 19:08:39.119 (Buienradar) Barometer Forecast: 5
2017-02-19 19:08:39.119 (Buienradar) Humidity: 94
2017-02-19 19:08:39.119 (Buienradar) Humidity status: 3
schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by schulpr »

It's filled now:

<weerstation id="6269">
<stationcode>6269</stationcode>
<stationnaam regio="Lelystad">Meetstation Lelystad</stationnaam>
<lat>52.45</lat>
<lon>5.53</lon>
<datum>02/19/2017 19:00:00</datum>
<luchtvochtigheid>91</luchtvochtigheid>
<temperatuurGC>6.7</temperatuurGC>
<windsnelheidMS>2.88</windsnelheidMS>
<windsnelheidBF>2</windsnelheidBF>
<windrichtingGR>250</windrichtingGR>
<windrichting>WZW</windrichting>
<luchtdruk>1020.31</luchtdruk>
<zichtmeters>11200</zichtmeters>
<windstotenMS>4.1</windstotenMS>
<regenMMPU>-</regenMMPU>
<zonintensiteitWM2>1</zonintensiteitWM2>
<icoonactueel ID="pp" zin="half bewolkt">
https://www.buienradar.nl/resources/ima ... x30/pp.png
</icoonactueel>
<temperatuur10cm>6.2</temperatuur10cm>
<url>
http://www.buienradar.nl/nederland/weer ... ieken/6269
</url>
<latGraden>52.75</latGraden>
<lonGraden>5.89</lonGraden>
</weerstation>

But still errors:

2017-02-19 19:28:39.512 Error: (Buienradar) 'onHeartbeat' failed 'TypeError':'type NoneType doesn't define __round__ method'.
2017-02-19 19:28:39.512 Error: (Buienradar) ----> Line 93 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onHeartbeat
2017-02-19 19:28:39.512 Error: (Buienradar) ----> Line 186 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function fillDevices

EDIT: After an update of the hardware it's OK now.

Can you also retrieve the visibility? <zichtmeters>9690</zichtmeters>
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

I just update the repository. Filling the devices should now be more robust.

@schulpr
I will add visibility in the next release. But first this release has to work properly.
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 OK,
2017-02-19 20:03:10.161 (Buienr-VDaal) Initialized version 1.0.1, author 'ffes'

Localtest.py gives:
Found Meetstation Voorschoten at 8.2 km from your home location

Always Voorschoten? :D Domoticz for me configured for Arnhem.

Nice site for location info:
http://nl.mygeoposition.com/
Last edited by Henk50 on Sunday 19 February 2017 20:14, edited 1 time in total.
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

@Henk50

The localtest.py is a small script I use to test (hence the name). It uses the wikipedia location of my home town Den Haag.
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Brutus »

@ffes

What A great job! I've selected the options to separate the devices and to exclude wind chill so the only sensors I have now are:
Temperature, Wind, Barometer and Humidity. Nice and clean!

I will test this for a couple of days. If this works great I can say bye bye to Weather Underground!
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
schulpr
Posts: 137
Joined: Thursday 01 January 2015 9:10
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by schulpr »

I already said goodbye to WU. Respect for the this great plugin and a big thanks to ffes!
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

Thanks for all the nice words! Glad to see people appreciating the plugin.
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

ffes wrote:Thanks for all the nice words! Glad to see people appreciating the plugin.
Just added the last version - great work - indeed bye bye WU ;)
fkok
Posts: 29
Joined: Thursday 19 January 2017 9:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by fkok »

Great Work!!!!
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

@sander815

Yes, that was a bug in the plugin. Indeed updating to the latest version fixed the issue.
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by curious »

After following install instructions there is no new hardware. Do I have to do something extra to allow plugins ?
Attachments
install buienradar.JPG
install buienradar.JPG (46.93 KiB) Viewed 2812 times
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

The git clone needs to be done in the your domoticz/plugins subdirectory. So before the git clone command type "cd domoticz/plugins"
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by curious »

Sorry, I did the original install in the plugins directory.

The picture was to show the commands I entered

Edit : when I run localtest.py there is an error :
Traceback (most recent call last):
File "localtest.py", line 13, in <module>
from buienradar import Buienradar
File "/home/pi/domoticz/plugins/buienradar/buienradar.py", line 16, in <module>
import urllib.request
ImportError: No module named request
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 »

curious wrote:Sorry, I did the original install in the plugins directory.

The picture was to show the commands I entered

Edit : when I run localtest.py there is an error :
Traceback (most recent call last):
File "localtest.py", line 13, in <module>
from buienradar import Buienradar
File "/home/pi/domoticz/plugins/buienradar/buienradar.py", line 16, in <module>
import urllib.request
ImportError: No module named request
I get the same error in localtest.py but the Buienradar plugin is running successful in Domoticz - check your Log to see the messages it generates ;)
Installing the code is not enough - you know you have to add the Hardware part in Domoticz?
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by curious »

That is the problem, i don't see any new hardware.

When I try to install the request module, it says there is allready such a module (in python 2.7)

In usr/lib there are 4 python maps (python2.6, python2.7 , python3 and python 3.4)

Should I remove the two lowest versions) ?
Snowtiger
Posts: 120
Joined: Tuesday 18 October 2016 13:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10915
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Snowtiger »

If you select Hardware in Domoticz - click on Type selector - Buienradar.nl (Weather Lookup) is not present ?
I would not bother about localtest.py - it is not used in active plugin ... it has to be fixed though ;)
Bengelen
Posts: 3
Joined: Sunday 26 February 2017 0:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Bengelen »

Same for me, buienradar does not show up in the Add HW list
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 »

Are you running the beta version? That's necessary.
Have you done the following steps (Raspberry Pi)?
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3.4
sudo apt install libpython3.4
sudo apt install python3-dev

Whats in the Domoticz log?

Running stable here.
ffes
Posts: 51
Joined: Thursday 26 January 2017 23:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ffes »

For me it runs stable as well.

That said, I do update every couple of days to the latest beta to keep up with development. So my domoticz is restarted after that. Maybe that keeps it running, who knows.

But if there is a stability issues, it is a problem with the domoticz python plugins in general and very unlikely with the actual plugin. That is just how stuff works.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest