Author Topic: I used an ESP8266 and a VPS to approximate the mood of the earth in color!  (Read 1906 times)

0 Members and 1 Guest are viewing this topic.

Offline connornishijimaTopic starter

  • Newbie
  • Posts: 4
  • Country: us
My name is Connor Nishijima, and I've been tracking the approximate mood of the online world since August 11th this year and displaying in color data on my desk. How is this possible? Some Twitter, some Python, and a bit of electronics magic!

Here is a video:






Thanks to awesome developments in the tech world this last year, I'm able to use a $5 VPS to read 2,600,000 tweets a day, search for hundreds of keywords in 5 languages, and detect levels of 6 emotions:

Love (Pink), Joy (Yellow), Surprise (Purple), Anger (Red), Sadness (Blue) and Fear (Green).

The word counts found for each emotion are totaled up every minute, and the most recent data is compared to a Weighted Moving Average of the last 2 hours, to produce a percentage value. For example:

If for two hours about 1,200 tweets per minute about Love came in, but the most recent minute saw a spike of 2,400 t/min, the estimation for Love would be at 200%.

These emotional levels are then squished into 25-byte summaries and made available in plaintext via Apache2 on the VPS. Every few moments, an ESP8266 WiFi microcontroller requests this data, and parses it into a twisting color light show, thanks to the awesome 9x WS2812B leds inside. (NeoPixels as you might know them) I call this device a "moodLight". So if enough tweets like this came in:

“I am so proud of my son for getting his degree! I’m going to miss him at home.”

"Proud" and "miss him" would result in a bittersweet twist of Joy and Sadness in the moodLight. This system can be used to keep tabs on the summarized emotion of the online world, so if it fluctuates with some sour colors all the sudden - you'll know to check the news before it's even written.

Because of the wide interest shown on Reddit for my prototype, I launched a Kickstarter yesterday so people could get their OWN moodLight as well! It overfunded in just 17 hours. If you would like more information about the lamp, or to get one yourself, please visit my Kickstarter using the KickTraq image below.



MoodLighting emotional analytics available HERE and HERE!

- Connor
 

Offline JoeB83

  • Regular Contributor
  • *
  • Posts: 152
  • Country: us
  • Longmont, CO
Neat idea.
 

Offline connornishijimaTopic starter

  • Newbie
  • Posts: 4
  • Country: us
Thanks! I never thought it would have such a quick reactions from the maker community!
 

Offline bitshift

  • Regular Contributor
  • *
  • Posts: 155
  • Country: za
  • Too much to learn, too little time
That's really cool! How did you gain access to tweets?
"It’s all fun and games until an innocent opamp gets hurt!" - Dave Jones
 

Offline connornishijimaTopic starter

  • Newbie
  • Posts: 4
  • Country: us
Sorry for the late reply! I run two DigitalOcean VPS boxes that connect to the Twitter Streaming API with an Oath token. They then summarize the data into little bytes the esp8266 can digest! ;) Most of the details can be found in my FAQ:

http://moodlighting.co/frequently-asked-questions/
 

Offline bitshift

  • Regular Contributor
  • *
  • Posts: 155
  • Country: za
  • Too much to learn, too little time
Awesome! All the best with your project :)
"It’s all fun and games until an innocent opamp gets hurt!" - Dave Jones
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf