Package Exports
- roku
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (roku) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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');