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

akonadi provider for google calendar does not work

Tags: None
(comma "," separated)
algarues
Registered Member
Posts
54
Karma
0
OS
Has anybody managed to have his / her calendars on google synchronized with calendar in Kubuntu Oneiric?

I installed the google calendar akonadi package and configured it like in the older versions of ubuntu

in those times it was possible to get at least the default calendar synchronized

now I get a connection error.

However, synchronization of contacts from the same account works

so it looks like the problem lies within the google calendar provider...
HerbertHamster
Registered Member
Posts
12
Karma
0
OS
algarues,

libgcal, which provides the akonadi resource for google calendar does not work with KDE 4.7.x - see here for details:

http://code.google.com/p/libgcal/updates/list

However, google calendar now supports access via the CalDav standard, so you set up an akonadi Dav Groupware Resource instead and connect this way. I tried and it works well. Instructions on the page here (ignore the first method that uses gcal and follow the instructions for a Dav resource a bit further down):

http://thinkmoult.com/2011/02/21/syncing-kontact-with-android/

Google's instructions for setting up a Dav resource are under Sunbird on this page:

http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=99358
algarues
Registered Member
Posts
54
Karma
0
OS
HerbertHamster wrote:algarues,

libgcal, which provides the akonadi resource for google calendar does not work with KDE 4.7.x - see here for details:

http://code.google.com/p/libgcal/updates/list

However, google calendar now supports access via the CalDav standard, so you set up an akonadi Dav Groupware Resource instead and connect this way. I tried and it works well. Instructions on the page here (ignore the first method that uses gcal and follow the instructions for a Dav resource a bit further down):

http://thinkmoult.com/2011/02/21/syncing-kontact-with-android/

Google's instructions for setting up a Dav resource are under Sunbird on this page:

http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=99358


Thank you very much for your help

can I assume that by using CalDav I will be able to change events and synchronize with no problem with all of my calendars?

I will give a try anyway!
HerbertHamster
Registered Member
Posts
12
Karma
0
OS
I have been using this method to synchronise with my android phone for a couple of weeks now, and it works well. I can add and edit events from both my phone and Kontact and they synchronise between themselves properly.

The other advantage of using the CalDav method is that you can set up recurring events in Kontact that correctly sync to the google calendar - you couldn't do this with a libgcal resource even when it was working because libgcal only facilitated single events to be added.

Let us know whether you get it working.

P.S. Did you mean that you have multiple google calendars that you wish to synchronise with Kontact? I haven't tried this so cannot say whether it would work or not. Be interesting to know if it does.
algarues
Registered Member
Posts
54
Karma
0
OS
HerbertHamster wrote:I have been using this method to synchronise with my android phone for a couple of weeks now, and it works well. I can add and edit events from both my phone and Kontact and they synchronise between themselves properly.

The other advantage of using the CalDav method is that you can set up recurring events in Kontact that correctly sync to the google calendar - you couldn't do this with a libgcal resource even when it was working because libgcal only facilitated single events to be added.

Let us know whether you get it working.

P.S. Did you mean that you have multiple google calendars that you wish to synchronise with Kontact? I haven't tried this so cannot say whether it would work or not. Be interesting to know if it does.


what I meant is that I have multiple calendars on the same google account

Thanks for your help,

will give it a try

and get back to you
HerbertHamster
Registered Member
Posts
12
Karma
0
OS
algarues wrote:what I meant is that I have multiple calendars on the same google account

Thanks for your help,

will give it a try

and get back to you



I just added another calendar to my google account and tested: it seems to work ok. Can add and edit events from both sides and choose which calendar to enter a new event in from Kontact.
algarues
Registered Member
Posts
54
Karma
0
OS
HerbertHamster wrote:algarues,

libgcal, which provides the akonadi resource for google calendar does not work with KDE 4.7.x - see here for details:

http://code.google.com/p/libgcal/updates/list

However, google calendar now supports access via the CalDav standard, so you set up an akonadi Dav Groupware Resource instead and connect this way. I tried and it works well. Instructions on the page here (ignore the first method that uses gcal and follow the instructions for a Dav resource a bit further down):

http://thinkmoult.com/2011/02/21/syncing-kontact-with-android/

Google's instructions for setting up a Dav resource are under Sunbird on this page:

http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=99358


I have been able to follow the sunbird instructions to setup my default calendar

however what does this

"for all other calendars the Calendar ID will be in the form of [ long string of characters]@group.calendar.google.com. You can get the Calendar ID by clicking the down arrow next to your calendar at calendar.google.com and selecting 'Calendar Settings"

mean in the instructions? Especially for "long string of characters"

any calendar for which I click on the settings I get the same calendar ID = my email address

then I have the option to get xml or ical links for public or private usage of the calendar

I tried to insert either of them but they did not work.

What did you use for your second calendar?
HerbertHamster
Registered Member
Posts
12
Karma
0
OS
Here is how I found my calendar ID:

1. I log in to my gmail account and go to the calendar tab

2. In the list of 'My calendars' in the left column, I find my second calendar and using the drop-down list, select Calendar settings.

3. This opens a new page and in the right-hand column towards the bottom, the page says XML ICAL HTML (Calendar ID: xxxxxx@group.calendar.google.com)

4. I use the xxxxxx@group.calendar.google.com to set up the CalDav resource.
algarues
Registered Member
Posts
54
Karma
0
OS
HerbertHamster wrote:Here is how I found my calendar ID:

1. I log in to my gmail account and go to the calendar tab

2. In the list of 'My calendars' in the left column, I find my second calendar and using the drop-down list, select Calendar settings.

3. This opens a new page and in the right-hand column towards the bottom, the page says XML ICAL HTML (Calendar ID: xxxxxx@group.calendar.google.com)

4. I use the xxxxxx@group.calendar.google.com to set up the CalDav resource.


Thanks a lot

it works, on my first attempt, I must have misclicked something while accessing my google calendar page and got the same ID for two different calendars.

this time i got two different ids

and it works!!!

Last thing:

How do I avoid having kde wallet asking me for an authorization password everytime I log in?

Can' t that happen automatically?
HerbertHamster
Registered Member
Posts
12
Karma
0
OS
Glad you got it working. :)

I have not found a way to let KDE Wallet store passwords without requiring one itself. I think the only way to stop the KDE wallet asking for a password is to disable it, causing applications to store passwords themselves.

In kubuntu, you can run KDE Wallet and clear the checkbox for enabling the KDE Wallet subsystem. I have not tried this though. I guess if you do this, you will have to re-enter all of your passwords again.
algarues
Registered Member
Posts
54
Karma
0
OS
HerbertHamster wrote:Glad you got it working. :)

I have not found a way to let KDE Wallet store passwords without requiring one itself. I think the only way to stop the KDE wallet asking for a password is to disable it, causing applications to store passwords themselves.

In kubuntu, you can run KDE Wallet and clear the checkbox for enabling the KDE Wallet subsystem. I have not tried this though. I guess if you do this, you will have to re-enter all of your passwords again.


thanks

I think I will disable it

it is just a torture to enter the password at every login


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]