0.0.0 • Published 11 years ago

huejs v0.0.0

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

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

0.0.0

11 years ago