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:
Spoiler alert: if you are curious about how I built the bell before reading the specifics, take a look at this Vine: