Giter Site home page Giter Site logo

roku-tui's Introduction

roku-tui

a command line TUI remote for Roku

install and run

me@computer ~$ python3 -m pip install roku-tui me@computer ~$ roku-tui

basic usage

Keys on the left map to standard Roku remote buttons on the right

  • h -> Home
  • b -> Back
  • p -> Play/Pause
  • r -> Replay
  • * -> Options (star key)
  • arrow keys -> navigation
  • ENTER -> OK
  • < -> Rewind
  • > -> Fast-Forward

For help inside the application, type '?'. To quit the application, type q.

typing mode

In some instances, you may need to type something into a Roku screen (when searching or logging into a service, for example). This can be incredibly cumbersome using the standard navigation.

To enter typing mode, press /, and you will see a cursor appear below the remote. At this point, all alphanumeric keys (and backspace) will be interpreted literally and sent to the Roku.

To exit typing mode, press ENTER or ESC.

NOTE: this doesn't work with all text interfaces.

roku-tui's People

Contributors

winsbe01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

roku-tui's Issues

Print helpful error message when window size too small

As opposed to

; roku-tui 
Traceback (most recent call last):
  File "/home/nmz/System/bin/roku-tui", line 8, in <module>
    sys.exit(startup())
  File "/home/nmz/.local/lib/python3.9/site-packages/roku_tui.py", line 215, in startup
    curses.wrapper(main, config)
  File "/usr/local/lib/python3.9/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/nmz/.local/lib/python3.9/site-packages/roku_tui.py", line 170, in main
    status(stdscr)
  File "/home/nmz/.local/lib/python3.9/site-packages/roku_tui.py", line 87, in status
    stdscr.addstr(20, 1, "~*~ roku-cli ~*~")
_curses.error: addwstr() returned ERR

urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

Hello there @winsbe01, I am very sorry to bother you with this. I have been using ur TUI for month with out any issue but today
I got this:

`Traceback (most recent call last):
File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/usr/lib/python3.10/http/client.py", line 941, in connect
self.sock = self._create_connection(
File "/usr/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/usr/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/niko/.local/bin/roku-tui", line 8, in
sys.exit(startup())
File "/home/niko/.local/lib/python3.10/site-packages/roku_tui.py", line 215, in startup
curses.wrapper(main, config)
File "/usr/lib/python3.10/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/home/niko/.local/lib/python3.10/site-packages/roku_tui.py", line 172, in main
remote_loop(stdscr, remote)
File "/home/niko/.local/lib/python3.10/site-packages/roku_tui.py", line 154, in remote_loop
press_key(stdscr, remote.keys[c], remote.base_url)
File "/home/niko/.local/lib/python3.10/site-packages/roku_tui.py", line 63, in press_key
urllib.request.urlopen(request_url, b'')
File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/lib/python3.10/urllib/request.py", line 1377, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>`

do you mind pointing out how or what to do?

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.