Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

Post Reply
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by curious »

I finally got this working and like it very much. Perhaps you should emphasize on github that it only works with the beta-version. Toke me some time to find out.


I tried to compare the results with those from buienradar it self.
Especially the wind-data did not match, or I compared them with the wrong data.
Could you please tell me what the data means ?
My guess
1. Winddirection in degrees
2. winddirection in text
3. Windspeed
4. Gust
5. (Wind ?) temperature
6. Windfeel

Is it possible to get the windspeed in beaufort ?
Is is possible to show what weatherstation the data comes from ?

Thank you for answering
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:I finally got this working and like it very much. Perhaps you should emphasize on github that it only works with the beta-version. Toke me some time to find out.


I tried to compare the results with those from buienradar it self.
Especially the wind-data did not match, or I compared them with the wrong data.
Could you please tell me what the data means ?
My guess
1. Winddirection in degrees
2. winddirection in text
3. Windspeed
4. Gust
5. (Wind ?) temperature
6. Windfeel

Is it possible to get the windspeed in beaufort ?
Is is possible to show what weatherstation the data comes from ?

Thank you for answering
edit 13-03 13:01 Check your Domoticz log after Domoticz startup - the first time the Buienradar plugin is active it display the Weather Station used and the distance to your location specified in the Domoticz settings, all other times it gives an an overview of the data received ;)
Your wind data assumption is correct - the temperature in the wind part is just a copy of the real temperature - the Wind Device is modeled after Wunderground information where the same information is available. Do not get confused by m/s and km/h ;)
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

ffes wrote:
htca wrote:I got this error:

Code: Select all

2017-03-09 09:54:20.583 (buienradar) Initialized version 1.1.0, author 'ffes'
2017-03-09 09:54:20.663 (buienradar) Devices created.
2017-03-09 09:54:20.663 Error: (buienradar) 'onStart' failed 'NameError':'name 'Settings' is not defined'.
2017-03-09 09:54:20.663 Error: (buienradar) ----> Line 55 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onStart 
My version is 3.6802
Not sure which version of the beta the Settings were added, but I know in 3.6839 they were available. At the moment the latest beta is 3.6882. So please upgrade to the latest beta and that will most likely solve your issue.

I have the same problem...
How can I update from stable to beta?
I run on Ubuntu (Udoobunto to be precise)
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by pvm »

Choose for beta in the Domoticz general settings and update
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

pvm wrote:Choose for beta in the Domoticz general settings and update
Thanks found it, it a bit hidden:)

But it is still not working, it cannot import Domoticz...
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$ python plugin.py
Traceback (most recent call last):
File "plugin.py", line 29, in <module>
import Domoticz
ImportError: No module named Domoticz
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$
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 »

pvm wrote:But it is still not working, it cannot import Domoticz...
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$ python plugin.py
Traceback (most recent call last):
File "plugin.py", line 29, in <module>
import Domoticz
ImportError: No module named Domoticz
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$
But that is not the way to run it. Just place the files in the directory (that appears to be done) and restart domoticz. You should see the plugin con to live in the log screen.

If you want to try the plugin without domoticz, you can use "localtest.py". That fakes the Domoticz.Log().
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by waaren »

EdKo66 wrote:Thanks. I hope someone here will have a Synology and will answer.
Hi Edko66,

I sent you a PM.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
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 »

waaren wrote:
EdKo66 wrote:Thanks. I hope someone here will have a Synology and will answer.
Hi Edko66,

I sent you a PM.

Got it, and working on it right now.

Thanks
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

Still trying to get this to work.

Domoticz is running, and is in DiskStation:/volume3/@appstore/domoticz/ and the buienradar is in DiskStation:/volume3/@appstore/domoticz/plugins/buienradar

Restarted domitcz with

Code: Select all

var/packages/domoticz/scripts# ash start-stop-status restart

Still no hardware found. I think this is a beta version of Domoticz version 3.6953.

Tried some of the things written in here, but still no luck.c
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by waaren »

Hi EdKo66,

do you have the Beta version with Python plugin enabled ? (there are also Beta versions without) and do you have the right version of Python installed ?

waaren@LM46:/volume1/Synology/Domotica:$python3 --version
Python 3.6.0

and is your buienradar plugin in the right directory ?

waaren@LM46:/usr/local/domoticz/var/plugins/domoticz-buienradar:$ll
total 40
drwxr-sr-x 1 waaren root 192 Feb 19 23:04 .
drwxr-sr-x 1 waaren root 134 Mar 5 23:06 ..
-rw-r--r-- 1 waaren root 10686 Feb 19 22:41 buienradar.py
-rw-r--r-- 1 waaren root 196 Feb 19 22:41 .editorconfig
-rw-r--r-- 1 waaren root 368 Feb 19 22:41 fakeDomoticz.py
drwxr-sr-x 1 waaren root 138 Feb 19 22:41 .git
-rw-r--r-- 1 waaren root 29 Feb 19 22:41 .gitignore
-rw-r--r-- 1 waaren root 810 Feb 19 22:41 localtest.py
-rw-r--r-- 1 waaren root 7614 Feb 19 22:41 plugin.py
drwxr-sr-x 1 root root 92 Feb 19 22:44 __pycache__
-rw-r--r-- 1 waaren root 3666 Feb 19 22:41 ReadMe.md

DomBeta.JPG
DomBeta.JPG (46.17 KiB) Viewed 2864 times
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

ffes wrote:
pvm wrote:But it is still not working, it cannot import Domoticz...
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$ python plugin.py
Traceback (most recent call last):
File "plugin.py", line 29, in <module>
import Domoticz
ImportError: No module named Domoticz
udooer@udoo:~/domoticz/plugins/domoticz-buienradar$
But that is not the way to run it. Just place the files in the directory (that appears to be done) and restart domoticz. You should see the plugin con to live in the log screen.

If you want to try the plugin without domoticz, you can use "localtest.py". That fakes the Domoticz.Log().
Thanks, it is working now.
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 »

deleted- obsulete
Last edited by EdwinK on Friday 17 March 2017 10:06, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

Okay, now the hardware is found. Moving to the next step.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 »

Hi Frank,

I hope you can find some time to add wind speed in Beaufort (windsnelheidBF) and visibility (zichtmeters). It will be highly appreciated!

Thanks again for the great plugin!

Kind regards, Rob
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 »

schulpr wrote:I hope you can find some time to add wind speed in Beaufort (windsnelheidBF) and visibility (zichtmeters). It will be highly appreciated!
The wind speed in Beaufort you can set in "Settings", "Meters/Counters"

For "visibility" there is an open issue: https://github.com/ffes/domoticz-buienradar/issues/2
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 was hoping to have both values with your plugin. I use an additional LUA script to calculate the Beaufort value now for use in my weather dashboard. If it's in your plugin I can delete this LUA script.

Isn't it possible to put the visibility value as it is in the xml in a custom sensor?

Regards, Rob
curious
Posts: 132
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by curious »

Just updated to v3.7041
First message in log is :
2017-03-19 20:43:57.758 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-03-19 20:43:57.758 Error: (Buienradar) Module Import failed, exception: 'MemoryError'

Is it caused by the update or something else
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 »

curious wrote:Just updated to v3.7041
First message in log is :
2017-03-19 20:43:57.758 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2017-03-19 20:43:57.758 Error: (Buienradar) Module Import failed, exception: 'MemoryError'

Is it caused by the update or something else
No idea. Just updated to 3.7067 and everything works as expected
User avatar
Plaagje
Posts: 42
Joined: Thursday 30 April 2015 10:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Plaagje »

Henk50 wrote: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.

Image

how to fix this?
gerardvs
Posts: 81
Joined: Sunday 04 January 2015 0:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest-1
Location: /dev/null
Contact:

Re: Buienradar Weather Lookup Plugin

Post by gerardvs »

Just try

Code: Select all

sudo apt-get install python3
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest