CheerLights is an Internet of Things (IoT) project where lights around the world are synchronized to one color. Anyone sets that color on the CheerLights Discord or with a post on Bluesky, and every CheerLights light changes to match, usually within a second or two. CheerLights works as a “Hello, World” project for learning IoT: the skills it teaches (reading a feed, subscribing to MQTT, and setting LEDs from data) carry over to any IoT or electronics project you build next.
What Is CheerLights?
CheerLights is a free IoT project for beginners and makers: a global network of lights that all show the same color, and anyone can change that color. Hans Scharler started it in 2011; The CheerLights Origin Story tells how. Reading the color is free and needs no account or key, so any light, screen, or program that can load a web address or subscribe to MQTT can follow it.
How the System Works
The CheerLights service listens for colors on Discord and Bluesky. When someone sets one of the eleven colors, the service updates the ThingSpeak and Adafruit IO IoT platforms and the CheerLights MQTT broker. Devices and apps read or subscribe to any of them and display the latest color.

How Do I Change the Color?
Change the color with the /cheerlights command on the CheerLights Discord, or with a Bluesky post that has #cheerlights and a color in it. Every CheerLights light changes, yours included. Change the CheerLights Color has examples of messages that work.
Discord
Join the CheerLights Discord server and use the CheerLights bot. In any channel on the server, type “/cheerlights” and press Enter, choose Set Color, and pick a color. Each person can set a new color once every 30 seconds.
Bluesky
Write a post with #cheerlights in it, mention @cheerlights.bsky.social, or use the word cheerlights, and name a color: #cheerlights red. A reply to a post from @cheerlights.bsky.social that is only a color, like red, counts too. Name several colors and they play in the order you wrote them. Each person can change the color once every 30 seconds. CheerLights on Bluesky has the details.
Can I Still Tweet a Color?
No. Tweets to @CheerLights stopped changing the color in 2023, when CheerLights lost access to the Twitter API, and posts on X do not change it either. Set the color on Discord or Bluesky instead. Many older tutorials, on this site and elsewhere, still say to tweet a color. If a tutorial reads the color from ThingSpeak channel 1417, that part still works.
Discord and Bluesky are the main ways to set the color. Bots on Mastodon and Telegram can set the color too, but they are not always running. There is no public API for setting the color. The Discord invite link is cheerlights.com/discord.
What Is the CheerLights API?
The CheerLights API is the set of public feeds that carry the current color: ThingSpeak channel 1417, the cheerlights feeds on Adafruit IO, and the CheerLights MQTT broker. All of them carry the same color at the same time. Reading over HTTP or from the CheerLights MQTT broker needs no account or key; the ThingSpeak and Adafruit IO MQTT brokers need a login to their own service. The color comes in two forms, a name such as red and a HEX value such as #ff0000. To get it from the command line, type:
curl https://api.thingspeak.com/channels/1417/feeds/last.json
The response has the color name in field1 and the HEX value in field2:
{"created_at":"2026-11-28T01:43:19Z","entry_id":1068257,"field1":"magenta","field2":"#ff00ff"}
ThingSpeak Channel
The CheerLights ThingSpeak Channel gets each new CheerLights color. Use the ThingSpeak Channel API to read it over HTTP or MQTT. CheerLights uses channel 1417 and stores the color name in field1 and the HEX color value in field2.
CheerLights Last Color Name
- https://api.thingspeak.com/channels/1417/field/1/last.json
- https://api.thingspeak.com/channels/1417/field/1/last.xml
- https://api.thingspeak.com/channels/1417/field/1/last.txt
CheerLights Last HEX Color Value
- https://api.thingspeak.com/channels/1417/field/2/last.json
- https://api.thingspeak.com/channels/1417/field/2/last.xml
- https://api.thingspeak.com/channels/1417/field/2/last.txt
Full CheerLights Feed
Each entry is one color change with its time, the name in field1 and the HEX value in field2. Add ?results=N for up to 8000 entries.
- https://api.thingspeak.com/channels/1417/feed.json
- https://api.thingspeak.com/channels/1417/feed.xml
Adafruit IO
CheerLights has two public data feeds on Adafruit IO under the username cheerlights: the color feed and the hex feed. Read the latest color on the web, over HTTP, or over MQTT, as the Adafruit IO documentation describes.
- Web:
- HTTP:
- MQTT, with your Adafruit IO username and key:
- cheerlights/feeds/color
- cheerlights/feeds/hex
AI Assistants
The CheerLights MCP server gives Claude and other AI assistants the current color, the color history, and color statistics. It reads the color; it cannot set it. To give any AI agent the whole CheerLights API in one file, point it at cheerlights.com/llms.txt.
Is There an MQTT Feed?
Yes. Subscribe to the CheerLights MQTT broker at mqtt.cheerlights.com, port 1883, with no username or password, and your device gets each new color the moment someone sets it, without polling (asking for updates over and over). Each topic holds a retained message, so a new subscriber gets the current color as soon as it connects.
- Broker Address and Port: mqtt.cheerlights.com:1883
- MQTT over WebSocket: mqtt.cheerlights.com, port 9001 (ws://, without TLS)
- Topics:
- color: the color name, for example red
- colour: the color name, same as color
- hex: the HEX color value, for example #ff0000
- wled/col: the HEX color value, for WLED devices
- wled/color/set: the HEX color value, for WLED devices
- cheerlights: the color name (the original topic, still published)
- cheerlightsRGB: the HEX color value (the original topic, still published)
To keep several lights in step with MQTT, read Keep Multiple CheerLights in Sync with MQTT.
Which Colors Are There?
CheerLights has eleven colors, and the color is always one of them. The feeds send each HEX value in lowercase, as listed here.
- red (#ff0000)
- green (#008000)
- blue (#0000ff)
- cyan (#00ffff)
- white (#ffffff)
- oldlace (#fdf5e6)
- purple (#800080)
- magenta (#ff00ff)
- yellow (#ffff00)
- orange (#ffa500)
- pink (#ffc0cb)
How Do I Build an IoT Project with CheerLights?
Connect a board, app, or script to one of the feeds above, read the color, and set your LEDs or screen to match. The fastest start is Build Your First CheerLights Light with WLED: an ESP32 board and an LED strip, with no code to write. Pick a guide for what you have:
- WLED, no code: Build Your First CheerLights Light with WLED takes an ESP32 board and an LED strip from the box to the CheerLights color. CheerLights + WLED has the MQTT settings on one page, and Flash WLED on an ESP32-C3 and Sync It to CheerLights covers flashing with esptool.
- An ESP32 board: the CheerLights ESP32 firmware installs from the browser and follows the color over Wi-Fi or Bluetooth. To write your own sketch, use the Arduino library below; it runs on ESP32.
- A Raspberry Pi Pico W: CheerLights + Raspberry Pi Pico W + MicroPython sets up Thonny and Wi-Fi and lights a Pimoroni Galactic Unicorn in the current color. For Halloween, Make Your Own CheerLights Display for Halloween uses Pimoroni’s Wireless Plasma Kit.
- An Arduino board: the Arduino Library for CheerLights installs from the Library Manager and works on ESP32, ESP8266, and Wi-Fi Arduino boards such as the Uno R4 WiFi and MKR WiFi 1010. Call
CheerLights.getCurrentColor()and set your LEDs. - Python: the Official Python Package for the CheerLights API (
cheerlights-apion PyPI) reads the current color, its HEX value, and the history. - MATLAB: Use MATLAB to Read the Latest CheerLights Color from ThingSpeak does it in two lines with
webread. The CheerLights MATLAB package adds the history, the palette, and a watcher. - Home Assistant: CheerLights for Home Assistant adds the color as a sensor and a Follow switch, so the lights you already have change with CheerLights.
- A web page: CheerLights JavaScript Widgets embed the live color (snow, aurora, a clock, the logo) on a website, a WordPress blog, or a Home Assistant dashboard.
- A terminal: CheerLights Terminal 0.2 follows the color live over MQTT on Windows, macOS, or Linux.
- An AI assistant: the CheerLights MCP Server 2.0 lets Claude and other assistants read the color, its history, and statistics. Point an agent at cheerlights.com/llms.txt for the whole API in one file.
- An Elgato Stream Deck: the CheerLights Stream Deck plugin shows and animates the current color on a key.
Every guide and more community projects are on Build a CheerLights Display. When your light works, set a color on the CheerLights Discord and watch it change.


