0.1.0 • Published 7 months ago

hue-conductor v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

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:

  1. A group of lights. I only allow controlling groups to control latency.
  2. 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