As I mentioned the other day I’m searching for some sync options. So when I saw Jon Udell’s post about uploading Mozilla Calendar events to Google Calendar I immediately started wondering about doing the same thing for an S60 phone using Pyhon. So I put together a sample script for pushing events out of the native calendar on a Nokia phone to Google Calendar. My little sample just does the events for the current day, but I’m sure anyone interested in hacking on it will get the idea pretty quick.
The Nokia version of Python only has the original httplib. There’s a version of httplib2 that includes the Google Authentication handling. It’s possible I could have taken the httplib2 library and just put it on my phone, it looks like it’s all pure Python. However I’m not much of a python pro, so I just handled the authentication and redirection stuff. It’s actually pretty simple, so no pain. It would be interesting in general to see if httplib2 works on the phone though… maybe another time.