Python Plugin: Python Plugin Manager

Python and python framework

Moderator: leecollings

Post Reply
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

post also the logs after restart
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Python Plugin Manager

Post by EdwinK »

Code: Select all

2018-04-12 09:30:55.543 Domoticz V3.9208 (c)2012-2018 GizMoCuz
2018-04-12 09:30:55.543 Build Hash: ff40091a, Date: 2018-04-08 17:15:17
2018-04-12 09:30:55.544 Startup Path: /home/pi/domoticz/
2018-04-12 09:30:55.607 Sunrise: 06:52:00 SunSet: 20:34:00
2018-04-12 09:30:55.607 Day length: 13:42:00 Sun at south: 13:05:00
2018-04-12 09:30:55.607 Civil twilight start: 06:17:00 Civil twilight end: 21:09:00
2018-04-12 09:30:55.607 Nautical twilight start: 05:33:00 Nautical twilight end: 21:53:00
2018-04-12 09:30:55.607 Astronomical twilight start: 04:45:00 Astronomical twilight end: 22:42:00
2018-04-12 09:30:55.607 EventSystem: reset all events...
2018-04-12 09:30:55.608 Philips Hue: Using default poll interval of 10 secs.
2018-04-12 09:30:55.617 Active notification Subsystems: (0/14)
2018-04-12 09:30:55.618 WebServer(HTTP) started on address: :: with port 8080
2018-04-12 09:30:55.623 WebServer(SSL) started on address: :: with port 443
2018-04-12 09:30:55.625 Proxymanager started.
2018-04-12 09:30:55.697 Starting shared server on: :::6144
2018-04-12 09:30:55.698 TCPServer: shared server started...
2018-04-12 09:30:55.698 RxQueue: queue worker started...
2018-04-12 09:30:57.699 ToonThermostat: Worker started...
2018-04-12 09:30:57.700 Philips Hue: Worker started...
2018-04-12 09:30:58.702 RFXCOM: Using serial port: /dev/ttyUSB0
2018-04-12 09:30:58.777 (Hue) Color Switch (Group huiskamer)
2018-04-12 09:30:58.782 (Hue) Color Switch (Group Custom group for $lights)
2018-04-12 09:30:58.784 (Hue) Color Switch (Group Custom group for $lights)
2018-04-12 09:30:58.787 (Hue) Color Switch (Group Custom group for $lights)
2018-04-12 09:30:58.790 (Hue) Color Switch (Group Custom group for $lights)
2018-04-12 09:30:58.803 (Hue) Color Switch (Group All Lights)
2018-04-12 09:30:58.806 (Hue) Color Switch (Scene Wake Up end)
2018-04-12 09:30:58.811 (Hue) Color Switch (Scene Scene myScene2 huelabs/christm)
2018-04-12 09:30:58.815 (Hue) Color Switch (Scene Concentreren)
2018-04-12 09:30:58.818 (Hue) Color Switch (Scene Scene myScene1 huelabs/christm)
2018-04-12 09:30:58.821 (Hue) Color Switch (Scene 2gczbOFtBnGRzVt)
2018-04-12 09:30:58.824 (Hue) Color Switch (Scene Wake Up init)
2018-04-12 09:30:58.828 (Hue) Color Switch (Scene Gedimd)
2018-04-12 09:30:58.831 (Hue) Color Switch (Scene 88Naq4sCgM0J6Ly)
2018-04-12 09:30:58.834 (Hue) Color Switch (Scene Scene scene3 huelabs/christmas)
2018-04-12 09:30:58.837 (Hue) Color Switch (Scene Scene myScene3 huelabs/christm)
2018-04-12 09:30:58.840 (Hue) Color Switch (Scene Scene mySceneDim huelabs/chris)
2018-04-12 09:30:58.843 (Hue) Color Switch (Scene Ontspannen)
2018-04-12 09:30:58.846 (Hue) Color Switch (Scene Scene myScene2 huelabs/christm)
2018-04-12 09:30:58.849 (Hue) Color Switch (Scene Scene mySceneColor1 huelabs/ch)
2018-04-12 09:30:58.853 (Hue) Color Switch (Scene Lezen)
2018-04-12 09:30:58.857 (Hue) Color Switch (Scene Helder)
2018-04-12 09:30:58.860 (Hue) Color Switch (Scene Scene myScene1 huelabs/christm)
2018-04-12 09:30:58.863 (Hue) Color Switch (Scene Scene scene4 huelabs/christmas)
2018-04-12 09:30:58.866 (Hue) Color Switch (Scene Scene mySceneColor3 huelabs/ch)
2018-04-12 09:30:58.869 (Hue) Color Switch (Scene Scene scene0 huelabs/christmas)
2018-04-12 09:30:58.873 (Hue) Color Switch (Scene Scene scene1 huelabs/christmas)
2018-04-12 09:30:58.877 (Hue) Color Switch (Scene Energie)
2018-04-12 09:30:58.880 (Hue) Color Switch (Scene Arctische dageraad)
2018-04-12 09:30:58.883 (Hue) Color Switch (Scene Scene mySceneColor2 huelabs/ch)
2018-04-12 09:30:58.886 (Hue) Color Switch (Scene Scene scene2 huelabs/christmas)
2018-04-12 09:30:58.889 (Hue) Color Switch (Scene Scene mySceneColor1 huelabs/ch)
2018-04-12 09:30:58.893 (Hue) Color Switch (Scene Scene myScene3 huelabs/christm)
2018-04-12 09:30:58.895 (Hue) Color Switch (Scene Wake Up end)
2018-04-12 09:30:58.897 (Hue) Color Switch (Scene Scene storageScene huelabs/chr)
2018-04-12 09:30:58.899 (Hue) Color Switch (Scene Uit)
2018-04-12 09:30:58.900 (Hue) Color Switch (Scene Lentebloesem)
2018-04-12 09:30:58.902 (Hue) Color Switch (Scene Tropische schemering)
2018-04-12 09:30:58.904 (Hue) Color Switch (Scene Nachtlampje)
2018-04-12 09:30:58.905 (Hue) Color Switch (Scene Wake Up init)
2018-04-12 09:30:58.907 (Hue) Color Switch (Scene Scene mySceneColor3 huelabs/ch)
2018-04-12 09:30:58.909 (Hue) Color Switch (Scene Film kijken)
2018-04-12 09:30:58.910 (Hue) Color Switch (Scene Savanne zonsondergang)
2018-04-12 09:30:58.912 (Hue) Color Switch (Scene Scene mySceneDim huelabs/chris)
2018-04-12 09:30:58.913 (Hue) Color Switch (Scene Scene storageScene huelabs/chr)
2018-04-12 09:30:58.915 (Hue) Color Switch (Scene Scene mySceneColor2 huelabs/ch)
2018-04-12 09:30:58.916 (Hue) Color Switch (Scene Scene scene5 huelabs/christmas)
2018-04-12 09:30:59.278
2018-04-12 09:30:59.353 subtype = Interface Response
Sequence nbr = 2
response on cmnd = Get Status
Transceiver type = 433.92MHz
Firmware version = 1021
Firmware type = Ext
Hardware version = 1.3
Undec off
X10 enabled
ARC enabled
AC enabled
HomeEasy EU disabled
Meiantech/Atlantic disabled
Oregon Scientific disabled
ATI/Cartelectronic disabled
Visonic disabled
Mertik disabled
AD disabled
Hideki disabled
La Crosse enabled
FS20/Legrand disabled
ProGuard disabled
BlindsT0 enabled
BlindsT1 enabled
AE disabled
RUBiCSON enabled
FineOffset disabled
Lighting4 enabled
Conrad RSL disabled
ByronSX disabled
IMAGINTRONIX disabled
KEELOQ disabled
Home Confort disabled
2018-04-12 09:31:04.499 (Toon) Thermostat (Room Setpoint)
2018-04-12 09:31:04.500 (Toon) Temp (Room Temperature)
2018-04-12 09:31:04.501 (Toon) P1 Smart Meter (Electra)
2018-04-12 09:31:04.502 (Toon) P1 Smart Meter (Gas)
2018-04-12 09:31:04.503 (Toon) General/kWh (stekker 1)
© 2012-2018 Domoticz | WWW: Domoticz.com
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

and this is my log

Code: Select all

 2018-04-12 17:51:33.457 Domoticz V3.9206 (c)2012-2018 GizMoCuz
2018-04-12 17:51:33.458 Build Hash: 8c3bf407, Date: 2018-04-08 18:14:22
2018-04-12 17:51:33.458 Startup Path: /home/tempusr/domoticz/
2018-04-12 17:51:33.475 Sunrise: 06:54:00 SunSet: 19:58:00
2018-04-12 17:51:33.475 Day length: 13:04:00 Sun at south: 13:05:00
2018-04-12 17:51:33.475 Civil twilight start: 06:27:00 Civil twilight end: 20:25:00
2018-04-12 17:51:33.475 Nautical twilight start: 05:55:00 Nautical twilight end: 20:57:00
2018-04-12 17:51:33.475 Astronomical twilight start: 05:21:00 Astronomical twilight end: 21:30:00
2018-04-12 17:51:33.475 EventSystem: reset all events...
2018-04-12 17:51:33.494 PluginSystem: Started, Python version '3.5.2'.
2018-04-12 17:51:33.495 Active notification Subsystems: email (1/14)
2018-04-12 17:51:33.496 WebServer(HTTP) started on address: :: with port 8080
2018-04-12 17:51:33.498 WebServer(SSL) started on address: :: with port 443 
Seems that your plugin system not starting.
Obviously you don't have any other python plugins installed correct?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Python Plugin Manager

