/angular-hue-service

A AngularJS Service for accessing Philips Hue API

Primary LanguageCoffeeScript

AngularJS service to access Philips Hue API

Complete Hue API 1.4.0 (http://www.developers.meethue.com/philips-hue-api) as AngularJS service.

Examples

// Get all lights
var myHue = hue;
myHue.setup({username: "myuser", bridgeIP: "yourbridge", debug: true});

myHue.getLights().then(function(lights) {
  $scope.lights = lights;

  // Switch light 1 on
  myHue.setLightState(1, {"on", true}).then(function(response) {
    $scope.lights[1].state.on = true;
    console.log('API response: ', response);
  });
});

Usage

bower install angular-hue-service

Build

Install Node.js and then

npm install
grunt build

Development

Install Node.js and then

npm install
grunt

Versioning

http://semver.org/

License