Cynical Cache Plugin, how to use in scripting?

Posted on
Wed Aug 26, 2015 2:13 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Cynical Cache Plugin, how to use in scripting?

Hi, I am using the Cynical Cache Plugin and I am very happy with it, many thanks to Perry for it! :mrgreen:

I have searched around the forums but couldn't find anything. Any ideas on how to send IR codes via scripting using the Cynical Cache Plugin? I got an IR action group that's quite complicated and needs to be executed in the right order. Unfortunately the actions on a trigger execute at their own will so I need to move these to scripting to be able to control the flow. Thanks!

Posted on
Thu Aug 27, 2015 12:05 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Cynical Cache Plugin, how to use in scripting?

I think (?) even in scripting they will still execute on top of each other, even if you execute the commands sequentially.

Wouldn't it be better to have a different delay on each IR action in your trigger?

IR 1: Delay 0
IR 2: Delay 1
IR 3: Delay 2
... Etc


Sent from my iPhone using Tapatalk

Posted on
Thu Aug 27, 2015 1:03 am
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: Cynical Cache Plugin, how to use in scripting?

In scripting I can specify any delay I want, even in milliseconds. In actions I can only do seconds so 10 "guaranteed" sequential actions will take at least 10 seconds.

Posted on
Thu Aug 27, 2015 4:33 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Cynical Cache Plugin, how to use in scripting?

Ah, true.


Sent from my iPhone using Tapatalk

Posted on
Wed Sep 16, 2015 3:38 pm
Turribeach offline
Posts: 429
Joined: Feb 06, 2015
Location: London, UK

Re: Cynical Cache Plugin, how to use in scripting?

I figured it out, here is a sample to send an IR code in a Python script:

Code: Select all
pId = "org.cynic.indigo.gcnet"
GlobalCachePlugin = indigo.server.getPlugin(pId)
if GlobalCachePlugin.isEnabled():
   GlobalCachePlugin.executeAction("sendir", deviceId=46489368, props={'ircode':'<generic:0000 0073 0000 0017  0061 0020 0010 0010 0010 0010 0010 0020 0010 0020 0020 0010 0010 0010 0010 0010 0010 0010 0010 0010 0020 0020 0020 0010 0010 0010 0010 0020 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0020 0020 0010 0010 0010 0e12>', 'count':'0'})

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests