0.2.0 • Published 11 years ago

roku v0.2.0

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

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