Jump to content


Photo

Remote control Roku via external server

roku remote control command websocket

  • Please log in to reply
3 replies to this topic

#1 roblav96 OFFLINE  

roblav96

    Member

  • Members
  • 23 posts
  • Local time: 09:00 AM

Posted 06 September 2019 - 12:18 AM

I remember some time ago when I was able to send remote control commands to the Roku app from a server outside the network via websockets. From what I understand is, currently it's not possible to do this anymore since the new Roku remote control API implementation. I'm aware of the port forwarding solution, but that's an impossible feat to teach Mom; she won't even attempt it. lol

 

I was wondering if there's any other way to get this to work again. Maybe revert the websocket removal in the next release or a plugin of some sort?

 

Any advise to point me in the right direction would be groovy smoothie. Thank you! :D


Edited by roblav96, 06 September 2019 - 12:19 AM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138001 posts
  • Local time: 09:00 AM

Posted 06 September 2019 - 10:23 AM

Unfortunately that's the only option. We have to send http requests to the Roku, which means it would have to be accessible externally.



#3 itkserver OFFLINE  

itkserver

    Member

  • Members
  • 17 posts

Posted 08 September 2019 - 12:52 PM

Technically you can with SSH and the roku python module.
The problem I am coming across, is I can't figure out what the class attributes are to search or play something specific. If the cursor is already over a category/folder/file/etc and you use play() it will play said object for music it creates a shuffled playlist.

 

from roku import Roku

from time import sleep

 

roku = Roku('<roku local ip>')

emby = roku['Emby']

emby.launch()

sleep(6)

roku.play()

 

this will create a playlist from your first category. in theory you can use roku.left()/right()/select() to navigate
possibly use port forwards in the 'roku' variable declaration instead of SSH i.e roku = Roku('<remote-ip>:<forwarded port>')

8060 should be the local port for your roku.



#4 roblav96 OFFLINE  

roblav96

    Member

  • Members
  • 23 posts
  • Local time: 09:00 AM

Posted 17 September 2019 - 12:38 AM

Well the point of all this would be to have the server in a remote colocation hosting facility and so mom doesn't have to do any "tech witch craft" in order to get remote control to work.







Also tagged with one or more of these keywords: roku, remote, control, command, websocket

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users