hue-hacking-node1.3.1 • Public • Published
hue-hacking-npm: Hue Control Library
For more information on the Philips Hue bulbs and wireless bridge system, visit meethue.com.
Initial concept and startup work inspired by Ross McKillop's post.
Once you've followed the instructions with your Hue starter kit and you have your lamps working through the web interface or smartphone app, it's time to configure your copy of hue.js.
For a full breakdown of what the Philips Hue API/SDK offers, check out the official developer site. Full details about how to register a new 'user' with the wireless bridge can be found at the SDK getting started page.
Generate and save your MD5 hash (any MD5 generator will do). Be sure to save your hash and the passphrase used to generate it in a safe place.
Find the IP address of your Hue wireless bridge. This can be gathered in a number of ways, including the meethue.com control panel, https://www.meethue.com/en-US/user/preferencessmartbridge, by clicking on the "Show me more" link. See screenshot for an example. Alternatively, you can browse to this URL, and use the value displayed in
internalipaddress. This module now supports a static
searchoperation, allowing you to find any Hue bridges attached to the local network (using the same UPNP approach as mentioned previously):
;;;for of foundBridges
Or, if you can't use async / await semantics in your module:
- Quick example configuration:
;;; // This is the hash / name / id that you registered with the bridge previously using the official Hue docs;
For the best introduction to using this module, please see the
© 2013 Bryan Johnson; Licensed MIT.