Load Plug-in

Posted on
Mon Jan 08, 2024 5:24 pm
SMUSEBY offline
Posts: 511
Joined: Sep 16, 2009
Location: California

Load Plug-in

What is the python script for loading a plug-in?

Posted on
Mon Jan 08, 2024 6:13 pm
DaveL17 offline
User avatar
Posts: 6759
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Load Plug-in

There is no script for loading a plugin. This is for security reasons. You can only restart a plugin once it's already running.

Code: Select all
plugin = indigo.server.getPlugin("com.indigodomo.somePlugin")
plugin.restart(waitUntilDone=True)
The waitUntilDone argument is optional.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Jan 08, 2024 7:20 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Load Plug-in

And you don't need a script if all you want to do is restart a plugin. It's available as an action under "Server Actions".

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 08, 2024 7:48 pm
SMUSEBY offline
Posts: 511
Joined: Sep 16, 2009
Location: California

Re: Load Plug-in

I was putting it in front of a script with an MQTT command that was failing.
It was the latest of many 'guess-and-check' failed solutions to MQTT implementation.
But it doesn't work.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 9 guests