Skip to content

dennis-hh/node-raumfeld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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