Bug 125952 - calendar synchronization with Google Calendar
Summary: calendar synchronization with Google Calendar
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 180467 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-20 13:47 UTC by Luis Román Gutiérrez
Modified: 2020-06-16 02:41 UTC (History)
33 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Román Gutiérrez 2006-04-20 13:47:57 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages

Nowadays, you can import a calendar from Google Calendar through your Google Calendar's private address, but this only works for reading events, not for writing or modifiying it.

They have published now the Google Calendar's API, and they claim it enables you to create calendars, create events, etc. So I think it will be a nice addition to a very useful program as KOrganizer is.
Comment 1 Robert Voinea 2006-07-04 15:08:22 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Marten Seemann 2006-08-08 15:08:17 UTC
Very good idea. Using many different computers for managing private things I need a place to save my events - Google Calendar. An integration into KOrganizer would be perfect!!!
Comment 3 Reinhold Kainhofer 2006-11-02 19:07:57 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 4 Jason Keirstead 2006-12-11 14:09:13 UTC
Has anyone done any work on this to date? I would like to start work on this resource.. if anyone has a starting point already that would be super.
Comment 5 Allen Winter 2006-12-11 15:17:08 UTC
Not to my knowledge.
Go for it!
Comment 6 Cornelius Schumacher 2006-12-11 15:45:50 UTC
There is the Google calendar plugin for OpenSync which can be used to synchronize Google calendars with KOrganizer.
Comment 7 Jason Keirstead 2006-12-11 15:52:59 UTC
Right but I don't want to synchronize my calender with Google, I want to use Google the primary calender resource.

I have given up on "synch-ing" resources, it's error prone and not as useful as just storing the resource on a remote computer in the first place.
Comment 8 Cornelius Schumacher 2006-12-11 17:09:31 UTC
The OpenSync plugin still might be useful in some way for the implementation of a Google calendar resource as it implements the protocol and the mapping of the data. So as one possible starting point I would suggest to look at the OpenSync plugin.

And by the way, storing something on a remote computer involves syncing, as you always have to consider that somebody changes data on the server while you are working locally on the same data.
Comment 9 Marten Seemann 2006-12-28 09:41:05 UTC
And, are the wheels still turning? ;-)
Comment 10 Sridhar Dhanapalan 2007-04-23 11:40:55 UTC
Work is being done on this:

http://raisama.net/diary/archive/2006/09/02/soc-summary
Comment 11 Alexander Jenisch 2007-07-02 11:23:22 UTC
i second that! i like both applications. would be great, if your friend's entries would be synced (different colored and with the r/rw settings) as well.
Comment 12 FiNeX 2008-03-10 13:35:15 UTC
Is this feature under development?
Comment 13 Luis Silva 2008-03-10 13:41:00 UTC
Hi! Syncing is good but to have a direct read/write(save) access to google calendar would be even better. I have been using GCALDaemon (http://gcaldaemon.sourceforge.net/) for this but it is java and doesn't handle well different computers on different timezones.
Comment 14 Roderick B. Greening 2008-05-20 06:00:42 UTC
This bug still appears to exist with KDE 3.5.9.

Will this be fixed in 3.5.X or in 4.X?
Comment 15 Nils Schlupp 2008-05-20 06:17:58 UTC
There is a current plan to use libgcal (http://repo.or.cz/w/libgcal.git) to add native gcal support to korganiser.
Comment 16 Greisberger Christophe 2008-07-15 21:58:14 UTC
Is it planed to be added to korganizer?
It would indeed be a cool feature.
Comment 17 Adam Jimerson 2008-07-16 00:28:18 UTC
This would be nice, I am currently using GCALDaemon (http://gcaldaemon.sourceforge.net/) but it is very buggy it is in beta right now, it does not remember login details, every time you log in you have to start the program by hand, and if you want to delete an event you have to delete if off of Google Calendar through the web interface and the Ical compatible client you are using.  I would love the ability to work with Google calendar with out having to use a separate program
Comment 18 Pieter Steyn 2008-07-16 09:22:15 UTC
I'd also love to do this without a second program.  Whats the status on the libgcal plan for native support?
Comment 19 Manuel Amador (Rudd-O) 2008-07-30 20:28:26 UTC
Importing Google calendar events via private URIs is now BROKEN.
Comment 20 Grégory 2008-08-20 16:44:39 UTC
Importing works fine for me...
Any plans for getting this in KDE 4.2 ?
Comment 21 Bill Prout 2008-09-18 13:52:36 UTC
[ using KOrganizer Version 4.1.0 ]
I too tried GCALDaemon (http://gcaldaemon.sourceforge.net/). It seems to work fine with Korganizer (i.e. logging in and for "all day" appointments) EXCEPT appointments that have times associated are off by difference of UTC every sync (so the times "slide" over period of time)
Related bug: https://bugs.kde.org/show_bug.cgi?id=143522
Another Discussion: http://sourceforge.net/forum/message.php?msg_id=4505133
Comment 22 Ramon Antonio Parada (brainsqueezer) 2008-12-11 16:18:54 UTC
I think best solution is CalDav support.
See bug http://bugs.kde.org/show_bug.cgi?id=133614
Maybe this one should me marked as duplicate.
Comment 23 Sergio Martins 2009-01-12 23:08:03 UTC
*** Bug 180467 has been marked as a duplicate of this bug. ***
Comment 24 lexual 2009-03-06 11:50:13 UTC
I agree this is a duplicate of bug 133614
Comment 25 Pablo Montepagano 2009-05-21 19:47:54 UTC
When this gets released, you'll be able to sync with google calendar through Akonadi. It also has a resource to sync contacts with gmail. I've tested it and it works. It needs more testing, though. Gmail contacts with more than one e-mail address don't play nicely at all, for example.

http://websvn.kde.org/trunk/extragear/pim/googledata/
Comment 26 Pablo Montepagano 2009-05-21 19:48:34 UTC
When this gets released, you'll be able to sync with google calendar through Akonadi. It also has a resource to sync contacts with gmail. I've tested it and it works. It needs more testing, though. Gmail contacts with more than one e-mail address don't play nicely at all, for example.

Give thanks to Adenilson Calvacati.

http://websvn.kde.org/trunk/extragear/pim/googledata/
Comment 27 Dante Ashton 2009-07-31 04:19:17 UTC
Will this be making an apperence in 4.3?

If I understand correctly; I could write an entry on my Google calander on the web, then KOrganizer will get that...and could I change KOrganizer and have the Google Calender change? Could I get my friends to give me their calanders so I can view them on KOrganizer?
Comment 28 Adenilson Cavalcanti 2009-08-14 13:45:09 UTC
Dante

> Will this be making an apperence in 4.3?

Yep, it even made into the press release (much to my surprise, since it is in extragear).

> 
> If I understand correctly; I could write an entry on my Google calander on the
> web, then KOrganizer will get that...and could I change KOrganizer and have the
> Google Calender change? Could I get my friends to give me their calanders so I
> can view them on KOrganizer?

Yep, this is the idea. You can add/edit/delete events and also contacts in google account and later sync it with your local computer storing all the information locally in akonadi.

Using the proxy resource makes possible applications (e.g. Kontact, kaddressbook) to access the data and add/edit/delete changes back to google server.

Here you have 2 videos to have an idea of how it works:
http://savago.blip.tv/file/1972974/
http://savago.blip.tv/file/1972911/

The requirements are libgcal and the akonadi resource, both can be downloaded from here:
http://code.google.com/p/libgcal/downloads/list

If it is ok, I will close this issue.


Regards


Adenilson
Comment 29 Piero Sartini 2009-08-14 14:31:30 UTC
It looks like it is not possible to use "Google Apps for your Domain". That means if you use the google services with @yourdomain.com instead of @gmail.com.

I am not sure but I guess this is just a simple UI issue.. would it be possible to include this functionality?
Comment 30 Adenilson Cavalcanti 2009-08-14 17:16:23 UTC
Piero

Just input your user with the domain name attached (i.e. joe.doe@domain.com) in the configure dialog of akonadi resource and it will simply work.

Hosted accounts are supported in libgcal from 0.9.1 onwards.


Regards


Adenilson
Comment 31 Piero Sartini 2009-08-14 22:31:32 UTC
Perfect, that works! I was confused by the note "@gmail.com will be appended" and did not even try to go past this point.

Thanks for the hint and all the hard work!
Comment 32 Filipe 2009-11-04 14:12:28 UTC
Since it's announced that sync with google calendar has been implemented (http://www.kde.org/announcements/4.3/index.php) this is not a wish, it's a major bug. I can just read the calendar, so it's not sync I think.
Comment 33 Alexey Shildyakov 2010-08-20 10:32:46 UTC
This feature is work but not all properly. Please check bugs below to understand the problems in Akonadi Google synchronization.

The main is a bug 187331 "Full synchronization with google calendar and contacts".
The bug about using only gmail.com-based account is a bug 204163 "Cannot enter non-gmail based account information".
Bugs when showing "Invalid password" message are bug 214337 "Password asked at the wrong time causing an error" and bug 216817 "akonadi googledata resourse invalid password".
The bug 219316 "Recurring events are not handled correctly".
The bug 233671 "Only syncs one of several google calendars connected to the same account".
The major bugs about loss data in Contacts with syncronization:
bug 212025 "Akonadi Google Calendar deletes Google Calendar when removing a Resource",
bug 214790 "Data loss while syncing Google Contacts due to not supported multiple fields",
bug 227402 "Akonadi deletes Google Contacts".

For more bugs, please see https://bugs.kde.org/buglist.cgi?product=Akonadi&component=Google+Resource&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=Bug+Number
Comment 34 Axel Braun 2011-11-29 14:25:24 UTC
Hmmmm...having KDE 4.6.5 and akonadi-googledata-1.2.0-3.11.i586 installed (on openSUSE 11.3) I noticed as well that KDE calendar does not sync with google.
And it seems to be an area with big problems and no progress.

What is the roadmap for these issues? Or shall one better forget about KDE calendar and only wotk with google calendar?
Comment 35 Axel Braun 2013-02-02 14:31:22 UTC
14 month later....and tons of double entries in google and kaddressbook (4.9.5).
Is this issue still on some roadmap?
Comment 36 Frédéric COIFFIER 2013-02-04 10:43:01 UTC
I'm using daily the sync between Korganizer and my google account and it works fine (libkgapi-0.4.4 and the kdepim plugin). It remains some bug reports but it's usable.
What is your specific issue ?
Comment 37 Axel Braun 2013-02-04 13:15:31 UTC
I'm actually getting multiple entries - if I maintain in KDE, its not properly updated to google, but if I delete a double entry in KDE, the single one in google is gone as well. I would appreciate I one could explain which libs and packages are really required:
I have openSUSE 12.2 with the KDE 4.9 repository from the buildservice
libkgapi0 is installed. Is akonadi-google or akonadi-googledata the weapon of choice? The solver does not mention a dependency between the two and akonadi-googledata seems to have a version conflict:

---
T520:/ # zypper in akonadi-googledata 
Daten des Repositories laden ...
Installierte Pakete lesen ...
Paketabhängigkeiten auflösen ...

Problem: akonadi-googledata-1.2.0-3.2.x86_64 benötigt akonadi-runtime < 1.7.40, was aber nicht angeboten werden kann
  Nicht installierbare Anbieter: akonadi-runtime-1.7.2-2.1.2.i586[openSUSE Current OSS]
                   akonadi-runtime-1.7.2-2.1.2.x86_64[openSUSE Current OSS]
Lösung 1: Folgende Aktionen werden ausgeführt:
  Rückaktualisierung von akonadi-runtime-1.8.1-138.1.x86_64 zu akonadi-runtime-1.7.2-2.1.2.x86_64
  Rückaktualisierung von python-kde4-4.9.5-1.1.x86_64 zu python-kde4-4.8.5-2.4.2.x86_64
  Rückaktualisierung von plasma-addons-lancelot-4.9.5-1.1.x86_64 zu plasma-addons-lancelot-4.8.5-2.4.1.x86_64
  Deinstallation von plasma-addons-akonadi-4.9.5-1.1.x86_64
  Rückaktualisierung von korganizer-4.9.5-3.1.x86_64 zu korganizer-4.8.5-2.12.1.x86_64
  Rückaktualisierung von kontact-4.9.5-3.1.x86_64 zu kontact-4.8.5-2.12.1.x86_64
  Rückaktualisierung von kdepim4-runtime-4.9.5-1.1.x86_64 zu kdepim4-runtime-4.8.5-2.4.1.x86_64
  Rückaktualisierung von kdepim4-4.9.5-3.1.x86_64 zu kdepim4-4.8.5-2.12.1.x86_64
  Rückaktualisierung von kdebase4-workspace-plasma-engine-akonadi-4.9.5-4.1.x86_64 zu kdebase4-workspace-plasma-engine-akonadi-4.8.5-2.10.1.x86_64
  Rückaktualisierung von kaddressbook-4.9.5-3.1.x86_64 zu kaddressbook-4.8.5-2.12.1.x86_64
  Rückaktualisierung von akonadi-4.9.5-3.1.x86_64 zu akonadi-4.8.5-2.12.1.x86_64
Lösung 2: akonadi-googledata-1.2.0-3.2.x86_64 nicht installieren
Lösung 3: akonadi-googledata-1.2.0-3.2.x86_64 nicht installieren
Lösung 4: akonadi-googledata-1.2.0-3.2.x86_64 beschädigen durch Ignorieren einiger Abhängigkeiten
--

What do you recommend?
Comment 38 Frédéric COIFFIER 2013-02-05 09:25:27 UTC
I'm just a user, but for me, the external akonadi-googledata is no longer required as its code was merged in kdepim-runtime (as mentionned on the website of the akonadi-googledata project). I think you can check that with :
$ locate akonadi_googlecalendar_resource
/usr/bin/akonadi_googlecalendar_resource
and :
rpm -qf /usr/bin/akonadi_googlecalendar_resource
In my case (Gentoo Linux) :
kde-base/kdepim-runtime-4.9.98
But, I don't know how it's done in OpenSuse...

About your problem, I'm not an expert, but I'd advice you to open akonadiconsole, to delete your googlecalendar resource and to recreate it.
Is there someone to confirm ?
Comment 39 Axel Braun 2013-02-19 09:24:29 UTC
(In reply to comment #38)
> About your problem, I'm not an expert, but I'd advice you to open
> akonadiconsole, to delete your googlecalendar resource and to recreate it.
> Is there someone to confirm ?
Frederic, thanks for your hint.
I did as you told, and it seems to work for the addressbook, but not for the calendar. Some entries I added in the KDE-calendar (on my google account) did not show up in the google calendar, even not after a resync.

KDE: 4.10.00 "release 546"
Comment 40 Axel Braun 2013-02-21 08:53:08 UTC
I have to rephrase the 'seems to work for kaddressbook' to 'it worked once, but does not work anymore, also not on forced sync (F5)'.
So, sync with google is still a nightmare
Comment 41 Andreas 2014-05-16 10:01:38 UTC
This still does not work with latest KDE packages. I am using ubuntu 14.04 packages now. There is a danger of loosing a lot of time here since akonadi does not give feedback if the upload of a newly created event fails.  If one realizes later that the events have not been synchronized, korganizer does not leave any  other option than recreating the akonadi resource and creating all events again to make them sync.
Comment 42 gjditchfield 2020-06-16 02:41:15 UTC
The original wish — write access to Google Calendar — has been granted.  Bugs in the feature should be reported separately.