NGINX Webcam server
When you tweet with the #shocksi hashtag our server immediately saves the tweet and adds you to a shock queue using ntwitter for Node.js. You can wait to watch the shock
live on our camera feed, or our bot will tweet you with the photo as soon as it happens!
The Node.js server is our mothership. Using the socket.io library allowed us to
The Forever monitor keeps our application on it’s legs at all times
Being a real time application we could not accept any live video delay over 1 second. All of the out of the box solutions failed to deliver that so we rolled our own.
After experimenting with more techniques than we'd like to admit, we finally settled on utilising the
NGINX RTMP module to receive an RTMP stream from ffmpeg running on the Raspberry Pi
Raspberry Pi - Dealer of Pain
This incredible little machine listens for commands sent from our Node.js server and using
the GPIO pins we are able to send a signal to shock one of the team at random!
To deliver the electric shock we pulled apart cheap
shock prank toys
and created our own circuit to deliver a shock to tin foil our hands are resting on.