How to restart cynical cache plugin with Python

Posted on
Wed Feb 05, 2014 12:16 am
anothersphere offline
Posts: 158
Joined: Jul 01, 2009

How to restart cynical cache plugin with Python

I have a problem with cynical cache going unavailiable.
It is solved generally by restarting the plugin.
I have done this for security spy with something similar to the script.

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


What is the correct name/reference for cynical cache here?

Martin Miller

Auckland - New Zealand

Posted on
Thu Feb 06, 2014 6:46 pm
Perry The Cynic offline
Posts: 838
Joined: Apr 07, 2008

Re: How to restart cynical cache plugin with Python

org.cynic.indigo.gcnet

Of course, I'd rather we figured out what your problem is. (You did get the latest version, right?)

Cheers
-- perry

Posted on
Thu Feb 06, 2014 8:45 pm
anothersphere offline
Posts: 158
Joined: Jul 01, 2009

Re: How to restart cynical cache plugin with Python

Yes, I am treating the symptom at the moment and will then look at the cause afterwards.
It seems that something is causing the network aspect of the plugin to go not ready periodically.
Its either a call to the shell to do a ping or an applescript that loops through all devices (X10) and reinforces their states (I have some emf fuzz on some devices that means sometimes the x10 devices is not on or off as it should be - the fix was to simply periodically tell them to be what they should [the better fix is Z-wave which is much nicer]).

Martin Miller

Auckland - New Zealand

Posted on
Wed Feb 12, 2014 6:49 pm
anothersphere offline
Posts: 158
Joined: Jul 01, 2009

Re: How to restart cynical cache plugin with Python

Installing the latest build of the plug-in took away the problem, and the script above has helped with the odd fail.

Martin Miller

Auckland - New Zealand

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest