Post on 16-Apr-2017
transcript
Adventures with Raspberry Pi
and Twitter API
Luis Cipriani @lfcipriani
Streaming API
Goal detector
Goal!
aaaaahhh!
time
TPS: tweets per second
{
1 second
Tweets with “gol”, “gool”, “goool”, "golaço"
\o/ Gooal! \o/
1st half Game Brazil vs Serbia (6 days before World Cup)
cancelled goal (╯°□°)╯︵ ┻━┻wrong power supply
GOAL!
no way!
Pulse-Width Modulation (PWM)
Tor!
O.o
One more thing…
R.I.P.earthquakes
incidentsTV events
game eventsprotests
goals…}IN
bellspiezoLEDs
panelstweetsmotors
cameras…{OUT
Tweet Jukebox
+---------------------------------+ | | Tweet | Raspberry Pi | (music request) | | + | +-----------+ +----------+ | \o/ Music powered by: | | | Twitter | +--> | Mopidy | | Spotify +--------------> Streaming | | Server +------------> Youtube network | | API | <--+ | | | audio Soundcloud | +-----------+ +----------+ | | | +---------------------------------+
Tweet “@TocaPraMim [song name]“
Luis Cipriani @lfcipriani
github.com/lfcipriani/tilingol github.com/lfcipriani/tweet-jukebox
bit.ly/detectgoals
www.mopidy.com t.co/streaming
Thanks! Questions?