This projects evaluates the data gathered by the light sensor in our office and punches them into a card. The intention behind this is to give folks, who want to visit us in our office, a recommendation on how likely it is that somebody will be there, since we don't have strict office hours. These statistics pose as an addition to the Buerostatus project, which gathers the data and gives live feedback on our website.
Since this project uses the Punchcard module from fogleman (unfortunately a Python 2 project), you will need py2cairo, pango and pygtk. On OS X, those can be installed using Homebrew:
$ brew install py2cairo pango pygtk
Additionally, you can install the required pip modules, using:
$ pip install -r requirements.txt
To render the punchcard correctly, the Exo font needs to be installed on your system.
Render the image by running:
$ python buerostats.py [output path] [bin size]
This will generate a punchcard.png file inside the repository as output with hourly binning.
Optionally, you can define a custom output path as argument and a custom bin size in minutes which must be a factor of 60 and larger than 1, otherwise the output file would be too large.
Don't hesitate to open an Issue if you found something that bothers you!