Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

cybermaus
Posts: 5
Joined: Monday 14 November 2016 16:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by cybermaus »

Hi

I just installed this plugin yesterday, and it seems to all work first go.
Earlier I had updated Domoticz to 4.10717 (from 4.09xxx or something) and dist-upgraded Debian 9.9 stretch

Nice work on the plugin.

Question: Anyone has any examples on how to use LUA to trigger events? Or alternatively to just read values?
Specifically I want to read wind and solar radiation:
High wind: retract awning;
High solar: lower sunscreens;

Thanks
Maurits
akamming
Posts: 368
Joined: Friday 17 August 2018 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by akamming »

i am running domoticz a rpi3b+ with latest beta 4.11074. buienradar is also on latest version (git pull give "already up2date" as response). I am a happy user of this plugin. many thanx to the developer.

I noticed after a reboot of the pi the buienradar plugin does not work, i get these error messages regularly in the log file

Code: Select all

2019-08-12 12:20:28.640  Error: (Buienradar) 'onHeartbeat' failed 'NameError':'name 'br' is not defined'.
2019-08-12 12:20:28.640  Error: (Buienradar) ----> Line 168 in '/home/domoticz/domoticz/plugins/domoticz-buienradar/plugin.py', function onHeartbeat
2019-08-12 12:20:28.640  Error: (Buienradar) ----> Line 152 in '/home/domoticz/domoticz/plugins/domoticz-buienradar/plugin.py', function onHeartbeat


after a restart of domoticz (without rebooting the pi) the error is gone and buienradar wheater lookup works again. When i reboot the pi, the error is back.

does anyone know howto fix?
Derik
Posts: 1602
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 »

gerbenvanasselt wrote: Tuesday 09 July 2019 13:31 Hi there,
This week I tried installing the Buienradar plugin on a new sdcard with raspbian buster as OS. The domoticz runs with python v 3.7.3.
When I install the Buienradar plugin and add it in the hardware section. Domoticz stops working, even after a restart of Domo and and a reboot of my pi domoticz won't start. After deleting the plugin from the folder in domoticz it starting domoticz again. Could it be that the plugin is not suitable for python 3.7.3?

Are there other people who experience the same?
I hope there will be a solution, because I really enjoy my Buienradar plugin.

Thanks in advance!



Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Same problem here for me...
Latest beta...
What i try..[ new setup, directly from git ]
plugin buienradar on, domoticz crash after a minute
Plugin buienradar off, domoticz stable..
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
gerbenvanasselt
Posts: 74
Joined: Friday 07 September 2018 14:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta 4.1
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by gerbenvanasselt »

Derik wrote:
gerbenvanasselt wrote: Tuesday 09 July 2019 13:31 Hi there,
This week I tried installing the Buienradar plugin on a new sdcard with raspbian buster as OS. The domoticz runs with python v 3.7.3.
When I install the Buienradar plugin and add it in the hardware section. Domoticz stops working, even after a restart of Domo and and a reboot of my pi domoticz won't start. After deleting the plugin from the folder in domoticz it starting domoticz again. Could it be that the plugin is not suitable for python 3.7.3?

Are there other people who experience the same?
I hope there will be a solution, because I really enjoy my Buienradar plugin.

Thanks in advance!



Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Same problem here for me...
Latest beta...
What i try..[ new setup, directly from git ]
plugin buienradar on, domoticz crash after a minute
Plugin buienradar off, domoticz stable..
My problem was solved by updating my pi (sudo apt-get update && sudo apt-get upgrade -y)


Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

buitje
Posts: 3
Joined: Friday 29 March 2019 16:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by buitje »

Any update on this topic as I am experiencing the same issue with buster and python 3.7?
2019-11-28 16:10:07.538 (Weer Buienradar) Retrieve weather data from http://xml.buienradar.nl/
2019-11-28 16:10:07.635 Error: Domoticz(pid:502, tid:507('PluginMgr')) received fatal signal 6 (Aborted)
2019-11-28 16:10:07.635 Error: siginfo address=0x1f6, address=(nil)
The issue happens at the moment data is retrieved
PAHVelthuis
Posts: 5
Joined: Monday 11 May 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by PAHVelthuis »

Using Buster in combination with Python 2.7.16
With this plugin enabled, Domoticz is not reachable after +/- 1 hr. With the plugin disabled, the system runs stable for > 2 days.
Remmert
Posts: 5
Joined: Thursday 23 January 2020 13:21
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Remmert »

Hi guys,

Who can help me..

