huejs
v0.0.0
Published
A module to control Philips Hue lamps
Downloads
1
Readme
huejs
a nodejs module to control Philips Hue lamps
VERY EARLY ALPHA STATE!
Usage
var huejs = require('huejs');
// only needed if a user name has not been configured yet
function prompt(ready) {
// ask user to press link button, plus some feedback when they are ready
...
ready()
}
huejs.init('myusername', prompt, function (lights) {
lights[0].setState({ on: true });
});
setState
takes the same arguments as described in section 1.6.2 of the Hue API