What script will reload the cynical Denon plugin?

Posted on
Wed Feb 12, 2014 8:03 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

What script will reload the cynical Denon plugin?

Does anyone know what script will reload the Cynical Denon Plugin?

something like...

Code: Select all
plugin = indigo.server.getPlugin("org.cynic.indigo.cynicaldenon")
if plugin.isEnabled():
   plugin.restart()


Thanks

PS: The reason I'm asking is that I have denon connected to a Z-Wave switch, which we use as a master power kill switch when the kids have had too much screen time. Sometimes, the plugin has a difficult time (long delay) reconnecting to the Denon when the power is restored. Reloading the plugin via Indigo always solves the problem, so I'd like to have a Trigger that reloads the plugin whenever the Z-Wave switch restores power to the Denon.

Posted on
Wed Feb 12, 2014 12:07 pm
SpencerJRoberts offline
User avatar
Posts: 256
Joined: Dec 09, 2012
Location: Mountain View, CA

Re: What script will reload the cynical Denon plugin?

Code: Select all
pluginId = "org.cynic.indigo.securityspy"
plugin = indigo.server.getPlugin(pluginId)
if plugin.isEnabled():
   plugin.restart()


I think your code would work too.

Posted on
Wed Feb 12, 2014 2:14 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: What script will reload the cynical Denon plugin?

guitar486 wrote:
Code: Select all
pluginId = "org.cynic.indigo.securityspy"
plugin = indigo.server.getPlugin(pluginId)
if plugin.isEnabled():
   plugin.restart()


I think your code would work too.


Thanks for the alternative code. I'm not sure what should really by placed into the spot where my code says "org.cynic.indigo.cynicaldenon" That part was just a guess. Not sure how to find that info.

Posted on
Wed Feb 12, 2014 4:19 pm
ckeyes888 offline
Posts: 2425
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: What script will reload the cynical Denon plugin?

If you go to the plugins folder, right click on the plugin you want the info from,
and click to Show Package Contents.

Open the Info.plist file and the bundle identifier I believe will be the plugin
name you need to use in the script.

Carl

Posted on
Thu Feb 13, 2014 1:39 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: What script will reload the cynical Denon plugin?

Thank You Carl,

That was the information I needed.

Also, thanks guitar486. Used your code. For anyone who might want to have a python script to reload the Cynical Denon plugin, this works great:

Code: Select all
pluginId = "org.cynic.indigo.denon-av"
plugin = indigo.server.getPlugin(pluginId)
if plugin.isEnabled():
   plugin.restart()

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests