ffes / domoticz-buienradar

Domoticz Buienradar.nl Weather Lookup Plugin
MIT License
14 stars 5 forks source link

plugin error hardware (24) #23

Open NiekN opened 5 years ago

NiekN commented 5 years ago

i also installed the plugin , but it is not working at all the PI will crash . at the logging 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

matthijssn commented 5 years ago

Same here: 2019-04-17 08:40:42.720 Error: Buienradar.nl hardware (3) thread seems to have ended unexpectedly 2019-04-17 08:40:50.743 Status: (Buienradar) Started. 2019-04-17 08:40:50.912 Error: (Buienradar) failed to load 'plugin.py', Python Path used was '/mnt/dietpi_userdata/domoticz/plugins/domoticz-buienradar/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'. 2019-04-17 08:40:50.912 Error: (Buienradar) Module Import failed, exception: 'ImportError' 2019-04-17 08:40:50.912 Error: (Buienradar) Module Import failed: ' Name: requests' 2019-04-17 08:40:50.913 Error: (Buienradar) Error Line details not available. 2019-04-17 08:40:56.723 Error: Buienradar.nl hardware (3) thread seems to have ended unexpectedly 2019-04-17 08:41:10.726 Error: Buienradar.nl hardware (3) thread seems to have ended unexpectedly 2019-04-17 08:41:24.729 Error: Buienradar.nl hardware (3) thread seems to have ended unexpectedly

Pastinakel commented 5 years ago

Quick fix: Edit plugin.py

Add: import sys sys.path.append('/usr/lib/python3/dist-packages')

NiekN commented 5 years ago

Hi Pastinakel

First thanks for responce.. But im not familiar with python code. where should i add this code in file plugin.py ?

like this? ` try: import Domoticz except ImportError: import fakeDomoticz as Domoticz

import sys sys.path.append('/usr/lib/python3/dist-packages')

import requests from math import radians, cos, sin, asin, sqrt from datetime import datetime, timedelta from buienradar import Buienradar from rainforecast import RainForecast ` and what will this do ?

mesa57 commented 4 years ago

That change kept the plugin a little bit longer alive, but still crashes after a few hours with error code #11