New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hue-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hue-node

Phillips Hue API Wrapper

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 05 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts