Results 1 to 4 of 4

Thread: Roku Control using SimpleTransport

  1. #1
    Join Date
    Jun 2012
    Location
    Wabash, IN
    Posts
    102

    Default Roku Control using SimpleTransport

    Hi, Has anyone successfully setup simpletransport to control a Roku device? I have been reviewing the Roku API and it looks pretty straight forward however I must be doing something wrong as I can't get it to respond from Girder. The "home" button command is as follows:

    http://xxx.xxx.xxx.xxx:8060/keypress/home



    As you can see from the screen shots I've added the device and it appears to connect however it doesn't respond to my command. I have tried the following in a web browser and it returned a list of apps installed on the Roku in XML form:

    http://192.168.1.29:8060/query/apps

    Roku External Control API Documentation
    HTML Code:
    https://sdkdocs.roku.com/display/sdkdoc/External+Control+API
    Any help on this would be appreciated.

    Thanks,
    Casey
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	SimpleTranspot Screenshot.PNG 
Views:	42 
Size:	21.4 KB 
ID:	7074   Click image for larger version. 

Name:	SendAction Screenshot.PNG 
Views:	43 
Size:	28.6 KB 
ID:	7075  
    Casey P.

  2. #2
    Join Date
    May 2016
    Posts
    19

    Default

    The simple transport plugin does not use HTTP protocol. It uses TCP (or UDP, or serial). HTTP is a higher level protocol that uses TCP as its underlying transport. So what you are trying to do is not going to work.

    However, I have a fairly simple solution for you. I wrote a plugin to do HTTP requests (among other things). It is available here. Installation is quite simple. Extract the contents of the zip file into the lua folder within your Girder installation folder. The configuration is done via plugin settings, very similar to the simple transport plugin. Let me know if you have any questions or need any further help.

  3. #3
    Join Date
    Jun 2012
    Location
    Wabash, IN
    Posts
    102

    Default

    Thank you very much for your help and for clearing things up for me. I guess I thought tcp and http were interchangeable but obviously I was mistaken. I'll try your solution in a few days when I get a chance.

    Thanks again,
    Casey

  4. #4
    Join Date
    May 2016
    Posts
    19

    Default

    If anyone else wants to control their Roku using my plugin, I have an updated version available. PM me an email address and I can forward you a copy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •