Python Plugin: Python Plugin Manager

Python and python framework

Moderator: leecollings

User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by waltervl »

brianhunt wrote: Sunday 07 February 2021 14:08 Installed this and it does show a 'custom' tab. However if I go to the tab, it stays at 'loading', no plugins are showed.
Any suggestions how to solve this? (have the correct python and libraries). I use the 'Thinktheme', but don't know if that has any influence.
Thanks for your help.
The first check I would do is to change to a default theme and check again.... :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Kruu »

Anyone else have this problem, I do:

https://github.com/stas-demydiuk/domoti ... /issues/19
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by waltervl »

Kruu wrote: Sunday 07 February 2021 21:38 Anyone else have this problem, I do:

https://github.com/stas-demydiuk/domoti ... /issues/19
Looks like a sytesheet or javascript issue.
Did you do a CTRL F5 refresh?
Else delete your browser cache https://www.domoticz.com/wiki/Browser_Cache
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Kruu »

waltervl wrote: Sunday 07 February 2021 21:50
Kruu wrote: Sunday 07 February 2021 21:38 Anyone else have this problem, I do:

https://github.com/stas-demydiuk/domoti ... /issues/19
Looks like a sytesheet or javascript issue.
Did you do a CTRL F5 refresh?
Else delete your browser cache https://www.domoticz.com/wiki/Browser_Cache
That was the first thing I did. It did not help.

Also have the same situation with zigbee2mqtt:

Code: Select all

Zigbee2mqtt	api_transport	255	Zigbee2mqtt - Zigbee2MQTT API Transport	General	Text	{"type":"request","requestId":2,"command":"bridge_getstatus","params":{}}
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by waltervl »

What version of Domoticz are you running?
What browser do you use?
Try your browser in private mode.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Kruu »

waltervl wrote: Monday 08 February 2021 0:25 What version of Domoticz are you running?
What browser do you use?
Try your browser in private mode.
2020.2

Vivaldi, tried it in firefox and chrome also. No help if in private tab. Also have that on my mobile phone when open domoticz-devices.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by waltervl »

Well, I just tried with a beta (2020.2.12901) and no issues with displaying on firefox and chromium. Also after the latest update of the plugin manager.
I also had no issues with stable 2020.2

I used the default theme.

So I still would advise to clear your browser cache completely
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kruu
Posts: 49
Joined: Tuesday 17 January 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Kruu »

Still having the same issue. And also have that issue with zigbee2mqtt, also in devices tab, DATA column I have:

Code: Select all

{"type": "response", "requestId": 7, "isError": false, "payload": "digraph G {\nnode[shape=record];\n \"0x00124b001ccc574e\" [style=\"bold, filled\", fillcolor=\"#e04e5d\", fontcolor=\"#ffffff\", label=\"{Coordinator|0x00124b001ccc574e (0)|0 seconds ago}\"];\n \"0x00124b00226748a5\" [style=\"rounded, dashed, filled\", fillcolor=\"#fff8ce\", fontcolor=\"#000000\", label=\"{IC Sonoff|0x00124b00226748a5 (42067)|SONOFF Motion sensor (SNZB-03)|3 hours, 22 minutes ago}\"];\n \"0x00124b00226748a5\" -> \"0x00124b001ccc574e\" [penwidth=1, weight=0, color=\"#994444\", label=\"170\"]\n}"}
User avatar
psubiaco
Posts: 194
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Python Plugin: Python Plugin Manager

Post by psubiaco »

ycahome wrote: Saturday 03 March 2018 16:56
pp manager default in domoticz? (would help lots of users searching for plugins etc.)[/b]
I would try to contact dnpwwo. A "repository" like approach would be more preferable.
Note that this plugin currently works only on Debian based systems (Linux, raspberry)
Hi @ycahome
I think it will be very helpful to have Python Plugin Manager already installed in Domoticz, so people can search and install python plugins without the need to use the linux console!
I believe it's sufficient to include PP-Manager into the domoticz sources to get it available in the hardware list! Why not doing this?
I hope that @gizmocuz @dnpwwo ... will take into account this possibility!
Regards.
Paolo
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Python Plugin Manager

Post by waltervl »

https://www.domoticz.com/wiki/Plugins
I try to keep this page up to date for all users to find the plugins they could need.
Some plugins need some extra installation effort so a plugin manager as developed here can not handle all plugins. I personally do not use it but there definitely is a need for it.
If the plugin framework would have a mechanism that a plugin can update itself from github when needed it would help even better....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
darrepac
Posts: 133
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Re: Python Plugin: Python Plugin Manager

Post by darrepac »

I am jumping into the python plugin manager world with @StasDemydiuk version.
Nice looking and sounds great.
Unfortunately I was not able to update the Shelly MQTT plugin that needs update.
When I press update, it seems to do it and ask me to reboot Domoticz. But when I look into the plugin.py, the version is still the old one.

Here it the log during the update process, sounds good isn't it?

Code: Select all

 Updating Plugin:Shelly MQTT translator
2021-04-04 10:32:34.435 (Plugin Manager) Checking plugin "Shelly MQTT" for updates
2021-04-04 10:32:35.404 (Plugin Manager) Calling:LANG=en_US /usr/bin/git status -uno on folder /home/pi/domoticz/plugins/Shelly_MQTT
2021-04-04 10:32:35.467 (Plugin Manager) Git Response:b'On branch master\nYour branch is behind \'origin/master\' by 16 commits, and can be fast-forwarded.\n (use "git pull" to update your local branch)\n\nChanges not staged for commit:\n (use "git add <file>..." to update what will be committed)\n (use "git checkout -- <file>..." to discard changes in working directory)\n\n\tmodified: mqtt.py\n\tmodified: plugin.py\n\nno changes added to commit (use "git add" and/or "git commit -a")\n'
2021-04-04 10:32:35.468 (Plugin Manager) Calling: "LANG=en_US /usr/bin/git pull --force" on folder /home/pi/domoticz/plugins/Shelly_MQTT
2021-04-04 10:32:36.420 (Plugin Manager) Git Response:b'Updating c5efbc6..0636aee\n'
2021-04-04 10:32:36.420 (Plugin Manager) Succesfully pulled gitHub update: c5efbc6..0636ae for plugin Shelly MQTT translator
2021-04-04 10:32:36.420 (Plugin Manager) ---Restarting Domoticz MAY BE REQUIRED to activate new plugins---
Is there something I can check?
louloucmoi
Posts: 3
Joined: Friday 25 July 2014 19:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by louloucmoi »

StasDemydiuk wrote: Wednesday 27 May 2020 18:44 Thanks to ycahome's great work and basing on the original plugin I've created alternate version with UI (using Domoticz custom page) to easily manage plugins. Hopefully someone else also find it useful. Any feedback is highly welcome

https://github.com/stas-demydiuk/domoti ... ns-manager

Image
Hello

I'm getting this error after installing:

2021-04-05 15:14:58.445 Error: PP Manager: (plugins-manager) failed to load 'plugin.py', Python Path used was '/home/domoticz/plugins/plugins-manager/:/usr/local/lib/python38.zip//usr/local/lib/python3.8//usr/local/lib/python3.8/lib-dynload:/usr/local/lib/python3.8/site-packages'.
2021-04-05 15:14:58.445 Error: PP Manager: (PP Manager) Module Import failed, exception: 'ModuleNotFoundError'
2021-04-05 15:14:58.445 Error: PP Manager: (PP Manager) Module Import failed: ' Name: platform'
2021-04-05 15:14:58.445 Error: PP Manager: (PP Manager) Error Line details not available.
Python Plugin is working
2021-04-05 15:20:15.131 Status: PluginSystem: Started, Python version '3.8.0b1'.
System : Linux Debian 4.9
Domoticz Build: 13133.

What I have Wrong ?
Skwi
Posts: 18
Joined: Thursday 10 May 2018 9:37
Target OS: Windows
Domoticz version:
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Skwi »

Hello, I try to switch from the domoticz package (synology) to a docker container. I did re-install PP-Manager but when I select a plugin to install, then "update", nothing happend.
In the logs I can see the plugin is rebooting: 2021-04-29 12:37:37.176 PP-Manager hardware started. and that's all, even after restarting domoticz there is no new hardware (zigate in my case), and there is no new folder under my /volume1/docker/domoticz/plugins folder (I was expecting Domoticz-Zigate as previously)

Do you have any idea what's happening? What I am doing wrong (probably a permission issue)

