Page 1 of 1

Python support?

PostPosted: Sun Nov 02, 2014 3:52 pm
by vasisht
Hi! This is an awesome plugin - thanks for writing it!

Just wondering if the features of the plugin can be scripted with python?

Also, I noticed that the only trigger available is if the IP has changed - is this a Roku limitation that other things can't be checked?

Thanks!

-Vasisht

Re: Python support?

PostPosted: Sun Nov 02, 2014 4:21 pm
by RogueProeliator
Just wondering if the features of the plugin can be scripted with python?

Yes, you can script any of the actions normally -- for instance, to send the Home key, use a script such as:
Code: Select all
indigoPlugin = indigo.server.getPlugin("com.duncanware.rokuNetworkRemote")
indigoPlugin.executeAction("remoteButtonToRoku", deviceId=123456789, props={'buttonSelect':'Home'})

Also, I noticed that the only trigger available is if the IP has changed - is this a Roku limitation that other things can't be checked?

The Roku API that is published does not provide any feedback such as status or current state -- it is basically a one-way control protocol.

Adam

Re: Python support?

PostPosted: Sun Nov 16, 2014 9:16 am
by vasisht
Thanks!