http://hackaday.com/2013/06/06/alarm-clock-uses-raspberry-pi-to-poll-google-calendar/#more-98696
Hey! This post was written a long time ago, but I'm leaving it up on the off-chance it may help someone. Proceed with caution. It may not be a good idea to blindly integrate this code or work into your project, but instead use it as a starting point.