Skip navigation

On the everlasting quest for entertaining content for my RGB LED matrix, i stumbled upon twitter. an endless stream of information that “just” needs to be parsed and turned into light. starting off with something simple, i decided to extract people’s favorite colors. i found a nice article on using the twitter search API in python and used it as a base for my script.

screen1

here’s what it does: first, it searches for the string “my favorite color” and in practice finds around .1-5 tweets a minute like (totally random samples shown)

my initial plan was to use the wikipedia list of colors as a lookup table, when i realized that people are commonly not very creative when choosing their fav color: it’s mostly one of about 10 different colors. so i compiled my own small lookup table from my experiences of staring at tweets:

colorlist = ["grey","lime","white","violet","yellow"...

the script simply cleans up the tweet, removes any strange character like "#" and compares every word of the tweet with my lookup table. the first color string in the tweet wins.
after that, the string is converted into predefined RGB values and weighted with the tweet length to generate some more diversity. the longer the tweet, the brighter the color.
that's basically it. now every time somebody twitters his/her favorite color, a pixel is slowly fading in to the LED matrix, forming a color spiral in the end.

the result is a very relaxing effect that somehow connects my room to the internets out there in a very abstract way. there are color trends that change over the day and the stream of retweets forms longer traces in the same color. you get an idea of what's going on in the "favorite color" corner of the twitterverse without obtaining too much information. obviously you could generate a similar effect by choosing random colors and times. but if you look at the display and you know that if a pixel lights up, somebody in some place in the world initiated this by tweeting his/her favorite color and is totally unaware of this project, it feels awesome.

so go ahead and check out the project files to use twitter as a data input for your next project:

))) project files (((

spiral

blurry

About these ads

3 Comments

  1. Hi, awesome project. which linux distro/window manager are you using in the first picture? thanks

  2. Wow, this is a beautiful project, somehow the knowledge that this pattern is generated by people spread over the globe rather than a random number generator makes it seem much better :)


8 Trackbacks/Pingbacks

  1. By Visualize Twitter with an LED matrix on 01 Apr 2013 at 4:02 am

    [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  2. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  3. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  4. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to …Read More **PLEASE SHARE** source: [...]

  5. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  6. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  7. [...] your favorite color? Don’t tell us, Tweet it to [Sebastian's] favorite color Twitter display and you’ll be contributing to the artwork hanging on his [...]

  8. [...] uses his 10 by 10 RGB LED matrix to display Twitter users’ favorite colors in a spiral pattern, frequently updating with new blocks of color. Using the Twitter search API and [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: