Global Constant
Steve Nay's ramblings

Using Google Calendar data in a Kynetx app

This is the first in a series of three posts about this app. The other pages are here and here.

Sam Curren wrote today about a Google Calendar module he has created for KRL. It’s pretty awesome; go check it out.

The only thing it does right now is check whether we are currently in a block of time on the calendar with a given name. Sam used that to modify the Kynetx phone system whenever office hours are running. I publish my CS 462 TA office hours to a Google Calendar and wanted to do something with that data as well.

The first round of this app does some simple web augmentation on the CS 462 wiki. Whenever I’m in for my office hours, it add this line to the top of the wiki:

All the app does is use Sam’s module with my own Google Calendar and then run a prepend() on the wiki when an “Office hours” event is currently happening. Here’s the code:

I’d like to make some improvements in the future to use Twilio (something I need to learn for later in the course). Perhaps other things, too. Leave suggestions in the comments!

EDIT: I used site tags to place this on the class wiki. If you go there right now, you’ll see my office hours status!

Later article
My LinkedIn InMap