huejs

0.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i huejs

Weekly Downloads

1

Version

0.0.0

License

BSD

Last publish

Collaborators

  • felx