Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 656 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 656 Bytes

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