Monday, August 07, 2006

Add Outlook/vCalendar Entries to Google Calendar

I use Thunderbird for email which means I'm left w/o a decent calendar option. I looked into adding vCalendar (.vcs) file entries to Google Calendar w/o success. So I wrote some html and Perl to do it for me.

There's a few steps back and forth btwn your server and Google to get authorization and such. The Perl (source below) takes care of that. It takes the input from the html including your Google id/pw and the vCalendar text and hits Google calendar for you. If it's successful, it then redirects you to the calendar.

You'll have to update the html w/ the right url for wherever you put the Perl (gcal.pl) and you might have to update gcal.pl w/ your Perl location (first line).

Source code

Known uglies:

  • Date/Time handling: it's limited and ugly. If you help it, please post here.
  • Attendees: I didn't see a way in the Google API to add them.


Helpful Links:
http://code.google.com/apis/gdata/calendar.html#add_event

http://curl.haxx.se/mail/lib-2005-07/0101.html

http://relationalspace.org/gcaladd.html

http://www.stonehenge.com/merlyn/WebTechniques/col63.html

1 comment:

Alexis said...

Was the day when I noticed a fault in my MS Outlook, I luckily solved out it due to an one utility, which had stored a soft forum. It made me happy and probably would do the same if solve this problem - pst download repair.