Python support?

Posted on
Sun Nov 02, 2014 3:52 pm
vasisht offline
Posts: 24
Joined: Dec 08, 2012

Python support?

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

Posted on
Sun Nov 02, 2014 4:21 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Python support?

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

Posted on
Sun Nov 16, 2014 9:16 am
vasisht offline
Posts: 24
Joined: Dec 08, 2012

Re: Python support?

Thanks!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests