Skip to content
  • Live
  • Blog
  • Shop
  • Contact
  • About
  • Instagram
  • YouTube
  • Twitch
  • GitHub
CheerLights

CheerLights

We are all connected.

  • Learn
  • Build
  • Connect
  • Toggle search form

Updates to the CheerLights System: Node-RED and MQTT

Posted on December 15, 2021December 16, 2021 By Hans Scharler 1 Comment on Updates to the CheerLights System: Node-RED and MQTT

Andy Stanford-Clark and I updated the backend systems that make CheerLights work. We now process the incoming CheerLights tweets with Node-RED and update three IoT platforms using MQTT. This new system allows for different ways to get access to the latest CheerLights color and to build your display or application.

Node-RED Flow for CheerLights

Node-RED is a graphical programming tool for wiring together hardware devices, APIs, and online services. The CheerLights flow passes text from tweets that contain either “#CheerLights” or “@CheerLights” and looks for color names. When there are matches, the flow sends the colors to our supported IoT platforms. Node-RED is helping people of all skills build new applications and take advantage of event-based applications with no-code and low-code.

And, while we were at it, we made some other fixes and updates:

CheerLights now supports long tweets. Twitter used to support 140 characters and over the years, they expanded to 280 characters. CheerLights was still processing the first 140 characters. We would miss color mentions in long tweets. We now have that fixed, thanks to an assist by Andy Piper, a developer advocate at Twitter. We can now catch “red” at the very end of this long tweet.

Today is a brilliant day in the history of #CheerLights – I will be posting about this on the https://t.co/VEYdgYLnQg blog, but @andysc and @scharler have moved CheerLights to 100% MQTT – Updating the CheerLights MQTT server, @adafruit , and @thingspeak #iot! And, of course, #red pic.twitter.com/FEbvYRK3mK

— CheerLights (@cheerlights) December 15, 2021

CheerLights handles multiple colors mentioned in the tweet. You can mention multiple colors in one tweet. We take each color send them along and add a short delay in between. This is a good reason to use MQTT for your CheerLights display. Your lights will change as the colors get processed instead of having your lights continually ask for the latest color. Check out the latest CheerLights API documentation for how to subscribe to CheerLights color using MQTT.

Fun Fact: RGB stands for red, green, and blue. You can send all of those colors to @cheerlights.

— Hans Scharler (@scharler) December 15, 2021

Learn more about CheerLights: Build, API, and News.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Reddit (Opens in new window) Reddit
  • More
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Related

News Tags:mqtt, Node-RED, Twitter

Post navigation

Previous Post: The CheerLights Origin Story: Arduino, IoT, Twitter, and Community
Next Post: Light Up Your Sports Posters With CheerLights

Related Posts

CheerLights now supports MQTT! News
Every Hardware Store Sells Candy Canes: Make Giant CheerLights Displays With PVC Pipes and Fittings Projects
Light Up Your Sports Posters With CheerLights Projects

Comment (1) on “Updates to the CheerLights System: Node-RED and MQTT”

  1. Pingback: Updates to the CheerLights IoT Project: Node-RED, JavaScript, Twitch, and Discord – Thinking About Things

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Arduino Library for CheerLights
  • Offical Python Package for the CheerLights API
  • CheerLights JavaScript Widgets
  • Learn How to Make a CheerLights Tree Topper
  • Christmas in July with CheerLights

Copyright © 2025 CheerLights.

Powered by PressBook Grid Blogs theme

 

Loading Comments...