hue-conductor
v0.1.0
Published
The Philips Hue Conductor is an app that lets you control Hue lights from a webcam with hand-gestures, using the [MediaPipe hand gesture library](https://developers.google.com/mediapipe/solutions/vision/gesture_recognizer).
Downloads
14
Readme
Philips Hue Conductor
The Philips Hue Conductor is an app that lets you control Hue lights from a webcam with hand-gestures, using the MediaPipe hand gesture library.
https://github.com/nsthorat/hue-conductor/assets/1100749/b2b8c32f-9e2c-40cb-8c13-e922ba63ffd9
Running the webserver
bunx hue-conductor
or
npx hue-conductor
Philips Hue Bridge IP and Username
Detailed documentation on finding your Hue Bridge
You will need both the IP, and the username that you create via the '/api' request outlined in the docs above.
If you use the default message body provided, Tthe username will be my_hue_app
:
{"devicetype":"my_hue_app#iphone peter"}
Controlling the lights
Before you can begin controlling lights, you must create two things from the Philips Hue app:
- A group of lights. I only allow controlling groups to control latency.
- Scenes for groups you want to control. Just like groups, I only allow controlling scenes to control latency.
Once you do this, in settings you can map each of the gestures to a scene:
7 gestures from MediaPipe gesture recognition:
None
Closed_Fist: ✊
Open_Palm: 🖐️,
Pointing_Up: ☝️
Thumb_Down: 👎
Thumb_Up: 👍
Victory: ✌️
ILoveYou: '🤟
Caveats
This currently will only work from localhost or 127.0.0.1 as it requires a non-https request to a local IP address.
Developing
bun install
bun run dev -- --open