[sync] Using rpc.php to sync calendars other than default calendar

Karsten Fourmont fourmont at gmx.de
Thu Jul 26 07:07:59 UTC 2007


 > At the moment, it seems to sync with the main calendar (the default one
 > named after the userid). What I'd like to know is how do you configure
 > it to sync with other calendars that you have created?

I did a first shot at this. Try current cvs (update of Syncml module)

Configuration is done by setting the database path in the client device.
I choose this place as it allows you to use different calendars for 
different mobile devices: private calendar for private phone and so on.

The database path is called "server path" in Synthesis. Currently it's 
"calendar", but actually it's an URI now it can use parameters. You have 
to set this to

calendar?source=[calendarid]

Tricky thing is getting the calendar ID. (You've done this already but 
here a description for everyone else:)
You have to go to "manage my calendars" (from the calendars box at the 
top right of the calendar view, /horde/kronolith/calendars.php).
There you select the desired calendar and then horde displays the url:
horde/kronolith/month.php?display_cal=[calendarid]

This is the calendarid you have to set in the client device:
calendar?source=[calendarid]
A bit of fumbly this long hex number, but unfortunately I currently 
can't use the clear text name using the kronolith external api.

Theoretically this should work with other sync types as well (tasks, 
notes and address books). But address books won't work yet 
unfortunately: turba doesn't store the address book source in the 
history, only the owner. So we can't use it for syncing anything other 
than the default source. This has to be fixed first. (Any volunteers?)

But it's a start.

Cheers,
  Karsten


Rich Hutchinson wrote:
> I've been using the Sync4jmozilla plugin for Thunderbird to flawlessly
> sync the calendar in Horde with Lightning. It all works great using the
> URL in the form: http://hordeinstallpath/rpc.php .
> 
> At the moment, it seems to sync with the main calendar (the default one
> named after the userid). What I'd like to know is how do you configure
> it to sync with other calendars that you have created?
> 
> Say I have a calendar with the id: 123abc (as shown by its remote
> subscription of: http://hordeinstallpath/kronolith/ics.php?c=123abc)
> 
> I've tried things like:
> 
> http://hordeinstallpath/rpc.php?c=123abc
> http:/hordeinstallpath/rpc.php/kronolith/ics.php?c=123abc
> 
> etc. etc. - nothing seems to work.
> 
> What's the correct URL to use for SyncML using rpc.php?
> 
> Thanks in advance...



More information about the sync mailing list