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.
Cameron Steel, who goes by Tugzrida on GitHub, has released Super Pi Cheerlights, the software behind the lights on his deck in Sydney, Australia. He first built it in 2015 on an Arduino Yún, then rewrote it for the Raspberry Pi in 2016.

About 7.5 meters of 12 V RGB LED tape runs along the railing, the plain kind that shows one color along its whole length. The Pi can’t power the tape directly, so three TIP31 transistors boost its PWM signals, much like the three MOSFETs behind this CheerLights bookshelf. A Python program checks the CheerLights API on ThingSpeak every few seconds and crossfades the tape to the latest color tweeted to #cheerlights. It’s also a sunset timer. Each day it loads sunset times from the sunrise-sunset.org API, fades the tape up between sunset and the end of civil twilight, then switches on warm white fairy lights through a PowerSwitch Tail. In Sydney that fade takes 25 to 30 minutes, and the README explains what to do if you live too far north or south to have a sunset every day. A web page served from the Pi lets him choose CheerLights on the sunset timer, CheerLights all the time, or a color he picks. Everything lives in a plastic box under the deck, with a Powerline adapter for the network because his Wi-Fi is flaky outside.
I decided to re-write the whole thing last year (2016) for the Raspberry Pi and meant to release it in time for last Christmas but I kept adding more and more features!
Cameron Steel, in the project README
The code, parts list, and wiring diagram are on GitHub.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

