Nodejs-Milight
Nodejs for Milight RGB lights
Beware: there is no acknowledge from the milight module !
Installation
$ npm install milight
API Usage
var Milight = require("milight");
var milight = new Milight({
host: "192.168.0.255",
broadcast: true
});
milight.on();
milight.zone(1).rgb("#FF0000");
milight.zone([2,3]).white(50, function(error) {
});
##Configuration
Milight constructor accepts an optional configuration object. At the moment, the following is supported:
host
String Hostname of milight module. Default : '255.255.255.255'port
Number Specifies the port of milight module. Default : 8899broadcast
Boolean Use broadcast udp socket. Default : 'true'delayBetweenMessages
Number Delay between messages in milliseconds. Default : 200ms
Author
Olivier Oeuillot
Contributors
https://github.com/oeuillot/node-milight/graphs/contributors