Turn Your Home Into a Discotheque with Go
summary
A text protocol called DISCO controls Philips Hue and LIFX lights from a command line and minimal web UI, implemented as 5,000 lines of Go running on a Raspberry Pi and mostly the standard library. YAML cue files expand into routed commands, HTTP endpoints return HTTP 204 for cue fires, and color work includes RGB↔HSV↔XY conversions plus gamut bounding using barycentric math to clamp colors and a seek/shuffle generator for pleasing palettes.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 1:05Limitations of existing apps
- 2:11Introducing DISCO protocol
- 4:35Commander and command pipeline
- 9:50Building a web interface
- 13:06Color spaces and conversions
- 18:05XY color space challenges
- 21:54Gamut bounding explained
- 25:49Color scheme generation
- 29:20Conclusion and home setup








