I used an ESP8266 and a VPS to approximate the mood of the earth in color! - Page 1
Forum section: electronics / projects

author: connornishijima
author_rank: Newbie
timestamp: October 06, 2015, 06:50:18 pm
content: 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 availableHEREandHERE!- Connor

author: JoeB83
author_rank: Regular Contributor
timestamp: October 06, 2015, 09:52:34 pm
content: Neat idea.

author: connornishijima
author_rank: Newbie
timestamp: October 06, 2015, 10:19:30 pm
content: Thanks! I never thought it would have such a quick reactions from the maker community!

author: bitshift
author_rank: Regular Contributor
timestamp: October 07, 2015, 10:02:42 am
content: That's really cool! How did you gain access to tweets?

author: connornishijima
author_rank: Newbie
timestamp: October 08, 2015, 02:24:55 am
content: 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/

author: bitshift
author_rank: Regular Contributor
timestamp: October 12, 2015, 07:57:42 am
content: Awesome! All the best with your project