Skip to content

thijskuipers/angular-hue-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A AngularJS Service for accessing Philips Hue API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 44.6%
  • CoffeeScript 41.6%
  • HTML 13.8%