Thanks
eddieb
Posts: 279
Joined: Wednesday 04 July 2018 7:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by eddieb »

any change that the wu-direct plugin (viewtopic.php?f=65&t=29327) can be added to the plugin manager ?
Martijn684 wrote:
RPI4 Beta / Tasmota / ZigBee2MQTT / P1meter / Haier AC with Node-Red and MQTT / SolarEdge SE3500H modbus_tcp / Opentherm gateway / Plugwise Anna/Smile / ObserverIP weatherstation thru WuDirect
Feeding ADSB https://adsb.im/home
Thelion
Posts: 54
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Thelion »

Hi,

How do I remove Python Plugin Manager completely?

I removed the folder in the Domoticz Plugin folder, after I removed the hardware, but I still get the Plugins-Manager option in the Custom menu.
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 »

eddieb wrote: Tuesday 29 June 2021 17:03 any change that the wu-direct plugin (viewtopic.php?f=65&t=29327) can be added to the plugin manager ?
Martijn684 wrote:
did you tried to add it to github by yourself and submit a pull request?
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 »

Thelion wrote: Tuesday 30 November 2021 12:30 Hi,

How do I remove Python Plugin Manager completely?

I removed the folder in the Domoticz Plugin folder, after I removed the hardware, but I still get the Plugins-Manager option in the Custom menu.
did you restarted domoticz? what do you mean by"Plugins-Manager option in the Custom menu."? screenshot?

you probably mean the plugins-manager, right?
Thelion
Posts: 54
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Thelion »

ycahome wrote: Tuesday 30 November 2021 17:58
Thelion wrote: Tuesday 30 November 2021 12:30 Hi,

How do I remove Python Plugin Manager completely?

I removed the folder in the Domoticz Plugin folder, after I removed the hardware, but I still get the Plugins-Manager option in the Custom menu.
did you restarted domoticz? what do you mean by"Plugins-Manager option in the Custom menu."? screenshot?

you probably mean the plugins-manager, right?
Yes, I did restart it, multiple times. I actually removed it quite some time ago. I just noticed that it was still there after I re-enabled the Custom menu option.

See attached screenshots. When I open the Plugins-Manager option, the screen loads, but doesn't show any information and keeps loading. Which is to be expected, as the plugin doesn't exist anymore. ;-)
Attachments
1.JPG
1.JPG (14.95 KiB) Viewed 3426 times
2.JPG
2.JPG (27.32 KiB) Viewed 3426 times
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 »

This thread is for pp-manager.
this is "plugins-manager"

you should contact StasDemydiuk

Thelion wrote: Tuesday 30 November 2021 18:14
ycahome wrote: Tuesday 30 November 2021 17:58
Thelion wrote: Tuesday 30 November 2021 12:30 Hi,

How do I remove Python Plugin Manager completely?

I removed the folder in the Domoticz Plugin folder, after I removed the hardware, but I still get the Plugins-Manager option in the Custom menu.
did you restarted domoticz? what do you mean by"Plugins-Manager option in the Custom menu."? screenshot?

you probably mean the plugins-manager, right?
Yes, I did restart it, multiple times. I actually removed it quite some time ago. I just noticed that it was still there after I re-enabled the Custom menu option.

See attached screenshots. When I open the Plugins-Manager option, the screen loads, but doesn't show any information and keeps loading. Which is to be expected, as the plugin doesn't exist anymore. ;-)
Thelion
Posts: 54
Joined: Saturday 08 October 2016 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: The Netherlands
Contact:

Re: Python Plugin: Python Plugin Manager

Post by Thelion »

ycahome wrote: Tuesday 30 November 2021 18:33 This thread is for pp-manager.
this is "plugins-manager"

you should contact StasDemydiuk

Thelion wrote: Tuesday 30 November 2021 18:14
ycahome wrote: Tuesday 30 November 2021 17:58

did you restarted domoticz? what do you mean by"Plugins-Manager option in the Custom menu."? screenshot?

you probably mean the plugins-manager, right?
Yes, I did restart it, multiple times. I actually removed it quite some time ago. I just noticed that it was still there after I re-enabled the Custom menu option.

See attached screenshots. When I open the Plugins-Manager option, the screen loads, but doesn't show any information and keeps loading. Which is to be expected, as the plugin doesn't exist anymore. ;-)
Ok, thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest