This was a quick project I put together for RobotConf 2013 using a Spark Core device. It uses the Real Time Google Analytics API to send data to your Spark device which will then turn a Servo from 0 to 180 degrees to represent the number of people on your website.
It relies on a running Node.JS server to communicate between Google Analytics and the Spark Device. You can get free and paid hosting on the App Fog, Heroku, or Joyent.
- Spark Core Device
- Servo (Any kind should do)
- Jumper Wires
- Breadboard
Its up to you to create a cooler box than the laser engraved one I got made at RobotsConf by some awesome laser cutting tool. All you need to do is get the Servo turning and you can do whatever you want as far as design goes.
git clone https://github.com/jamescharlesworth/gatrafficbox
cd gatrafficbox
node app
Most PAAS have good CLI tools to deploy code, so checkout their doc, its a bit beyond this app.
sudo gem install af
af login
ap update <name>