roku
control your roku from node
Last updated 7 years ago by tmpvar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install roku 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (7 years ago)

2 Versions

  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |