Python support?

vasisht
Posts: 24
Joined: Sat Dec 08, 2012 10:04 am

Python support?

Post 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
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Python support?

Post 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
vasisht
Posts: 24
Joined: Sat Dec 08, 2012 10:04 am

Re: Python support?

Post by vasisht »

Thanks!
Post Reply

Return to “Roku Network Remote”