Git Product home page Git Product logo

roku-remote-scripts's Introduction

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()

roku-remote-scripts's People

Contributors

jettisonthenet avatar

Watchers

 avatar

roku-remote-scripts's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.