Mirror hue bridge values to external source to offload bridge requests
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 this file from your favorite shell
node App.js
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/
apt install nodejs
npm install fastify
npm install follow-redirects
For more details, see the LICENSES file.