![]() |
[HOWTO] Sync N900 and Google Calendars using Syncevolution
I recently bought a used N900 and I was unhappy with the state of syncing multiple google calendars to the N900. There is "Erminig-NG". However, it is still alpha-quality software and recently some users reported problems (possibly due to changes on the google side). So I started looking for alternatives..
Luckily, Syncevolution recently gained CalDAV/CardDAV support, which means we can use it to sync to google calendar without using a third-party SyncML server. The following howto describes how to setup syncing the default calendar and another calendar to google. BE WARNED: A mis-configuration may screw up your calendars and I will not take responsibility for this. Also: I have yet to figure out how to get Syncevolution to accept google's SSL certificate. For now, SSL certificate verification is disabled, which opens the doors to MITM attacks and synchronization should only be performed from trusted networks. Hopefully we will soon figure out how to get SSL working correctly. Prerequisites: Install syncevolution version 1.1.99.5-1 (earlier versions don't support CalDAV/CardDAV) A) Synchronizing the Default Calendar: This is really simple. On your N900 execute the following (as user, not root): Code:
syncevolution --configure \ Then perform the initial synchronization: Code:
syncevolution --sync slow default_google After that, you can perform incremental synchronizations using Code:
syncevolution default_google B) Synchronizing Other Calendars: This is somewhat more complicated to setup and I am sure there is a better way. Assume you have a calendar called "Test" on your N900 which you would like to sync to a google calendar (other than your default calendar on google). The following assumes that you have already setup synchronization of the default calendar, as described above. First, get the calendar ID by going to the google calendar settings page. The ID is where it says "Calendar Address:", next to the ICAL/XML/HTML buttons. Here we assume the ID is Code:
m8e82832ooj4vcdcdcsdcdaa@group.calendar.google.com Code:
syncevolution --configure \ Code:
cd ~/.config/syncevolution Code:
database = Test Disable SSL verfication by setting "SSLVerifyServer = 0" in ~/.config/syncevolution/test_google/peers/target-config/config.ini Then perform the initial synchronization: Code:
syncevolution --sync slow test_google Code:
syncevolution test_google As mentioned above, I still haven't figured out how to get the SSL certificate verification working. I tried downloading a ca-cert-bundle and setting SSLServerCertificates in the config.ini file, as described here, but for some reason it doesn't seem to work. |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
THANKS A LOT!
I have just noticed a few minutes ago that there was a new version of syncevolution (frontend only?) on extras-devel. I have updated it and re-sync'd my contacts (I only use it for that), and worked OK (I did not expect that, to say the truth :) For now I'll continue using erminig-NG for the calendar, but when I have some time to experiment I'll try syncevolution.. so thanks again for this HOWTO :) |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
I'm glad you like it :). Let me know if you have any problems or find out how to get SSL working correctly.
BTW: I just tested if repeating events work. I created an event that repeats weekly (for a specific number of occurrences ) and I see the event correctly on the N900 (including repetitions etc) and editing the event on the N900 works. On the other hand, I created an event on google that repeats twice per week on Wed and Fri at a specific time. The event shows up correctly on the N900 but when editing it is says something like "Complex repetition, unable to edit" (for the repetition pattern, other things can be edited). Deleting the event on the N900 correctly deleted all instances of it on google calendar. |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Hello.
Thanks a lot for this!! However, I'm trying to do this and i'm getting this error. Quote:
|
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Uhm, it seems the template name is wrong, try "Google_Calendar" (without quotes) instead of "google-calendar" in the command line.
|
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Hmmm, thanks but still:
Quote:
|
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Try this (all in a row) substituting your real username and password instead of "X"
Code:
syncevolution --configure --template Google_Calendar username=X password=X target-config@default_google |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
This seemed to work!
Excuse me, as I did not understand that the \ meant line break not to be included in the code (facepalm). Ok. Now, the N900 calendar didn't get test events I created on google calendar's web client. I deleted all my calendars in N900 (except from N900 and Private, which can not be deleted) and repeated the sync refresh-client command, and now it works! Used the syncEvolution app to daily set syncs! Thanks a lot! PS: Anyidea for birthdays? I have them set as all day events in gCal, but wanted to know if there is a more stilish way. |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Well, my contribute stops here as I simply tried to solve shell errors but never used syncevolution, sorry!
The simplest way to get birthdays for me is setting the birth date of my contacts and they magically appear in my calendar :) Glad to be helpful :) Bye! |
Re: [HOWTO] Sync N900 and Google Calendars using Syncevolution
Haha, thank you very much for the help, nonetheless!
|
All times are GMT. The time now is 08:04. |
vBulletin® Version 3.8.8