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.
Chris Dennis has put CheerLights in his kitchen: an RGB LED strip along the shelf above the cupboards that shows the current CheerLights color. Anyone can set it with a tweet that includes “cheerlights” and a color name.

The brain is an ESP8266 on a NodeMCU board, plugged into a Lolin base that takes one 12V supply for both the board and the strip. The strip is a plain RGB one, not NeoPixels, so Chris built a small interface board with three IRL520N MOSFETs, one per color, driven by PWM signals from the ESP8266. It all sits in a cardboard box, held in place with Blu-Tack. The software is his own, written in Lua for the NodeMCU firmware. It gets colors two ways, from a public CheerLights MQTT feed on iot.eclipse.org and from the ThingSpeak API, because the MQTT feed seemed unreliable at one stage. When no new color comes in for a while, the strip drifts through random hues. The code also corrects the colors, since full red plus full green on a cheap RGB strip gives “a nasty shade of yellow-green.” CheerLights has lit a kitchen before, over MQTT in 2014.
‘Installation’ is probably too strong a word. I just stuck the LED strip along the shelf above the kitchen cupboards, tucked the hardware in amongst the crockery, and plugged the power supply into the socket that usually powers the extractor fan.
Chris Dennis, on his blog
Read the full write-up, with the circuit and a Fritzing file, on his blog, and get the Lua code on GitHub.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

