Hue.js
An easy to use wrapper from the Hue API in typescript.
Table Of Contents
Getting Started
Installing the package can be done with the following command:
npm i hue-wrapper
const Hue Bridge = ;
Usage Examples
Example 1
Connecting to a bridge with the Hue
class
const Hue = ; const HUE_BRIDGE HUE_USER = processenv; const hue = HUE_BRIDGE HUE_USER; hue; hue;
Example 2
Connecting directly to a bridge
const Bridge = ; const HUE_BRIDGE HUE_USER = processenv; Bridge;
Example 3
Connecting to the first (and mostly only bridge found)
const Bridge = ; const HUE_BRIDGE HUE_USER = processenv; Bridgeall;
Documentation
Detailed documentation in docs.md
.