node-raumfeld

0.4.4 • Public • Published

node-raumfeld

This is a node module for Raumfeld. It maps upnp commands to usage-friendly method calls.

Installation

Install for node.js npm:

$ npm install node-raumfeld

Example

var RaumfeldManager = require('node-raumfeld');
 
var manager = new RaumfeldManager();
 
// starts discovering devices asynchronously
manager.discover();
 
// fetch a device and do something with it. Method calls on a device return a promise object
manager.on("rendererFound", function(renderer) {
    renderer.getVolume().then(function(value) {
        console.log(renderer.name + " volume is " + value);
    });
});
 

Readme

Keywords

Package Sidebar

Install

npm i node-raumfeld

Weekly Downloads

0

Version

0.4.4

License

SEE LICENSE IN LICENSE

Last publish

Collaborators

  • dennis-hh