Page 5 of 20

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 19:26
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

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 19:31
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>

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 19:54
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.

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 20:08
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/

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 20:11
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.

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 21:18
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!

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 21:21
by schulpr
I already said goodbye to WU. Respect for the this great plugin and a big thanks to ffes!

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 22:51
by ffes
Thanks for all the nice words! Glad to see people appreciating the plugin.

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 19 February 2017 23:01
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 ;)

Re: Buienradar Weather Lookup Plugin

Posted: Monday 20 February 2017 8:47
by fkok
Great Work!!!!

Re: Buienradar Weather Lookup Plugin

Posted: Tuesday 21 February 2017 13:21
by ffes
@sander815

Yes, that was a bug in the plugin. Indeed updating to the latest version fixed the issue.

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 14:23
by curious
After following install instructions there is no new hardware. Do I have to do something extra to allow plugins ?

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 14:43
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"

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 15:43
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

Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 18:26
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?

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 18:38
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) ?

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 20:53
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 ;)

Re: Buienradar Weather Lookup Plugin

Posted: Sunday 26 February 2017 23:47
by Bengelen
Same for me, buienradar does not show up in the Add HW list

Re: Buienradar Weather Lookup Plugin

Posted: Monday 27 February 2017 20:20
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.

Re: Buienradar Weather Lookup Plugin

Posted: Tuesday 28 February 2017 13:16
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.