Last active
November 27, 2020 16:35
-
-
Save jakerb/8831f967560d704c5f2dbb4e2b0f8339 to your computer and use it in GitHub Desktop.
Control your Sky TV with Node!
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
/* | |
* Control your Sky TV with Node! | |
* @author jakerb | |
* | |
* @usage | |
* --- Top Buttons --- * | |
* node index.js sky | |
* node index.js power | |
* node index.js tvguide | |
* node index.js home | |
* node index.js boxoffice | |
* node index.js services | |
* node index.js search | |
* node index.js interactive | |
* node index.js sidebar | |
* | |
* --- Directional Buttons --- * | |
* node index.js up | |
* node index.js down | |
* node index.js left | |
* node index.js right | |
* node index.js select | |
* node index.js channelup | |
* node index.js channeldown | |
* | |
* --- Middle Buttons --- * | |
* node index.js i | |
* node index.js backup | |
* node index.js dismiss | |
* node index.js text | |
* node index.js help | |
* | |
* --- Media Buttons --- * | |
* node index.js play | |
* node index.js pause | |
* node index.js rewind | |
* node index.js fastforward | |
* node index.js stop | |
* node index.js record | |
* | |
* --- Colour Buttons --- * | |
* node index.js red | |
* node index.js green | |
* node index.js yellow | |
* node index.js blue | |
* | |
* --- Numberpad Buttons --- * | |
* node index.js 0 | |
* node index.js 1 | |
* node index.js 2 | |
* node index.js 3 | |
* node index.js 4 | |
* node index.js 5 | |
* node index.js 6 | |
* node index.js 7 | |
* node index.js 8 | |
* node index.js 9 | |
* | |
*/ | |
var SkyRemote = require('sky-remote'); | |
var args = process.argv.slice(2); | |
var remote = new SkyRemote('192.168.0.10'); | |
remote.press(args[0]); |
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
{ | |
"name": "skyremote", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"sky-remote-cli": "^1.2.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment