Piwik-StatusBoard Bridge

An easily-customizable Piwik-StatusBoard bridge: GitHub Gist.

Wrote this Django views.py function to bridge my Piwik analytics system to my iPad StatusBoard. It generates a graph of the number of visits to each of my two sites over the past few days. The default is 10, but I actually found that 11 is a nice number. It should be fairly easy to adapt this code to display other piwik based data. It uses the Piwik Python API to communicate with Piwik and Python's own JSON library to process the input and generate the output.