roku
v0.2.0
Published
control your roku from node
Downloads
13
Readme
roku
wrapper around the roku "external control" api
install
npm install roku
use
var ssdp = new (require('node-ssdp'))()
var Roku = require('../roku.js');
ssdp.once('response', function inResponse(msg, rinfo) {
var location = msg.toString().match(/Location: (.*)/i)[1].trim();
var device = new Roku(location);
device.press(Roku.HOME);
device.delay(1000);
device.launch('pandora', function() {
process.exit(0);
});
});
ssdp.search('roku:ecp');