JSPM

roku

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40422F
  • License MIT

control your roku from node

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');

more examples

api

type(string[, fn])

press(button)

delay(ms)

input(obj)

apps(function(err, array) {});

createIconStream(appId)

launch(appIdorName)

info

license

MIT