Page 9 of 12

Re: Python Plugin: Python Plugin Manager

Posted: Wednesday 03 April 2019 18:27
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?

Re: Python Plugin: Python Plugin Manager

Posted: Thursday 04 April 2019 7:49
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.

Re: Python Plugin: Python Plugin Manager

Posted: Sunday 19 May 2019 0:31
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

Re: Python Plugin: Python Plugin Manager

Posted: Sunday 19 May 2019 22:33
by ycahome
Hello,

I don't currently have a sinology docker installation.
Can you tell me the full path of your "plugins" folder?

Re: Python Plugin: Python Plugin Manager

Posted: Monday 20 May 2019 0:29
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

Re: Python Plugin: Python Plugin Manager

Posted: Monday 20 May 2019 11:08
by ycahome
PPM using the current working dir to identify the installation directory (getcwd)

Seems that this is not properly identified inside a container.

Re: Python Plugin: Python Plugin Manager

Posted: Monday 03 June 2019 20:59
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

Re: Python Plugin: Python Plugin Manager

Posted: Thursday 17 October 2019 15:50
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

Re: Python Plugin: Python Plugin Manager

Posted: Wednesday 23 October 2019 21:28
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

Re: Python Plugin: Python Plugin Manager

Posted: Tuesday 12 November 2019 18:38
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?

Re: Python Plugin: Python Plugin Manager

Posted: Monday 13 January 2020 20:50
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 6284 times
Last update, after reboot:
2020-01-13 20:48:10.885 Error: Plugin Manager hardware (53) thread seems to have ended unexpectedly

Re: Python Plugin: Python Plugin Manager

Posted: Tuesday 14 January 2020 17:13
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?

Re: Python Plugin: Python Plugin Manager

Posted: Thursday 30 January 2020 19:13
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'

Re: Python Plugin: Python Plugin Manager

Posted: Sunday 23 February 2020 2:51
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.

Re: Python Plugin: Python Plugin Manager

Posted: Saturday 21 March 2020 14:14
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.

Re: Python Plugin: Python Plugin Manager

Posted: Sunday 22 March 2020 11:34
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

Re: Python Plugin: Python Plugin Manager

Posted: Wednesday 25 March 2020 17:43
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!

Re: Python Plugin: Python Plugin Manager

Posted: Thursday 26 March 2020 1:55
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.

Re: Python Plugin: Python Plugin Manager

Posted: Monday 30 March 2020 17:58
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

Re: Python Plugin: Python Plugin Manager

Posted: Thursday 23 April 2020 13:35
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.