dannyvanlierop / NodeJS_API_Philips_Hue_Bridge_Mirror

Mirror hue bridge values to an external source to offload bridge requests or make them available to other networks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJS_HueBridge-Mirror-API

Mirror hue bridge values to external source to offload bridge requests

 
Open source License: Mit Contributors Forks Stars Issues  

Configure:


Create a file named .config.json (in the the src directory). Add contents like below and adjust it to your needs.

{
    "BridgeUser": "BRIDGE-USER-KEY-HERE"
}

 

Run:


Run this file from your favorite shell

node App.js

 

Usage:


Fetch light values with any client from your new source like you would from the hue bridge.

One light example:  http://127.0.0.1/api/BRIDGE_USERNAME/lights/1/
All lights example:  http://127.0.0.1/api/BRIDGE_USERNAME/lights/
One sensor example:  http://127.0.0.1/api/BRIDGE_USERNAME/sensors/1/
All sensors example:  http://127.0.0.1/api/BRIDGE_USERNAME/sensors/

 

Dependency:


apt install nodejs 
npm install fastify
npm install follow-redirects

 

License:


For more details, see the LICENSES file.


 

About

Mirror hue bridge values to an external source to offload bridge requests or make them available to other networks.

License:MIT License


Languages

Language:JavaScript 100.0%