Saturday 30 October 2010

Calendars

I've recently started work at a new company and it has become apparent to me how dependant I had become on the Outlook calendar (sync'd with my iPhone) that I had at my old company.

The new company is a small start up and we don't have luxuries like Microsoft Exchange (and probably don't want them either), but it has left me with a problem over the last month due to the lack of a calendar.  I had some (very simple - I thought) requirements:

  • I need to be able to have separate work and home calendars

  • I need to be able to access (read and write) on my iPhone

  • I need to be able to access (read and write) on my iPad

  • I need it to integrate (read and write) into a Windows mail program

  • I need it to integrate (read and write) into a Linux mail program

  • I need to be able to access (read and write) the calendar online

  • I don't want to pay anything


I have spent a lot of time searching online and couldn't find a solution that met all of my requirements.  But today I have (almost) found one.  Given the number of people who seem to have the same issue I thought it probably worth sharing.

The Calendar

I had hoped to use my MobileMe calendar.  It supports creating multiple calendars and it works well with my iPhone and iPad.  Unfortunately, using this under Windows and Linux with up-to-date, free, software proved a non-starter.  For example, MobileMe does have a CalDav server but the only (up-to-date and free) Windows and Linux mail software I can find with CalDav support is Thunderbird with the Lightning plugin.  Unfortunately for me, that plugin doesn't seem to want to do authentication with MobileMe.

Google Calendar came to my rescue.  Here is what I did:

  1. I created a Google account for my work email address and set-up a "work" calendar and set the week start, event display, and notification preferences to suit my tastes

  2. I created a Google account for my home email address and set-up a "home" calendar and set the week start, event display, and notification preferences to suit my tastes

  3. I then gave my work Google account full access to my "home" calendar and vice-versa

  4. I also added the "UK Holidays" calendar to both

  5. I set the calendar colours for the three calendars so as not to clash


I suppose the main questions people might ask about the above are:

  • Why not just create two calendars on one google account?

  • Why not just create two calendars associated with your Gmail account?


Well, I want calendar emails relating to my "work" calendar to go to my work email address and emails relating to my "home" calendar to my home email address.  I did try creating two calendars on one account, but the calendar emails only went to the primary email address for the account.  Google is even clever enough to work out that both accounts belong to the same person so both calendars appear together in the "My calendars" section of the display ("UK Holidays" remains, correctly, in the "Other calendars" section).

The Linux and Windows Software

Once I had selected Google Calendar this part was easy.  I installed Mozilla Thunderbird, the Lightning calendar extension, and the Provider for Google Calendar extension.

I then set-up Thunderbird to handle my email, and "work" and "home" calendars.  Thunderbird is available for both Linux and Windows.  I even added in the "UK holidays" calendar and adjusted the colours to give myself a consistent view between Thunderbird and the Google Calendar website.

iPhone

[update 31/10/2010: I found an alternative (and possibly better) way to sync the calendars on my iPhone.  See the comments below.]

I already have email working on my iPhone so all I had to do was get both calendars on there.  My first instinct was to add them as Gmail accounts as, if you are using Gmail for email, you can also sync with a Google Calendar.  This does not work.  When you add a Gmail account is tries to log into Gmail with IMAP and this failed because my home and work Google accounts do not have Gmail enabled.

Luckily (again) there is an alternative.  You can configure the iPhone to use Google Mobile Sync.  This involves creating a Microsoft Exchange (this is no joke) account for each calendar.  Use the email address and password you use to log into Google for authentication, when given the chance to specify a server use "m.google.com", and make sure that when you choose which services to use (calendar, contacts, and mail) you just choose calendar.

I also subscribed to the iCal version of Google's "UK Holidays" calendar.

iPad

[update 31/10/2010: I found an alternative (and possibly better) way to sync the calendars on my iPad.  See the comments below.]

This is the (almost) bit.  In theory this is set-up in exactly the same way as the iPhone.  In practice my iPhone is running iOS 4.1 but my iPad is running iOS 3.2.2.  The difference here is that iOS 4.x lets you have more than one Microsoft Exchange account, but iOS 3.x does not.   All I can say is roll-on iOS 4.2 (due sometime in the next month) and I will be able to meet all of the requirements I specified above.

In the meantime I need to decide which calendar I want to view on my iPad.

4 comments:

  1. Oh, one thing worth noting. When adding entering the Google Calendar URLs into Thunderbird I changed "http" to "https". I did the same thing when subscribing to "UK Holidays". No point in throwing around all that personal information unencrypted if you can avoid it.

    ReplyDelete
  2. Surely Google Calendar has a web view? Can't you use that on the iPad as a stop-gap?

    ReplyDelete
  3. I could, but then I'll only be able to view it when I have Internet connectivity.

    ReplyDelete
  4. I found another (better) option for iPhone and iPad sync is to use CalDav. Set the server in the calendar options to google.com then go to http://www.google.com/calendar/iphoneselect in Safari and select all of the calendars you want to access.

    This allows you to access both calendars with only one account and even pulls the colours chosen for the calendars in the Google web interface into the iPhone and iPad.

    ReplyDelete