Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ckeyes888
Visitor

Direct Channel Selection Using Telnet?

Hey,

I see all the commands to simulate the remote control buttons over telnet, "press a" etc., but was hoping
that there may be commands to directly select channels?

Thanks,

Carl
0 Kudos
8 REPLIES 8
gonzotek
Visitor

Re: Direct Channel Selection Using Telnet?

The telnet control interface is considered deprecated. Roku replaced it with ECP (the External Control Protocol). Using ECP, you can send a launch command with the appid of the channel you want to launch, e.g.
http://192.168.20.111:8060/launch/11
will launch the channel store. App ids can be obtained from several sources: through ecp, using the 'query/apps' command, from the developer control panel (for channels you've developed yourself), or from the Roku channel guide website (they're part of the URL, when you are looking at a channel's details, e.g. http://www.roku.com/channels#!details/12/netflix <- the appid is 12).
Here's the documentation for ECP:
http://sdkdocs.roku.com/display/RokuSDK ... trol+Guide

You could try using telnet to 'launch 12'(for instance), but I'm not sure if that was ever implemented before they switched to ECP.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
ckeyes888
Visitor

Re: Direct Channel Selection Using Telnet?

Thanks a bunch for the info. Will give that approach a go.

Carl
0 Kudos
ckeyes888
Visitor

Re: Direct Channel Selection Using Telnet?

Sorry, really not too up on this type of stuff, but can the commands be sent using AppleScript, and if so
might you have an example of how that may be done?

Many thanks,

Carl
0 Kudos
RokuJoel
Binge Watcher

Re: Direct Channel Selection Using Telnet?

If you can do http POST (submit a web form) from Applescript and http GET (retrieve a web page) from Applescript then you can speak ECP to Roku from Applescript. A quick search of Google indicates that this is most likely possible.

- Joel
0 Kudos
ckeyes888
Visitor

Re: Direct Channel Selection Using Telnet?

Thanks Joel. I'll check that out.

Carl
0 Kudos
ckeyes888
Visitor

Re: Direct Channel Selection Using Telnet?

Seems it may be better to use Python to send a Post command to Roku.

Might anyone have an example of one?

Thanks,

Carl
0 Kudos
ckeyes888
Visitor

Re: Direct Channel Selection Using Telnet?

Sorry, really not up on this stuff at all.

As in the post above it sounds like this command: http://192.168.20.111:8060/launch/11 is exactly what I'm after
but I have no idea how to send or execute it.

Any help greatly appreciated.

Thanks,

Carl
0 Kudos
gonzotek
Visitor

Re: Direct Channel Selection Using Telnet?

"ckeyes888" wrote:
Sorry, really not up on this stuff at all.

As in the post above it sounds like this command: http://192.168.20.111:8060/launch/11 is exactly what I'm after
but I have no idea how to send or execute it.

Any help greatly appreciated.

Thanks,

Carl

The command must be sent as a POST http request, so whatever language you're using has to support that or be able to hook into a program (such as curl or wget) that can do that. In Remoku (the web-based Roku remote I wrote), I use hidden forms and iframes to accomplish this. In less restrictive environments, like python, you can do this more easily.
Here's some info that should help if you're using python:
http://www.voidspace.org.uk/python/arti ... shtml#data

and if you're using applescript:
http://lists.apple.com/archives/applesc ... 01250.html

If this isn't enough to get you started, please explain what you're using and what specifically is hanging you up. I don't have a Mac, so I won't be much help if you're doing this in AppleScript, but might still be able to make suggestions.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.