edwardsh.in

Basic HUD Info Program using Python and Clutter

27 February 2013

Clock Screenshot

I made a simple program in Python to show the date, time, and the next upcoming calendar event from my Google Calendar. This will be the program which runs on my Raspberry Pi HUD. The GUI was built using Clutter. I generated the Python bindings for Clutter using GObject Introspection.

To read the calendar event data, I used the private XML data feed for my calendar (which can be found in the calendar settings), and parsed it with elementtree. To get the XML feed to show recurring events and dates, I had to change the “basic” parameter at the end of the HTML request to “full?futureevents=true”.

The next version of the program will most likely use Google Apps API and the corresponding Python client library to let me hook into other Google services, such as tasks and Gmail.

The code can be found on the GitHub repo.