2020-01-23 13:14:59.654 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/domoticz-buienradar/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload:/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages'.
2020-01-23 13:14:59.654 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2020-01-23 13:14:59.654 Error: (Buienradar) Module Import failed: ' Name: requests'
2020-01-23 13:14:59.654 Error: (Buienradar) Error Line details not available.
2020-01-23 13:15:49.350 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:16:03.631 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:16:17.931 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:16:32.221 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:16:46.526 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:17:00.811 Error: Buienradar hardware (7) thread seems to have ended unexpectedly
2020-01-23 13:17:15.091 Error: Buienradar hardware (7) thread seems to have ended unexpectedly

Other Plugin works, but this one is not showing in the Devices.
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Hi,

Try to install requests.

Execute the following command: pip3 install requests

Regards
Remmert
Posts: 5
Joined: Thursday 23 January 2020 13:21
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Remmert »

In with directory do i have to run this command?
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Your "home" directory is ok.

But correction. Use sudo pip3 install requests
Remmert
Posts: 5
Joined: Thursday 23 January 2020 13:21
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Remmert »

Sorry, I don't get it...

i'm a NOOB ;) I can install plugins via WinSCP, running it with the Terminal in WinSCP.

but Execute the command doesn't work. Some failures.
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Hi,

Did you execute the command sudo pip3 install requests in a terminal?

And you said; "Some failures".
Can you indicate, what failures?

Regards
Remmert
Posts: 5
Joined: Thursday 23 January 2020 13:21
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Remmert »

Something like this...
Attachments
Knipsel.PNG
Knipsel.PNG (47.2 KiB) Viewed 1500 times
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Hi,

On which platform have you Domoticz installed?

And also this question: Why do you want to install the "Buienradar" plugin, while Domoticz has native support for "Buienradar"?

Regards
Remmert
Posts: 5
Joined: Thursday 23 January 2020 13:21
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Remmert »

Hi,

Domoticz is installed on a DS214+ with Python.

Well I’m just trying to add some plug-ins to see of it works.
I already use Open Weather with an API. That works.

Maybe buienradar has some other data.
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Buienradar Weather Lookup Plugin

Post by FireWizard »

Hi,

Maybe, you have to install pip3 first. I have no knowledgeabout the Synology NAS,

See: http://domoticx.com/synology-nas-python ... stalleren/

Regards
Firestorm80
Posts: 1
Joined: Wednesday 04 March 2020 13:24
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Firestorm80 »

Remmert wrote: Thursday 23 January 2020 16:36 Hi,

Domoticz is installed on a DS214+ with Python.

Well I’m just trying to add some plug-ins to see of it works.
I already use Open Weather with an API. That works.

Maybe buienradar has some other data.
I had the same issue, it's because pip3 is not in the PATH.
sudo python3 get-pip.py
WARNING: The scripts pip, pip3 and pip3.5 are installed in '/volume1/@appstore/py3k/usr/local/bin' which is not on PATH.

Either add that directory to the PATH or execute this statement:
sudo /volume1/@appstore/py3k/usr/local/bin/pip3 install requests

After that my Buienradar script works.
You can test commandline from the plugins\Domoticz-Buienradar by using python3 plugin.py
Should be error free now.
User avatar
ILoveIOT
Posts: 59
Joined: Sunday 25 March 2018 17:47
Target OS: Linux
Domoticz version: 2020.2
Location: NL
Contact:

Re: Buienradar Weather Lookup Plugin

Post by ILoveIOT »

Is there a way to change the script, I'am in Hungary but I would like to have the data :D

2020-04-14 10:07:00.520 Error: BuienRadar: No (nearby) station found!
2020-04-14 10:07:36.173 Error: BuienRadar: Error getting http data! (Check your internet connection!)
1x OPI PC 5.8.16 Debian 10, MiniDNLA,SMD230,EpEver,MPD,800GB,Wiegand,7 temps,DHT,32/64 I/O,2022.1
2x OPI PC 4.19.25 Debian 9, MPD,7 temps,16/32 I/O,BMP,4.10717
1x IntelNUC 5.10 Debian 10, 2TB,DalyBMS,2023.1
3x ESPEasy NodeMCU V3, 16/16 I/O
INendels
Posts: 4
Joined: Friday 18 January 2019 17:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by INendels »

I have the same problem now, think after the last update.
i am in Lage Zwaluwe, normally i get station Gilze-Rijen, but now the error 'No (nearby) station found'
User avatar
Ragdag
Posts: 152
Joined: Friday 30 March 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ragdag »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest