Buienradar Weather Lookup Plugin

Python and python framework

Moderator: leecollings

DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by DosN »

Did git pull . files where updated to latest version
Now i have no logging at domoticz . only that it is started ., then system hanging
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 »

Same for me, the last update gives no error in the domo-log but system (pi) is not accessible any more after a while and need a hard reboot.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

gerbenvanasselt wrote: Saturday 06 April 2019 15:10 Same for me, the last update gives no error in the domo-log but system (pi) is not accessible any more after a while and need a hard reboot.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
What versions are you on?
I am on Domoticz 4.10548 and python 3.5.3 and here everything works perfectly
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 »

gerbenvanasselt wrote:After updating the plugin i have the following error.

Running domo beta v.10572 with python version 3.5.3 rpi 3b.

Befere the update it worked well.

First did a git pull and the following error occured. Then I deleted the plugin from hardware tab and remove the plugin from the domo plugin folder. After that i did a git clone and installed the hardware again. But the same error occured.

2019-04-05 13:37:10.872 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-04-05 13:37:10.872 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2019-04-05 13:37:10.872 Error: (Buienradar) Error Line details not available.
See above for version.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

flyboarder
Posts: 4
Joined: Thursday 04 April 2019 20:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by flyboarder »

Ewaldharmsen wrote: Thursday 04 April 2019 21:09
flyboarder wrote: Thursday 04 April 2019 20:38 I installed the plug-in following the steps on the git page. But after I add Buienrader on the hardware page I see the following error in the log:

2019-04-03 23:14:03.318 Error: (Buienradar) 'onStart' failed 'TypeError':'__init__() takes from 1 to 4 positional arguments but 5 were given'.
2019-04-03 23:14:03.318 Error: (Buienradar) ----> Line 152 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onStart
2019-04-03 23:14:03.318 Error: (Buienradar) ----> Line 120 in /home/pi/domoticz/plugins/domoticz-buienradar/plugin.py, function onStart

Does anyone has a clue what is going wrong here?
can you update the plugin with git pull and try again?
Thanks, that has solved the issue.
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by DosN »

i run Domoticz v4.10602
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 »

After I have updated Domoticz to v4.10602. the problem with stalling seems to be solved. My pi 3b+ is running for a few days now without any problems.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

Good to hear
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 »

Hi I started from scratch last weekend. I got the following error in my log:

Code: Select all

2019-04-14 20:53:55.457 Status: (Buienradar) Started.
2019-04-14 20:53:56.362 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-04-14 20:53:56.362 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2019-04-14 20:53:56.363 Error: (Buienradar) Module Import failed: ' Name: requests'
2019-04-14 20:53:56.363 Error: (Buienradar) Error Line details not available.
2019-04-14 20:55:00.501 Error: Buienradar hardware (5) thread seems to have ended unexpectedly
plugin.py is in the path indicated:

Code: Select all

pi@raspberrypi:~/domoticz/plugins $ pwd
/home/pi/domoticz/plugins
pi@raspberrypi:~/domoticz/plugins $ cd domoticz-buienradar/
pi@raspberrypi:~/domoticz/plugins/domoticz-buienradar $ ls
buienradar-logo.zip  buienradar.xml  ChangeLog.md     LICENSE.md    localtest_rf.py  __pycache__      raintext.txt
buienradar.py        buienradar.zip  fakeDomoticz.py  localtest.py  plugin.py        rainforecast.py  ReadMe.md
Domoticz Version: 4.9700
Buienradar Version: April 4
Python Version: 3.5.3

solved:
- changed to beta
- added executable permission to plugin.py
DosN
Posts: 49
Joined: Monday 29 January 2018 7:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by DosN »

i also installed the plugin , but it is not working at all
the PI3B will crash .
at the logging in Domticz i see:

2019-04-01 18:39:25.780 Status: (Weersverwachting (Buienradar)) Started.
2019-04-01 18:40:38.962 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly
2019-04-01 18:40:52.965 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly
2019-04-01 18:41:06.968 Error: Motherboard sensors hardware (23) thread seems to have ended unexpectedly
2019-04-01 18:41:06.968 Error: Weersverwachting (Buienradar) hardware (24) thread seems to have ended unexpectedly

i already updated domoticz to the lates version, and updated buienradar plugin ,, nothing helped
cmartens75
Posts: 15
Joined: Monday 23 April 2018 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Buienradar Weather Lookup Plugin

Post by cmartens75 »

Hi,

After updating the Buienradar plugin, the following message is being displayed in the Domoticz log:

2019-04-24 21:48:13.331 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-04-24 21:48:13.331 Error: (Weer) Module Import failed, exception: 'ImportError'
2019-04-24 21:48:13.331 Error: (Weer) Module Import failed: ' Name: requests'
2019-04-24 21:48:13.331 Error: (Weer) Error Line details not available.
2019-04-24 21:49:18.584 Error: Weer hardware (11) thread seems to have ended unexpectedly

The buienradar plugin does not work anymore, also after a restart of the Raspberry. Does anybody know a solution for this issue?

Kind regards, Corne
coen17st

Re: Buienradar Weather Lookup Plugin

Post by coen17st »

I recently installed the rain radar plugin and so I don't know if it would have worked therefore.

I also get the following:

Code: Select all

2019-04-25 07:52:11.288 Error: (Buienradar) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\buienradar\;C:\Program Files (x86)\Python35-32\python35.zip;C:\Program Files (x86)\Python35-32\Lib\;C:\Program Files (x86)\Python35-32\DLLs\;C:\Program Files (x86)\Domoticz'.
2019-04-25 07:52:11.288 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2019-04-25 07:52:11.288 Error: (Buienradar) Module Import failed: ' Name: requests'
2019-04-25 07:52:11.289 Error: (Buienradar) Error Line details not available.
Hopefully someone has or knows a fix for this


Domoticz: V4.9700
Python: 3.5.3
OS: Windows Server 2016
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Ewaldharmsen »

coen17st wrote: Thursday 25 April 2019 8:05 I recently installed the rain radar plugin and so I don't know if it would have worked therefore.

I also get the following:

Code: Select all

2019-04-25 07:52:11.288 Error: (Buienradar) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\buienradar\;C:\Program Files (x86)\Python35-32\python35.zip;C:\Program Files (x86)\Python35-32\Lib\;C:\Program Files (x86)\Python35-32\DLLs\;C:\Program Files (x86)\Domoticz'.
2019-04-25 07:52:11.288 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2019-04-25 07:52:11.288 Error: (Buienradar) Module Import failed: ' Name: requests'
2019-04-25 07:52:11.289 Error: (Buienradar) Error Line details not available.
Hopefully someone has or knows a fix for this


Domoticz: V4.9700
Python: 3.5.3
OS: Windows Server 2016
you should install requests: sudo pip3 install requests
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 »

Same issue here installed the pip requests however still the same result

Code: Select all

2019-05-04 16:02:50.161 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2019-05-04 16:02:50.162 Error: (Buienradar) Module Import failed, exception: 'ImportError'
2019-05-04 16:02:50.162 Error: (Buienradar) Module Import failed: ' Name: requests'
2019-05-04 16:02:50.162 Error: (Buienradar) Error Line details not available.
Any other suggestions or ideas?

pip 3 list:

Code: Select all

chardet (2.3.0)
.....
requests (2.12.4)
SecretStorage (2.3.1)
....
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 »

Got it to work again by updating the python path by adding the following lines in the beginning of the plugin.py before the import requests call is made

Code: Select all

import sys
sys.path.append('/usr/lib/python3/dist-packages')
User avatar
Ragdag
Posts: 95
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 »

Having the same error when installing from Github:

Code: Select all

2019-05-04 17:11:53.173 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-05-04 17:11:53.173 Error: (BuienRadar) Module Import failed, exception: 'ImportError'
2019-05-04 17:11:53.174 Error: (BuienRadar) Module Import failed: ' Name: requests'
2019-05-04 17:11:53.174 Error: (BuienRadar) Error Line details not available.
Domoticz
Version: 4.10686
Build Hash: f7fc1571
Compile Date: 2019-05-04 13:17:04
dzVents Version: 2.4.18
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
Roedii66
Posts: 6
Joined: Saturday 31 March 2018 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Buienradar Weather Lookup Plugin

Post by Roedii66 »

Ragdag wrote: Saturday 04 May 2019 17:14 Having the same error when installing from Github:

Code: Select all

2019-05-04 17:11:53.173 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-05-04 17:11:53.173 Error: (BuienRadar) Module Import failed, exception: 'ImportError'
2019-05-04 17:11:53.174 Error: (BuienRadar) Module Import failed: ' Name: requests'
2019-05-04 17:11:53.174 Error: (BuienRadar) Error Line details not available.
Domoticz
Version: 4.10686
Build Hash: f7fc1571
Compile Date: 2019-05-04 13:17:04
dzVents Version: 2.4.18
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
An additional install of:

sudo apt-get install python3-pip
sudo pip3 install requests

helped me out of these errors.
Good luck.
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 »

Roedii66 wrote: Sunday 16 June 2019 13:19
Ragdag wrote: Saturday 04 May 2019 17:14 Having the same error when installing from Github:

Code: Select all

2019-05-04 17:11:53.173 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-buienradar/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-05-04 17:11:53.173 Error: (BuienRadar) Module Import failed, exception: 'ImportError'
2019-05-04 17:11:53.174 Error: (BuienRadar) Module Import failed: ' Name: requests'
2019-05-04 17:11:53.174 Error: (BuienRadar) Error Line details not available.
Domoticz
Version: 4.10686
Build Hash: f7fc1571
Compile Date: 2019-05-04 13:17:04
dzVents Version: 2.4.18
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
An additional install of:

sudo apt-get install python3-pip
sudo pip3 install requests

helped me out of these errors.
Good luck.
mmm
This is not a apt-get install?
sudo pip3 install requests

This give me a error:

Code: Select all

pi@odroid:~$ sudo pip3 install requests
The directory '/home/pi/.cache/pip/http' or its parent directory is not owned by                                                 the current user and the cache has been disabled. Please check the permissions                                                 and owner of that directory. If executing pip with sudo, you may want sudo's -H                                                 flag.
The directory '/home/pi/.cache/pip' or its parent directory is not owned by the                                                 current user and caching wheels has been disabled. check the permissions and own                                                er of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: requests in /usr/lib/python3/dist-packages
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 »

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

darkrain
Posts: 18
Joined: Saturday 21 February 2015 13:19
Target OS: Linux
Domoticz version: beta
Contact:

Re: Buienradar Weather Lookup Plugin

Post by darkrain »

The plugin system seems to not work with buster and the python 3.7.3.
I ran into the same issue with another plugin and then decided to go back to stretch and python 3.5.3.

There is also an issue with https at the moment, please see: https://www.domoticz.com/forum/viewtopi ... =6&t=28617 and some other topics.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest