1.0.7 • Published 3 years ago

hue-node v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

hue-node

A Phillips Hue API Wrapper written in TypeScript

Installation

npm

npm i hue-node

yarn

yarn add hue-node

Usage

import { Hue } from 'hue-node'

const hue = new Hue('username', 'bridge ip')

hue.getLights().then(function (response) {
    console.log(response);
})

Functions / Documentation

Get all lights

hue.getLights()

Get a light

// args: light id
hue.getLight(4)
Toggle a light
// args: light id
hue.toggleLight(4)
Change Hue, Saturation, Brightness
// args: light id, hue, saturation, brightnesss
hue.changeColor(4, 50, 100, 200)
1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago