Skip to content
A AngularJS Service for accessing Philips Hue API
Branch: master
Clone or download
datenpate Merge pull request #10 from Anzumana/master
fixed to correct version inside packge.json to prevent bower warning
Latest commit b2ba23b Nov 9, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Fix Error: Can't find variable setLightState Apr 21, 2015
example
src Fix Error: Can't find variable setLightState Apr 21, 2015
.gitignore added angular bower dependency Apr 3, 2015
Gruntfile.coffee
README.md registered official bower registry package May 1, 2015
bower.json bump package version May 1, 2015
package.json fixed to correct version inside packge.json to prevent bower warning Nov 8, 2015

README.md

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

You can’t perform that action at this time.