Skip to content

WIP: Philips Hue Node.js app for controlling lights

License

Notifications You must be signed in to change notification settings

thegreatsunra/hue-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hue-app

Philips Hue Node.js app for controlling lights

Getting Started

git clone https://github.com/thegreatsunra/hue-app.git
cd hue-app
npm install

Then, create a .env file in the root of the project with the following content:

USERNAME=your_philips_hue_unique_user_id_provided_by_your_hub
LIGHT_ID=the_id_of_the_light_you_wish_to_control

Save the .env file.

Usage

Run the Typescript script directly using ts-node:

./node_modules/.bin/ts-node ./index.ts

Assuming the light was off, it should turn the light on.

Assuming the light was already on, it should do nothing.

Other Commands

Lint the Typescript code:

./node_modules/.bin/eslint ./index.ts

About

WIP: Philips Hue Node.js app for controlling lights

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published