Skip to content

Instantly share code, notes, and snippets.

@billputer
Created February 13, 2015 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billputer/77452b97bf7b0c961548 to your computer and use it in GitHub Desktop.
Save billputer/77452b97bf7b0c961548 to your computer and use it in GitHub Desktop.
Roku control
#!/usr/bin/env bash
# slightly ghetto way to play the Yule Log video on Roku
set -e
set -o nounset
host='192.168.3.5'
curl -d '' "http://${host}:8060/keypress/Home"
curl -d '' "http://${host}:8060/launch/13535"
sleep 2
curl -d '' "http://${host}:8060/keypress/Down"
curl -d '' "http://${host}:8060/keypress/Down"
curl -d '' "http://${host}:8060/keypress/Down"
curl -d '' "http://${host}:8060/keypress/Select"
sleep 1
curl -d '' "http://${host}:8060/keypress/Lit_Y"
curl -d '' "http://${host}:8060/keypress/Lit_u"
curl -d '' "http://${host}:8060/keypress/Lit_l"
curl -d '' "http://${host}:8060/keypress/Lit_e"
sleep 1
curl -d '' "http://${host}:8060/keypress/Enter"
sleep 1
curl -d '' "http://${host}:8060/keypress/Play"
sleep 1
curl -d '' "http://${host}:8060/keypress/Down"
curl -d '' "http://${host}:8060/keypress/Select"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment