Python Plugin: Python Plugin Manager

Python and python framework

Moderator: leecollings

clubeddie
Posts: 80
Joined: Saturday 19 March 2016 21:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by clubeddie »

ycahome wrote: Friday 29 March 2019 14:27
clubeddie wrote: Thursday 28 March 2019 20:11
Anyone any idea?
python3-dev? is it installed?
Complete new raspberry, installed with Domoticz and installed Python

Version: 4.9700
Build Hash: a3a45906
Compile Date: 2018-06-23 16:24:51
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]

I can install PP Manager and see it after restart domoticz in the hardware tab. Installed 3 plugins to check if it works.

Code: Select all

2019-04-03 18:21:45.407 (PPManager) Installation requested for Plugin:Meteo Alarm EU RSS Reader
2019-04-03 18:21:45.407 (PPManager) Plugin Display Name:Meteo Alarm EU RSS Reader
2019-04-03 18:21:45.407 (PPManager) Plugin Author:ycahome
2019-04-03 18:21:45.407 (PPManager) Plugin Repository:MeteoAlarmEU
2019-04-03 18:21:45.407 (PPManager) Plugin Key:MeteoAlarmEU
2019-04-03 18:21:45.407 (PPManager) Plugin Branch:master
2019-04-03 18:21:45.407 (PPManager) Installing Plugin:Meteo Alarm EU RSS Reader
2019-04-03 18:21:45.407 (PPManager) Calling:LANG=en_US /usr/bin/git clone -b master https://github.com/ycahome/MeteoAlarmEU.git MeteoAlarmEU
2019-04-03 18:21:45.343 Status: (PPManager) Entering work loop.
2019-04-03 18:21:45.344 Status: (PPManager) Initialized version 1.5.18, author 'ycahome'
2019-04-03 18:21:46.616 (PPManager) Plugin MeteoAlarmEU installed Succesfully
Also succesfull at the other two installations. But there is no additional devices, utility's or what so ever shown in Domoticz?

And is it possible that the list on
https://www.domoticz.com/wiki/Plugins
is not complete, for example, in the list
Google Home & Chromecast is shown, but in the PP Manager it is not available?
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Dnpwwo »

@clubeddie,

Not everything on the plugins page is available via the Plugin Manager. There is a column on the right showing those that are.

Other entries on the page link to github where they have installation instructions and more detail on functionality.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Python Plugin: Python Plugin Manager

Post by nono212 »

Hello

I am using PPM with Docker on Synology and I have this problem:

2019-05-19 00:24:40.388 Error: (PPM) Git ErrorNo:2

2019-05-19 00:24:40.388 Error: (PPM) Git StrError:No such file or directory: '/run/s6/services/domoticz/plugins'

Can you help please
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 »

Hello,

I don't currently have a sinology docker installation.
Can you tell me the full path of your "plugins" folder?
nono212
Posts: 39
Joined: Sunday 18 December 2016 13:47
Target OS: Linux
Domoticz version: 3.6179
Contact:

Re: Python Plugin: Python Plugin Manager

Post by nono212 »

Hello
Here is how I have created my container :
docker create --name=domoticz2 -e PUID=911 -e PGID=911 -e TZ=Europe/Brussels -p 8080:8080 -p 6144:6144 -p 1443:1443 -v /volume1/docker/Domoticz_linux/config:/config--device=/dev/ttyACM0 --device=/dev/ttyACM1 --restart unless-stopped linuxserver/domoticz


So the plugins folder is /volume1/docker/Domoticz_linux/config/plugins
but inside the container it is /container/plugins
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 »

PPM using the current working dir to identify the installation directory (getcwd)

Seems that this is not properly identified inside a container.
Geuvert
Posts: 6
Joined: Tuesday 07 May 2019 20:11
Target OS: Linux
Domoticz version: 4.10717
Location: Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Geuvert »

Version: 4.10717 stable
Platform: Ubuntu server 18.04 LTS

Hi everybody,

Happy user of the plugin manager here.
Makes it much simpler to get started with plugins.

My error log shows some errors related to the plugin manager however.

Code: Select all

2019-06-03 10:01:32.445 Error: Python Plugin Manager hardware (2) thread seems to have ended unexpectedly
2019-06-03 12:00:39.802 Error: (Python Plugin Manager) 'onHeartbeat' failed 'KeyError'.
2019-06-03 12:00:39.802 Error: (Python Plugin Manager) ----> Line 754 in '/home/geuvert/domoticz/plugins/PP-MANAGER/plugin.py', function onHeartbeat
2019-06-03 12:00:39.802 Error: (Python Plugin Manager) ----> Line 422 in '/home/geuvert/domoticz/plugins/PP-MANAGER/plugin.py', function onHeartbeat
2019-06-03 12:00:39.802 Error: (Python Plugin Manager) ----> Line 546 in '/home/geuvert/domoticz/plugins/PP-MANAGER/plugin.py', function CheckForUpdatePythonPlugin
Is this normal?

Geuvert
njvdijk
Posts: 1
Joined: Tuesday 26 June 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by njvdijk »

During installation of the plugin I got the following reply

pi@raspberrypi:~/domoticz/plugins/PP-MANAGER $ chmod +x plugin.py
chmod: veranderen van toegangsrechten van 'plugin.py': Bewerking niet toegestaan
HFman
Posts: 82
Joined: Thursday 02 March 2017 20:28
Target OS: Linux
Domoticz version: V4.1174
Location: Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by HFman »

njvdijk wrote: Thursday 17 October 2019 15:50 During installation of the plugin I got the following reply

pi@raspberrypi:~/domoticz/plugins/PP-MANAGER $ chmod +x plugin.py
chmod: veranderen van toegangsrechten van 'plugin.py': Bewerking niet toegestaan
try :
cd /domoticz/plugins/PP-MANAGER
sudo chmod +x plugin.py
Raspberry PI 3 - Opentherm Gateway + ESP8826 - EvoHome - ESPEasy CO2 + Fancontrol - RF-Link - zigbee2mqqt -
spider2
Posts: 13
Joined: Wednesday 21 November 2018 19:57
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by spider2 »

Hi,

I have synology nas and the domoticz log show this:

2019-11-12 18:09:11.562 Error: (Python Plugin Manager) Git ErrorNo:2
2019-11-12 18:09:11.563 Error: (Python Plugin Manager) Git StrError:No such file or directory: '/root/plugins/PP-MANAGER'
2019-11-12 18:09:11.575 Error: (Python Plugin Manager) Git ErrorNo:2
2019-11-12 18:09:11.575 Error: (Python Plugin Manager) Git StrError:No such file or directory: '/root/plugins/PP-MANAGER'

My domoticz directory is this: "/volume1/@appstore/domoticz/var/plugins" and here install the PP-MANAGER

What is the problem?
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by BarryT »

How can i remove an (installed) plugin?
It seems i have installed the EWPE SMART MQTT plugin for my 2 heatpumps, but 1) getting errors, 2) domoticz crashed directly, 3) after reboot the plugin is totally gone AND i cant install it anymore?
I removed the plugins directory, but that didnt help...
pluginmanager.jpg
pluginmanager.jpg (111 KiB) Viewed 6283 times
Last update, after reboot:
2020-01-13 20:48:10.885 Error: Plugin Manager hardware (53) thread seems to have ended unexpectedly
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
clubeddie
Posts: 80
Joined: Saturday 19 March 2016 21:12
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by clubeddie »

I am unable to install this plugin. Freshly installed Domoticz on a clean Raspberry with Raspbian Stretch.

Normal install through curl and update everything.

When i check about Domoticz i get:
Version: 4.10717
Build Hash: b38b49e5
Compile Date: 2019-05-09 13:04:08
dzVents Version: 2.4.19
Python Version: None

When i check Python version on Raspberry

Code: Select all

pi@rPI-Domoticz:~ $ ls -la /usr/bin/python*
lrwxrwxrwx 1 root root       9 Jan 24  2017 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 Jan 24  2017 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3166320 Sep 26  2018 /usr/bin/python2.7
lrwxrwxrwx 1 root root       9 Jan 20  2017 /usr/bin/python3 -> python3.5
-rwxr-xr-x 2 root root 3976256 Sep 27  2018 /usr/bin/python3.5
-rwxr-xr-x 2 root root 3976256 Sep 27  2018 /usr/bin/python3.5m
lrwxrwxrwx 1 root root      10 Jan 20  2017 /usr/bin/python3m -> python3.5m

pi@rPI-Domoticz:~ $ sudo apt install python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.5.3-1).
python3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

pi@rPI-Domoticz:~ $ python3 -V
Python 3.5.3
Edit:
Fixed first issue with

Code: Select all

sudo apt-get install libpython3.4-dev
Now i get:
Python Version: 3.4.4 (default, Aug 20 2019, 08:42:52) [GCC 8.3.0]

Also updated to latest beta

PP-Manager is now installed and shown in hardware. Only when i install a plugin, for example WAN Ip Checker,

In the log i see

Code: Select all

