This forum has been archived. All content is frozen. Please use KDE Discuss instead.

sync Korganizer with google calendar

Tags: None
(comma "," separated)
User avatar
.Mu
Registered Member
Posts
17
Karma
0
OS

sync Korganizer with google calendar

Sat Jul 17, 2010 10:28 am
is it possible? I read something about libgcal (I even installed it) but I can't see how it should be used.

Is there a kind soul who cares to explain in simple terms what should I do to sync my calendar with google calendar?

I'm running SC 4.5 RC2.
User avatar
onemystic
Registered Member
Posts
9
Karma
0
OS
In theory it should work like this:
1.Go to the system settings (configure desktop). Check your network settings. 2.Select connect directly to the internet. (Don't know why, there's a bug)
3.Go to personal information. Add akonadi resources for both contacts and the calendar. Make them the default/standard resource.
4. Open kontact and go to korganizer. If you do not have an akonadi resource under calendars, you can try to add a new calendar and edit the new calendar's resources. There is an akonadi choice if you have installed the google gcal file.
5. Check contacts and see if there is a googledata resource (provided you installed googledata). If not you can add a new addressbook for your google contacts.

In theory, it should work but it seems to be broken. I have not been able to add a google resource that shows up in korganizer although the akonadiconsole shows the google resources as active and working. So, it seems that 4.5 rc2 kdepim stuff is broken.
User avatar
.Mu
Registered Member
Posts
17
Karma
0
OS
thank you for your reply.

I tried, but this is too difficult for me, i'll try again when a more user friendly implementation will be available. For now I'll just sync manually the calendar every month or so.
User avatar
vbatts
Registered Member
Posts
102
Karma
0
OS
@.Mu after being frustrated with this as well, the closest thing i've found is to use GCALDaemon (http://gcaldaemon.sourceforge.net/) i set it up just as they've specified, because they have these paths hard coded in the scripts. It requires some custom hacking if you want to place it elsewhere.

The files require your gmail credentials, but there is password-encoder.sh, so that it is not in clear text, but since it's only my user accessing the scripts, i have modified the permissions accordingly.

Then i just set up a local user cron job (`crontab -e`)

Code: Select all
*/5 * * * * /usr/local/sbin/GCALDaemon/bin/sync-now.sh


and point korganizer to a local file, that is stored at /usr/local/sbin/GCALDaemon/google.ics


This route too takes a little fiddling to get set up, but once it's going, i haven't had to touch it again. I hope this helps.

Take care,
vb


vbatts, proud to be a member of KDE forums since 2008-Sep.

http://hashbangbash.com/
User avatar
onemystic
Registered Member
Posts
9
Karma
0
OS
I downloaded and installed the GCALDaemon and it works great. I added the calendar in Kontact as a backup to the akonadi-gcal resource, which is working in the last kde 4.5 pre-release. Thanks for sharing. It is worth the effort, especially for anyone running the factory release 'cause sometimes things break.
LinuxDave
Registered Member
Posts
9
Karma
0
So I have it working, mostly, new events end up going through either way, but the one major problem I have is that recurring/repeating events do not work. If I mark an event as repeating in korganizer/kontact it does nothing on the google side, if I mark it repeating on the google side, it disappears from korg/kontact never to be seen again. Is this something that isn't implemented just yet? Or something broken? I can file a bug report if it's broken, but this makes the googledata module pretty much unusable for calendaring as the majority of my calendar is repeating/recurring.
User avatar
vbatts
Registered Member
Posts
102
Karma
0
OS
@linuxdave I have the same issue. If a recurring event is created in korganizer, gcaldaemon does not pull it up. But I have found that if I create the event on calendar.google.com, then gcaldaemon will populate my *.ics file with those events.


vbatts, proud to be a member of KDE forums since 2008-Sep.

http://hashbangbash.com/
LinuxDave
Registered Member
Posts
9
Karma
0
vbatts wrote:@linuxdave I have the same issue. If a recurring event is created in korganizer, gcaldaemon does not pull it up. But I have found that if I create the event on calendar.google.com, then gcaldaemon will populate my *.ics file with those events.


I'm using the akonadi googledata agent rather than gcaldaemon, If I create a recurring even in korganizer, it goes to my google calendar, just with no recurrance data. But if I then add it at calendar.google.com the entire event disappears from korganizer and the only way to get it to show up is to delete and recreate without recurrance.
LinuxDave
Registered Member
Posts
9
Karma
0
I switched to GCalDaemon to try and resolve my issues, and ran into the same issue, Nothing done in korganizer would sync up if I set recurrence, and I think I've found why. I happened to have a terminal up I had GCalDaemon running in since I wasn't in KDE, and when i tried to create and edit an appointment locally it spat out these errors,

WARN | Unable to insert event (redacted)!
Entry can not contain both gd:when and gd:recurrence elements.

WARN | Unable to recreate event (redacted)!
Entry can not contain both gd:when and gd:recurrence elements.

So something korganizer is doing is not making GCalDaemon happy, and that might also explain why the akonadi-googledata agent doesn't work too though I haven't bothered to look at any error messages there.

Edit: Not only does it not save recurrence in existing events it deletes them from the google side.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft