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

CheerLights

We are all connected.

  • Learn
  • Build
  • Connect
  • Toggle search form

CheerLights API Updates – We Added HEX Color Values!

Posted on September 10, 2015September 28, 2022 By Hans Scharler 4 Comments on CheerLights API Updates – We Added HEX Color Values!

We received many requests last year to add support for HEX color values. HEX color values are supported all around the world and this CheerLights API update will help new people join the CheerLights project.

CheerLights uses channel number 1417 on ThingSpeak to store the colors that people Tweet. ThingSpeak supports up to 8 fields, so now we are using field2 to store the color’s HEX value. For example, oldlace and warmwhite get stored in field2 as #FDF5E6.

CheerLights Last HEX Color Value

  • http://api.thingspeak.com/channels/1417/field/2/last.json
  • http://api.thingspeak.com/channels/1417/field/2/last.xml
  • http://api.thingspeak.com/channels/1417/field/2/last.txt

We also support people tweeting the HEX colors. Just for fun…

.@cheerlights did you ever notice that HEX color values are like hashtags? #FDF5E6 #IoT

— Hans Scharler (@scharler) September 10, 2015

For more information, read the CheerLights API documentation.

Share this:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • More
  • Pinterest
  • LinkedIn
  • Email
  • Print

Related

News Tags:api, HEX, RGB, thingspeak

Post navigation

Previous Post: Getting Ready for a New Season of CheerLights…
Next Post: Analyzing CheerLights with MATLAB

Related Posts

Adafruit Feather HUZZAH CheerLights Project by Marc de Vinck Projects
Read Latest CheerLights Color into MATLAB for Analysis Projects
CheerLights JavaScript Client Library Released at GitHub News

Comments (4) on “CheerLights API Updates – We Added HEX Color Values!”

  1. Presence says:
    September 10, 2015 at 6:05 pm

    When tweeting a hex code, what word/name goes into the first field?

    Reply
    1. Hans Scharler says:
      September 10, 2015 at 6:40 pm

      It will be the color name, so #FF0000 will go to field2 and “red” will go to field1 as normal.

      Reply
  2. Fotonic says:
    January 31, 2016 at 10:44 pm

    If I tweet an hex code which doesn’t correspond to the hex of one of the standard colours, what happens? Will field1 get the name of the standard colour nearer to my hex code? Field2 will mantain the original posted hex code or will it also be ’rounded’ to the nearer standard?
    Thanks.

    Reply
    1. Hans Scharler says:
      September 28, 2022 at 3:29 pm

      Thanks for the cool ideas. Right now the API only supports the specific HEX values for the supported colors. I do like the idea of trying to intreupt the HEX code and find the closest color. Thanks!

      Reply

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.

  • Keep Multiple CheerLights in Sync with MQTT
  • CheerClock: A CheerLights Clock Powered by the Pimoroni Galactic Unicorn and Raspberry Pi Pico W
  • YouTube Live with Kevin McAleer: Making a CheerLights-connected Christmas Tree Bauble
  • CheerLights + Raspberry Pi Pico W + MicroPython
  • Learn Redis Streams with the CheerLights IoT Project

Copyright © 2023 CheerLights.

Powered by PressBook Grid Blogs theme