The CheerLights color is now set on Discord and Bluesky. This post is from when anyone could tweet a color to CheerLights. Today, use the /cheerlights command on the CheerLights Discord, or post on Bluesky with #cheerlights and a color. Change the CheerLights Color has every way, and the Learn page has the current API.
Mark Lawson, who blogs as Tingenek, built a CheerLights light that reads Twitter itself. Apache Camel carries each #cheerlights tweet to a small Arduino over radio. Last Christmas he went virtual with a tree drawn in Processing. This year he built a physical one.

The light runs on a Ciseco RFµ328, which he calls “basically a tiny Arduino, but with an SRF radio,” driving an RGB LED. A Raspberry Pi with an SRF dongle sends it each color over the air. His first version was a Tcl script that polled the ThingSpeak API every 10 seconds. Polling could miss colors when Twitter was busy, and a tweet like “#cheerlights red blue green red” only ever showed its last color. So he went to Twitter directly and split the work into three Apache Camel routes. The first listens to the Twitter streaming API for #cheerlights. The second pulls every color name out of each tweet with a line of Groovy and queues them one at a time. The third turns each color into an RGB value and sends it to the dongle as a 12-character LLAP message. It sends at most one change a second, so “red green blue” plays as three colors instead of a flicker. Radio links go back to the first CheerLights season, when Noel used XBee radios for his lights.
It’s a simple idea, but very powerful when you think of the thousands of lights and gadgets, all changing colour simultaneously across the world in response to a tweet.
Mark Lawson, on his blog
All three Camel routes, with the Groovy that picks out the colors, are in his write-up.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

