Skip to content

A script to control Roku devices from the command line. Useful for raspi / shell scripting or automation.

License

Notifications You must be signed in to change notification settings

JettIsOnTheNet/Roku-Remote-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roku-Remote - Python - Ruby - Swift

This program is a simple command-line utility for sending remote control commands to a Roku TV, made for automation of the TV from anything that can run Python, Ruby or Swift. (Since I have ported it. ;) )

  • NOTE: The Swift version is still funky and buggy. I haven't decided the best way to implement it, because there are some other things I want to do with that version, but it's a start. I'm probably going to turn it into a Swift Package, so I am just playing with it at the moment. It's here so you can play with it too.

It takes four inputs from the command line:

  • The IP address of the TV (tv_address)
  • The command to run (command)
  • Optional: text input trigger (text)
  • Optional: text value to send

If the command is text, it will send the provided text input, one character at a time, just as a remote works, using the same method as above but with an additional 'Lit_' prefix to the key name.

EXAMPLES

python roku_remote.py 10.0.0.10 mute

python roku_remote.py 172.16.0.8 select

python roku_remote.py 192.168.1.105 text youtube

On request, I also have added a remote_class.py file that allows you to add remote functionality to any script you require. Just import it and use like you would any py class.

remote = RokuRemote('192.168.1.100', 'play')
remote.execute()

About

A script to control Roku devices from the command line. Useful for raspi / shell scripting or automation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published