In May 2014, I was involved in a World Cup-themed hackathon in São Paulo, Brazil. Between helping to organize the event and mentoring some of the teams, I played a little bit with Raspberry Pi and the Twitter Streaming API. My idea was to build a goal bell that would ring when the volume of Tweets around a specific goal grew very quickly. In order to do this, I had to connect to the Streaming API so as to calculate the frequency of Tweets mentioning “goal”, and create a device that would ring a bell when a spike in that frequency was detected.

I wrote a detailed blog post on Twitter Developer Relations Blog about it and, of course, you can find the source code on Github:

Read blog post Github

Spoiler alert: if you are curious about how I built the bell before reading the specifics, take a look at this Vine:

You might also like

Tweet Jukebox

A Tweet jukebox and Twitter bot built with Raspberry Pi, nodejs, Mopidy music server.

Cannonball Android App

Demo Android mobile app built to show what Twitter mobile platform provides. Open source code and tutorial available.

Punkt Segmenter

Ruby port of the NLTK Punkt sentence segmentation algorithm.