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 »

Hi ffes,

I hope you can find some time to implement the other available weather data soon. I think it's very stable.

<zichtmeters>39000</zichtmeters>
<windstotenMS>13.8</windstotenMS>
<zonintensiteitWM2>292</zonintensiteitWM2>

Thanks for all your work!

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 »

@sander815

And when it stops working, what is shown in the log? Do you see the plugin's log lines appear?
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 released a new version of my Buienradar plugin. This uses the new Settings dictionary that was added to the Python plugin in recent betas. So before you upgrade to this version of the Buienradar plugin be sure to have the latest beta of Domoticz.

So for new users there is zero configuration to get the plugin running initially.
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 »

It works for me now, is it hard or possible to get data from buienradar.be also?
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 »

Bengelen wrote:Is it hard or possible to get data from buienradar.be also?
That seems not possible. I use http://xml.buienradar.nl to get the weather information. http://xml.buienradar.be doesn't work, so there is no data to use for me.

Also notice that things they provide on http://www.buienradar.be/overbuienradar ... uw-website is much smaller then http://www.buienradar.nl/overbuienradar ... uw-website. Maybe multiple requests from various Belgian users will help them to bring those features to Belgium as well.
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RayAmsterdam »

Beta 3.6863
Rpi 3b

Today I installed the plugin. After selecting it in the hardware menu, it said the devices are added to the devices tab. Unfortunately they aren't. Am I missing something?
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 »

When trying to restart domoticz I get the following
root@DiskStation:/volume3/@appstore/domoticz/plugins/buienrader# sudo service domoticz.sh restart
sudo: service: command not found
Stopping and restarting from Synology panel didn't help either

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

RayAmsterdam wrote:Today I installed the plugin. After selecting it in the hardware menu, it said the devices are added to the devices tab. Unfortunately they aren't. Am I missing something?
What do you see in the log? Did you try to filter the devices based on the name you gave on the hardware page?
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RayAmsterdam »

ffes wrote:
RayAmsterdam wrote:Today I installed the plugin. After selecting it in the hardware menu, it said the devices are added to the devices tab. Unfortunately they aren't. Am I missing something?
What do you see in the log? Did you try to filter the devices based on the name you gave on the hardware page?
I get error "Error: Buienradar hardware (21) thread seems to have ended unexpectedly" in the log. I used the filter.
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 »

RayAmsterdam wrote:I get error "Error: Buienradar hardware (21) thread seems to have ended unexpectedly" in the log. I used the filter.
Pfff, I have never seen that before. I don't think it is something I can do much about. A script should not be able to end a thread that way, I would think.

Do you run the latest beta of domoticz? Could you restart domoticz and look at the logs?
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RayAmsterdam »

ffes wrote:
RayAmsterdam wrote:I get error "Error: Buienradar hardware (21) thread seems to have ended unexpectedly" in the log. I used the filter.
Pfff, I have never seen that before. I don't think it is something I can do much about. A script should not be able to end a thread that way, I would think.

Do you run the latest beta of domoticz? Could you restart domoticz and look at the logs?
Yep, running latest beta. Already restarted Domoticz and pi. Sonos plugin is running normal.
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RayAmsterdam »

I reinstalled the plugin and reconfugured it in Domoticz. It stated again the hardware is created and devices added. I got the following errors in the log:

Code: Select all

2017-03-07 20:50:34.186 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Buienradar/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5/:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-03-07 20:50:34.186 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2017-03-07 20:50:34.186 Error: (Buienradar) Module Import failed: ' Name: buienradar'
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 »

RayAmsterdam wrote:I reinstalled the plugin and reconfugured it in Domoticz. It stated again the hardware is created and devices added. I got the following errors in the log:

Code: Select all

2017-03-07 20:50:34.186 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Buienradar/:/usr/local/lib/python35.zip:/usr/local/lib/python3.5/:/usr/local/lib/python3.5/plat-linux:/usr/local/lib/python3.5/lib-dynload'.
2017-03-07 20:50:34.186 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2017-03-07 20:50:34.186 Error: (Buienradar) Module Import failed: ' Name: buienradar'
there is a problem with the library the plugin uses - in your error code you see /plugins/Buienradar - if you do a

Code: Select all

git clone
you get /plugins/domoticz-buienradar, this discrepancy can also be read in the Readme.md in Git

Code: Select all

1.In your domoticz/plugins directory do

cd domoticz/plugins
git clone https://github.com/ffes/domoticz-buienradar.git

2.Alternatively you can download the latest version from https://github.com/ffes/domoticz-buienradar/archive/master.zip and unzip it. Then create a directory on your Domoticz device in domoticz/plugins named buienradar and transfer all the files to your device.
So - if you use the 2nd method the plugin should work.
@ffes should update git to get the modules in /plugins/Buienradar to let this work via git - my choice of method btw ;)
I created an issue in Git to address this
Last edited by Snowtiger on Wednesday 08 March 2017 12:48, edited 3 times in total.
RayAmsterdam
Posts: 115
Joined: Sunday 11 January 2015 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by RayAmsterdam »

Thanks! I missed the files.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Derik »

mmm

Is there a how to for plugins?
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
htca
Posts: 21
Joined: Thursday 28 January 2016 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by htca »

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

EdKo66 wrote:When trying to restart domoticz I get the following
root@DiskStation:/volume3/@appstore/domoticz/plugins/buienrader# sudo service domoticz.sh restart
sudo: service: command not found
Stopping and restarting from Synology panel didn't help either

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

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

EdKo66 wrote:
EdKo66 wrote:When trying to restart domoticz I get the following
root@DiskStation:/volume3/@appstore/domoticz/plugins/buienrader# sudo service domoticz.sh restart
sudo: service: command not found
Stopping and restarting from Synology panel didn't help either

Running on Synology 6.1
No one?
No sorry. Don't own a Synology so can't really help you. There has to be a way to restart a service without restarting the entire device though.
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 »

Thanks. I hope someone here will have a Synology and will answer.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests