~/talk

Turn Your Home Into a Discotheque with Go

Talkat GopherConAU 2024 · 2024-11-06..11-08· [go, iot]
name:Esme Lamb
links:none on file
slides:none on file

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

  1. 0:00Introduction and setup
  2. 1:05Limitations of existing apps
  3. 2:11Introducing DISCO protocol
  4. 4:35Commander and command pipeline
  5. 9:50Building a web interface
  6. 13:06Color spaces and conversions
  7. 18:05XY color space challenges
  8. 21:54Gamut bounding explained
  9. 25:49Color scheme generation
  10. 29:20Conclusion and home setup
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.