CheerLights is an Internet of Things project, started by Hans Scharler in 2011, that lets lights all over the world share one color. Anyone can change the color, and every connected light follows.
This repository holds the original CheerLights examples, from 2011 to 2016. The current code lives in the CheerLights organization on GitHub: the firmware for ESP32 lights, the libraries for Python, Rust, Arduino, MATLAB, Perl, and JavaScript, the Home Assistant integration, and more.
Type /cheerlights on the CheerLights Discord and pick a color, or post on Bluesky with #cheerlights and a color.
When CheerLights started, the color was set on Twitter; tweets no longer change it.
The Learn page lists every feed, including the ThingSpeak channel these examples read (channel 1417) and the MQTT broker at mqtt.cheerlights.com.
| Folder | What it is |
|---|---|
GE-35_Lights |
Arduino sketches for GE Color Effects (G-35) holiday lights, by Ethernet, a Digi ConnectPort, or an ioBridge module. |
FastLED |
An Arduino Ethernet sketch that colors a LED strip with the FastLED library. |
RGB_LED |
An Arduino with an RGB LED, fed by an ioBridge Iota. |
Infrared |
A Particle Photon that sends the color to infrared-controlled lights. |
MATLAB |
Reading the latest color from the ThingSpeak channel in MATLAB. |
Digital |
A script for an object in Second Life. |
They read http://api.thingspeak.com/channels/1417/field/1/last.txt and still show how CheerLights began, but some of the hardware and services they use are gone.
For a new light, start from the install page, which puts the CheerLights firmware on an ESP32 from the browser.