Post by EdwinK »

Come to think of it.. You are right. Strange. Before reinstalling everything was working, but due to problems with the SD-card I had to reinstall all.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Python Plugin Manager

Post by EdwinK »

Finally i had PP-Manager running, but resulting in a 'no devices' error, after which the system became unstable and had to remove the plugin again :(

Code: Select all

2018-04-13 11:35:37.582 Domoticz V3.9220 (c)2012-2018 GizMoCuz
2018-04-13 11:35:37.582 Build Hash: 74b1986c, Date: 2018-04-13 07:02:16
2018-04-13 11:35:37.582 Startup Path: /home/pi/domoticz/
2018-04-13 11:35:37.616 EventSystem: reset all events...
2018-04-13 11:35:37.703 PluginSystem: Started, Python version '3.5.3'.
2018-04-13 11:35:37.703 Philips Hue: Using default poll interval of 10 secs.
2018-04-13 11:35:37.713 WebServer(HTTP) started on address: :: with port 8080
2018-04-13 11:35:37.718 WebServer(SSL) started on address: :: with port 443
2018-04-13 11:35:37.719 Proxymanager started.
2018-04-13 11:35:37.778 TCPServer: shared server started...
2018-04-13 11:35:37.778 RxQueue: queue worker started...
2018-04-13 11:35:39.780 ToonThermostat: Worker started...
2018-04-13 11:35:39.780 Philips Hue: Worker started...
2018-04-13 11:35:39.780 Kodi: Started
2018-04-13 11:35:39.780 (PP Manager) Started.
2018-04-13 11:35:39.781 Logitech Media Server: Worker started...
2018-04-13 11:35:39.781 EventSystem: reset all events...
2018-04-13 11:35:39.781 Logitech Media Server: 1 player-switch(es) found.
2018-04-13 11:35:39.782 EventSystem: reset all device statuses...
2018-04-13 11:35:39.843 Logitech Media Server: 3 playlist(s) found.
2018-04-13 11:35:39.995 Python EventSystem: Initalizing event module.
2018-04-13 11:35:39.996 EventSystem: Started
2018-04-13 11:35:39.996 EventSystem: Queue thread started...
2018-04-13 11:35:40.118 PluginSystem: Entering work loop.
2018-04-13 11:35:40.188 Error: (PP Manager) Module Import failed, exception: 'ImportError'
2018-04-13 11:35:40.188 Error: (PP Manager) Module Import failed: ' Name: plugin'
2018-04-13 11:35:40.188 Error: (PP Manager) Error Line details not available
2018-04-13 11:35:40.783 RFXCOM: Using serial port: /dev/ttyUSB0
2018-04-13 11:35:40.921 Logitech Media Server: 1 connected player(s) found.
2018-04-13 11:36:48.358 (PP Manager) Stop directive received.
2018-04-13 11:36:48.358 (PP Manager) Stopping threads.
2018-04-13 11:36:48.358 (PP Manager) Stopped.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

you don't give enough details about how you managed to fix the previous error not you have other python plugins working.
Anyway, try to delete plugin and clone again.
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Python Plugin Manager

Post by EdwinK »

I don't have any other python plugins working. I installed python using the following
There are also currently some issues with using python 3.5 on Raspbian Stretch. To fix this, install python 3.4 and set python 3.4 as the executable.

To find which version is active (3.4 or 3.5), type this command:

python3 -V
If you are using 3.5, try this:

sudo apt-get install python3.4 libpython3.4 python3.4-dev
Next, set 3.4 as the main version to use. You can change it back later if you want.

update-alternatives --install /usr/bin/python python3 /usr/bin/python3.5 1
update-alternatives --install /usr/bin/python python3 /usr/bin/python3.4 2
Now you can switch between them by issueing this command, and selecting your preference:

update-alternatives --config python3
from the wiki
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
tOmki
Posts: 9
Joined: Monday 02 February 2015 12:29
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Poland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by tOmki »

Code: Select all

2018-04-26 23:06:30.721 Error: (PP-MANAGER) failed to create interpreter.
Raspberry Pi B+, 4x DS18B20, RFLink Gateway, UPS APC Back-UPS CS 650VA,
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Brutus »

Looks great this plugin. Any progress on the Windows support?
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
toutazimuth
Posts: 16
Joined: Tuesday 29 September 2015 19:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by toutazimuth »

Hi ycahome
Everything works perfectly for me, but only with Python 3.4 (Pi3B - Linux raspberrypi 4.14.34-v7+ #1110 - armv7l).
Does not work with Python 3.5 :roll:

Thank you very much for this perfect plugin :)
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Derik »

Dear ....
F#cking great PLUGIN
Rally nice WORK... very very nice

Only :-(
When i try to install the plugin domoticz crash: segmetation fauls
When i remove the pluiging [ winscp ] domoticz runs great.

I did try:

Code: Select all

nstalled by:
sudo apt-get update
sudo apt-get install git
sudo apt-get install python3.4 libpython3.4 python3.4-dev

i activated python 3.4
sudo update-alternatives --config python choosed version 3.4.4
Log:

Code: Select all

pi@raspberrypi:~ $  sudo update-alternatives --config python choosed version 3.4.4
update-alternatives: fout: onbekend argument 'choosed'
I run RPI3B+:

Code: Select all

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Code: Select all

  0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
So hope you can help me..

Thanks
Last edited by Derik on Monday 04 June 2018 7:55, edited 1 time in total.
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
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

Hi.

What do you mean with "My Domoticz"? I think that My Domoticz service works out of the box, from settings.... (you only need username and password of course)
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Derik »

ycahome wrote: Monday 04 June 2018 7:48 Hi.

What do you mean with "My Domoticz"? I think that My Domoticz service works out of the box, from settings.... (you only need username and password of course)

sorry

I mean that domoticz that i use on my Rpi [ no other thing online or something ]
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
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

I see...

Am really struggling to find what interferes with this plugin and python without success.

Do you use other python plugins?
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Derik »

ycahome wrote: Monday 04 June 2018 20:12 I see...

Am really struggling to find what interferes with this plugin and python without success.

Do you use other python plugins?
Nope every plugin i install give me a error.. running:exited
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
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

-If you remove python plugins you can start your domoticz?
-What plugins and How you trying to install them?
-have you tried them without "Python plugin manager"
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Derik »

ycahome wrote: Monday 04 June 2018 20:22 -If you remove python plugins you can start your domoticz?
-What plugins and How you trying to install them?
-have you tried them without "Python plugin manager"
When i manually instal a plugin with ftp crash[ make manually a chmod x ]
when i do it with a script on a wiki [ buienradar ] crash
when i use the plugin manager intal from the wiki. crash

No plugin Domoticz works great..
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
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

there is a pair of scripts on your Domoticz directory.

Choose your version (release or beta) and run:

sudo ./updaterelease

or

sudo ./updatebeta
Derik
Posts: 1602
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Derik »

ycahome wrote: Monday 04 June 2018 20:33 there is a pair of scripts on your Domoticz directory.

Choose your version (release or beta) and run:

sudo ./updaterelease

or

sudo ./updatebeta
I run the last beta: 3.9571
Or what do you mean?
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
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: Python Plugin Manager

Post by ycahome »

then run sudo ./updatebeta

my suggestion will re-apply your installation files even if your version is the same.

Another test you can make is to backup your database and reinstall your Domoticz.

Seems that your installation has some problems..
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest