Philips
Node module for controlling Philips Hue lights
Installation
npm install hue-util
Example
var HueUtil = ; var app = 'hue-util';var ipAddress = '192.168.1.15'; // Use the ipAddress of the bridge or nullvar username = null;var hue = app ipAddress username onUsernameChange; var options = lightNumber: 0 // Light Number or Group Number useGroup: true // To use group or not on: false // Turn the light on or off color: 'red' // TinyColor2 color string transitiontime: // A number to define transitiontime (optional) alert: undefined// Alert string (optional) effect: undefined // Effect string (optional); // Change the lightshue; // Check the sensorshue; // Check the states of the buttons on a hue buttonvar sensorName = 'SensorName'; // name of your sensorhue; { username = newUsername; // Store the username for future use // otherwise you'll be required to press the hue bridge link button again}