This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
plugin = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.easydaq-usb-relay-cards")
if plugin.isEnabled():
plugin.restart()
support wrote:So, is there any reason that a plugin could/should not cause it self to reload by invoking the restart method on itself? This would be desirable in a case where a configuration change has been made that requires a plugin restart.You can, via an embedded Indigo python script, restart a plugin if (and only if) it is already enabled:
- Code: Select all
plugin = indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.easydaq-usb-relay-cards")
if plugin.isEnabled():
plugin.restart()
plugin.restart(waitUntilDone=False)
plugin = indigo.server.getPlugin("some.plugin.id.here")
support wrote:... try
plugin = indigo.server.getPlugin("some.plugin.id.here")
And then plugin.restart() should take the new argument.
Users browsing this forum: No registered users and 2 guests