Created
February 13, 2015 19:22
-
-
Save billputer/77452b97bf7b0c961548 to your computer and use it in GitHub Desktop.
Roku control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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