19 ms·
I wrote a small script, executed with a cron job, which adjusts the color temperature of all my Philips Hue light bulbs throughout the day. The Hue device brid
by jffry 5y ago
I wrote a small script, executed with a cron job, which adjusts the color temperature of all my Philips Hue light bulbs throughout the day.
The Hue device bridges have a simple HTTP api available over the local network, and with a combination of curl and jq it was easy to retrieve the IDs of lights that are currently on, and then set their color temperature.
I've since moved the functionality into a small service I wrote in Clojure that runs on a Raspberry Pi, as part of an effort to consolidate a few different things under one roof.