All Projects → bjohnso5 → hue-hacking-npm

bjohnso5 / hue-hacking-npm

Licence: MIT license
Hue Hacking, as a Node Package Manager module

Programming Languages

typescript
32286 projects
Dockerfile
14818 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hue-hacking-npm

homebridge-zigbee
ZigBee Platform plugin for HomeBridge
Stars: ✭ 101 (+461.11%)
Mutual labels:  hue
Image-Processing-Library
Library for processing and manipulating images.
Stars: ✭ 36 (+100%)
Mutual labels:  hue
homeassistant
Home Assistant Config
Stars: ✭ 50 (+177.78%)
Mutual labels:  hue
HueBridgeEmulator
Python emulator for Philips Hue Bridge
Stars: ✭ 17 (-5.56%)
Mutual labels:  hue
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (+61.11%)
Mutual labels:  hue
lifelights
Video games blended with home automation. Control your IoT devices based on in-game statuses!
Stars: ✭ 80 (+344.44%)
Mutual labels:  hue
PiHueEntertainment
An application that can handle the Hue Entertainment Areas on a Raspberry Pi
Stars: ✭ 28 (+55.56%)
Mutual labels:  hue
alfred-timer-workflow
Alfred workflow to start a timer, which blinks when the time is up.
Stars: ✭ 39 (+116.67%)
Mutual labels:  hue
HueControl
Java-based framework for working with the Phillips Hue system
Stars: ✭ 14 (-22.22%)
Mutual labels:  hue
huebot
Changes a Phillips Hue light's color and flashes based on GitHub's status
Stars: ✭ 34 (+88.89%)
Mutual labels:  hue
home-assistant
🏠 My personal Home Assistant configuration
Stars: ✭ 27 (+50%)
Mutual labels:  hue
core
Hue Emulation for Home Assistant
Stars: ✭ 193 (+972.22%)
Mutual labels:  hue
Abeille
Abeille pour Jeedom (Gateway ZiGate)
Stars: ✭ 56 (+211.11%)
Mutual labels:  hue
hcv-color
🌈 Color model HCV/HCG is an alternative to HSV and HSL, derived by Munsell color system, usable for Dark and Light themes... 🌈
Stars: ✭ 44 (+144.44%)
Mutual labels:  hue
HueLightDJ
Hue Light DJ using Hue Entertainment API
Stars: ✭ 54 (+200%)
Mutual labels:  hue
hue exporter
A Prometheus exporter for Philips Hue (written in Go)
Stars: ✭ 109 (+505.56%)
Mutual labels:  hue
canvas-plus
A universal Node/browser library for manipulating images, built on canvas.
Stars: ✭ 84 (+366.67%)
Mutual labels:  hue
cloud
云计算之hadoop、hive、hue、oozie、sqoop、hbase、zookeeper环境搭建及配置文件
Stars: ✭ 48 (+166.67%)
Mutual labels:  hue
hass-hue-icons
Additional vector icons for home assistant to model Philips Hue bulbs and fixtures.
Stars: ✭ 161 (+794.44%)
Mutual labels:  hue
ad-automoli
💡 Fully automatic light management based on conditions like motion, illuminance, humidity, and other clever features
Stars: ✭ 99 (+450%)
Mutual labels:  hue

hue-hacking-npm: Hue Control Library

npm version Build Status Coverage Status

hue-hacking is a javascript library designed to control the Philips Hue smart LED bulb system. This version has been modified to be used as a Node module.

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.

Getting Started

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.

  1. 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.

  2. 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 search operation, allowing you to find any Hue bridges attached to the local network (using the same UPNP approach as mentioned previously):

import { Hue, HueUPNPResponse } from 'hue-hacking-node';

const foundBridges: HueUPNPResponse[] = await Hue.search();
const validBridgeIPs: string[] = [];
for (let bridge of foundBridges) {
  validBridgeIPs.push(bridge.internalipaddress);
}

Or, if you can't use async / await semantics in your module:

import { Hue, HueUPNPResponse } from 'hue-hacking-node';

let validBridgeIPs: string[] = [];
Hue.search().then(bridges => {
  for (let bridge of bridges) {
    validBridgeIPs.push(bridge.internalipaddress);
  }
});
  1. Quick example configuration:
import { Hue } from 'hue-hacking-node';

const bridgeIP = '192.168.x.x';
const appname = 'myfirsthueapp'; // This is the hash / name / id that you registered with the bridge previously using the official Hue docs

const hue = new Hue({
  ip: bridgeIP,
  key: appname,
  numberOfLamps: 3,
  retrieveInitialState: false
});

For the best introduction to using this module, please see the hue-node.spec.ts file.

© 2019 Bryan Johnson; Licensed MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].