Inconsistent plugin behavior of a python plugin.

Python and python framework

Moderator: leecollings

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

Inconsistent plugin behavior of a python plugin.

Post by Ewaldharmsen »

Hi all.

I am working on this plugin: https://github.com/Tsjippy/Sunscreen

But it shows inconsistent behavior.

Once on every reboot I get this:
2019-03-28 13:29:03.829 Error: (SunScreen) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Sunscreen/:/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-03-28 13:29:03.829 Error: (Sunscreen) Module Import failed, exception: 'InternalError'
2019-03-28 13:29:03.830 Error: (Sunscreen) Error Line details not available.
2019-03-28 13:29:24.418 Error: Sunscreen hardware (12) thread seems to have ended unexpectedly
2019-03-28 13:29:38.423 Error: Sunscreen hardware (12) thread seems to have ended unexpectedly
2019-03-28 13:29:52.426 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 71.000000 seconds ago)
2019-03-28 13:29:52.427 Error: Sunscreen hardware (12) thread seems to have ended unexpectedly
2019-03-28 13:30:06.964 Error: WebServer:8080 thread seems to have ended unexpectedly (last update 85.000000 seconds ago)
But... If I reboot is loads just fine. I think this happens once on every 10 boots.
I run Domoticz on a rip zero.

Anybody who can help out on what is going on here?
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Inconsistent plugin behavior of a python plugin.

Post by snellejellep »

i installed the plugin because i have a need for such thing, it took me some time to figure out what azimuth was but i think i got it right but i get this message in my log:

Code: Select all

2019-03-28 19:00:42.603 Error: (sunscreen plugin) Could not find Rain device, please make sure it exists.
i obviously do not have such a device but is it nessecary? i do have the devices from the buienradar plugin, can i use those in some way?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Inconsistent plugin behavior of a python plugin.

Post by Ewaldharmsen »

snellejellep wrote: Thursday 28 March 2019 19:02 i installed the plugin because i have a need for such thing, it took me some time to figure out what azimuth was but i think i got it right but i get this message in my log:

Code: Select all

2019-03-28 19:00:42.603 Error: (sunscreen plugin) Could not find Rain device, please make sure it exists.
i obviously do not have such a device but is it nessecary? i do have the devices from the buienradar plugin, can i use those in some way?
This doesn't answer my question:)

But I released a new version which solved this issue.
You should also update buienradar plugin (remove all rain and text devices first)
Post Reply