0.0.1 • Published 6 years ago

hueplus v0.0.1

Weekly downloads
3
License
-
Repository
-
Last release
6 years ago

hueplus

(Experimental) control for the NZXT Hue+ from Node.js from (Linux, OS X and Windows). This is a work-in-progress, but it seems to work okay for setting static/breathing LED colours. Right now, it only really supports controlling both channels at the same time, and there's no CLI.

If you're looking for a more tested alternative, try this Python version written by kusti8. Although I couldn't get it to work on my Raspberry Pi.

API

I'll put the API here once it's stable, but I'm sure you can work it out. Typescript typings are provided (as the project is written in Typescript).

Example

Here's an example of the current API. You'll need to change "COM3" to the COM port the device is registered at. Check device manager for Windows PC's, or use the /dev/whatever path for Linux/OS X.

	const hue = new HuePlus("COM3", HuePlusMode.fixed)

	await hue.connect()

	hue.setAllLEDColours({red: 255, green: 255, blue: 255})
	hue.setLEDColour(0, {red: 255, green: 0, blue: 0})
	hue.setLEDColour(3, {red: 0, green: 255, blue: 0})
	hue.setLEDColour(18, {red: 0, green: 0, blue: 255})

	await hue.update(HuePlusChannel.both)
	await hue.disconnect()

CLI

Not written yet, but maybe one day.

0.0.1

6 years ago