2020-01-14 19:49:42.950 (Python Plugin Manager) Installation requested for Plugin:Wan IP Checker
2020-01-14 19:49:42.950 (Python Plugin Manager) Plugin Display Name:Wan IP Checker
2020-01-14 19:49:42.950 (Python Plugin Manager) Plugin Author:ycahome
2020-01-14 19:49:42.950 (Python Plugin Manager) Plugin Repository:WAN-IP-CHECKER
2020-01-14 19:49:42.950 (Python Plugin Manager) Plugin Key:WAN-IP-CHECKER
2020-01-14 19:49:42.950 (Python Plugin Manager) Plugin Branch:master
2020-01-14 19:49:42.950 (Python Plugin Manager) Installing Plugin:Wan IP Checker
2020-01-14 19:49:42.950 (Python Plugin Manager) Calling:LANG=en_US /usr/bin/git clone -b master https://github.com/ycahome/WAN-IP-CHECKER.git WAN-IP-CHECKER
2020-01-14 19:49:42.527 Status: (Python Plugin Manager) Started.
2020-01-14 19:49:42.935 Status: (Python Plugin Manager) Entering work loop.
2020-01-14 19:49:42.936 Status: (Python Plugin Manager) Initialized version 1.5.21, author 'ycahome'
2020-01-14 19:49:44.139 (Python Plugin Manager) Plugin WAN-IP-CHECKER installed Succesfully
But no hardware or whatever is showed. Other plugins same issue?
User avatar
Westcott
Posts: 423
Joined: Tuesday 09 December 2014 17:04
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: UK - Glos
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Westcott »

Hi,
Mine gives errors every day at 12:00 -

Code: Select all

2020-01-28 12:00:02.131 Error: (PPmanager) 'onHeartbeat' failed 'KeyError'.
2020-01-28 12:00:02.131 Error: (PPmanager) ----> Line 756 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-01-28 12:00:02.131 Error: (PPmanager) ----> Line 424 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
2020-01-28 12:00:02.131 Error: (PPmanager) ----> Line 548 in '/home/pi/domoticz/plugins/PP-MANAGER/plugin.py'
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
User avatar
AntonACE
Posts: 1
Joined: Sunday 23 February 2020 2:45
Target OS: Linux
Domoticz version:
Location: Russia
Contact:

Re: Python Plugin: Python Plugin Manager

Post by AntonACE »

There is a bug in Wiki page, in the Install section. "PP-MANAGER" written in different cases. Can be a problem for linux beginners.
wube
Posts: 10
Joined: Wednesday 18 October 2017 12:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by wube »

Hi Everyone,
Can anyone tell me if Python Plugin Manager can be installed on QNAP Domoticz 4.10717 ? I'm having some issues, I installed all pre requisites: python2.7, python3.8, pip3, python3-dev, via opkg (QNAP Entware). Domoticz doesn't say that PluginSystem has been started. Any advice? Thank you.
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Dnpwwo »

@wube,

A couple of things:
  • The Plugin System and the Python Plugin Manager are quite different things. The Plugin Manager its actually a plugin itself that can install other plugins on linux systems, it is completely optional.
  • Python 2.7 is not required (neither is pip3 technically)
  • Do you get any PluginSystem message at all? If not then maybe Domoticz for you platform was built without Python support. You may need to build your own and enable it
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
wube
Posts: 10
Joined: Wednesday 18 October 2017 12:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by wube »

Hi @Dnpwwo,
Thanks for your reply. No i don't get any info in log about the PluginSystem at all. Should I contact whoever built it and released to QNAP? Additional info is that i also have python script which should turn on and of TP-Link smart socket HS100 and script works from command line but not when copied to scripts in domoticz and dummy switch populated with command that should start it. Is there any way to determine if this particular domoticz release was built with python support or not? Thanks again. Cheers!
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Dnpwwo »

@wube,

The Plugin System and Event System both use the same Python instance so it sounds like the problem problem. You can also check the Domoticz 'About' screen from the 'Setup' menu, that will say what Python version is being used.

If Domoticz tries to load Python but can't find it you will see a
PluginSystem: Failed dynamic library load
error in the log. Search the forum for more details on that.

I would contact the image builder to understand why Python was disabled, by default it is normally included.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
wube
Posts: 10
Joined: Wednesday 18 October 2017 12:56
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by wube »

@Dnpwwo,
you are absolutely right, i didn't know that. And of course QNAP version of Domoticz does not support python. Info under the button.
Spoiler: show
Version: 4.10717
Build Hash: b38b49e5
Compile Date: 2019-05-09 13:04:08
dzVents Version: 2.4.19
Python Version: None
Decyph
Posts: 10
Joined: Monday 07 November 2016 11:43
Target OS: Linux
Domoticz version: 11838
Location: Hoofddorp, NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Decyph »

Hey there,

I also have a problem with PP-Manager de reference to the plugins folder is incorrect.

I keep getting the following error in the domoticz log:
Spoiler: show
2020-04-23 13:15:09.523 Error: (PP Manager) Git ErrorNo:2
2020-04-23 13:15:09.529 Error: (PP Manager) Git StrError:No such file or directory: '/home/domoticz/plugins'
The directory should be: /home/domoticz/domoticz/plugins
The user is domoticz and the installation folder of the application is domoticz as well.

System Info:
Spoiler: show
ersion: 2020.1 (build 11838)
Build Hash: 372611b76
Compile Date: 2020-03-26 15:21:15
dzVents Version: 3.0.1
Python Version: 3.7.5 (default, Nov 7 2019, 10:50:52) [GCC 8.3.0]
Can anyone let me know what i can do to change the plugins folder path.
I already tried adding /domoticz in front of /plugins in the py file.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest