Turn your Hue lights into clap on lights with Tessel.
- Ensure the Hue bridge and lights work normally
- Install Node
- Change directory into this project.
- Run npm install
https://www.developers.meethue.com/documentation/getting-started
- Find the IP address of your Hue Bridge by running node ./setup/getAddress.js
- Navigate to the following url in a web broswer http://<your-ip>/debug/clip.html
- Make a POST to the url /api/with the following post to get a userId
{"devicetype":"my_hue_app#iphone clapper"}
- Add lights to a group named CLAPPERusing the Hue app.
Now using the username from steps 3 in Configure Hue Bridge
run node ./setup/ <your-userId> to generate a env.json file like the one shown below:
{
  "HUE_HOST": "X.X.X.X",
  "HUE_USER": "XXXXXXXXXXXX",
  "GROUP_NAME": "CLAPPER"
}
The Tessel must be connected to the same network as your hue bridge
- npm install -g t2-cli
- t2 list
- t2 rename clapper
- t2 init
- t2 wifi -n <network-name> -p <password>
t2 run index.js
t2 push index.js