Author Topic: KO/Pi can sync with iCal  (Read 10628 times)

ashikase

  • Sr. Member
  • ****
  • Posts: 280
    • View Profile
    • http://
KO/Pi can sync with iCal
« on: March 17, 2004, 09:09:31 pm »
In case nobody else noticed, KO/Pi (KOrganizer/Platform-independent) for Zaurus can sync with OS X iCal.

The way the syncing works:  KOrganizer copies the iCal calendar file to the Zaurus, syncs it with KOrganizer\'s calendar, then copies the resulting file back to iCal.

You will need a newer version of KO/Pi (1.6.3b or newer).  You have to setup synchronization via ssh/scp, as described here:
http://www.pi-sync.net/doku/KO_Pi_45_sync.htm

The calendar file for iCal is located under ~/Library/Calendars/Home.ics (assuming that you want to sync with the default Home calendar).

IMPORTANT: Before syncing for the first time, you MUST add a X-WR-RELCALID tag to the KOrganizer mycalendar.ics file, or else iCal will change the UID number of all entries, causing duplicates.  The X-WR-RELCALID tag should be in the header of the mycalendar.ics file, before the first VTODO/VEVENT tag.  For example:

Code: [Select]
BEGIN:VCALENDAR

PRODID

 :-//K Desktop Environment//NONSGML libkcal 3.1//EN

VERSION

 :2.0

X-WR-CALNAME

 :Home

X-WR-RELCALID

 :AD1EEE08-7829-11D8-B8BC-0008492D9012

X-WR-TIMEZONE

 :Asia/Tokyo

BEGIN:VTODO


Note that the value for X-WR-RELCALID can be anything, though it should probably be a real UID.  I would recommend just copying the information from your iCal Home.ics file.  Also note the other X-WR tags... I don\'t know if iCal really needs them or not, but to be safe, I added them to my mycalendar.ics file.

Another important note is to make sure that iCal is closed when you sync, as iCal does not appear to write its *.ics file until the application is closed.

I just got this working last night, so I don\'t know how well it really works.  So far it seems fine.  However, I would strongly suggest backing up your calendars on both sides to be safe.  In fact, you may want to continue backing up your calendars on a regular basis, just as an added precaution.

Note that when syncing, at least in my case, there seems to be a bit of a delay between the \'Copy succeeded\' and \'Sync completed successfully\'.  Make sure that the sync has completed before reopening iCal.

For those that are switching from a DTM-based calendar program (such as the default C7xx/8xx calendar app), the latest version of KO/Pi (1.6.5a) claims to be able to import DTM data.

While it\'s not iSync, this seems to do the trick.

Good luck.

- ashikase
  anpachi, gifu, japan
SL-C3100 & SL-C760

twocargar

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • http://homepage.mac.com/tgoyette/iblog/B1030624653/index.html
KO/Pi can sync with iCal
« Reply #1 on: March 17, 2004, 11:17:36 pm »
Yeah, I\'ve been using it for a while now with my Mac.  It\'s great.  Now all we need is an address book for the Z that can import and export vcards.  Any idea if there\'s an open source address book that can be ported to the Z?  I\'ve looked, but haven\'t found anything.
SL 5500, Sharp ROM 3.13, Netgear MA701 WiFi Card,  PNY 256MB SD card, Mac OS 10.4.x, Apple PowerBook G4, PowerMac G5 Dualie

Zaurus For A Mac User Blog

ashikase

  • Sr. Member
  • ****
  • Posts: 280
    • View Profile
    • http://
KO/Pi can sync with iCal
« Reply #2 on: March 17, 2004, 11:57:10 pm »
Work is being done to port KAddressbook (KA/Pi), but the estimated availability date is currently listed as \"End of 2004\":

http://www.pi-sync.net/html/ka_pi.html

- ashikase
  anpachi, gifu, japan
SL-C3100 & SL-C760

zautrix

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
    • http://www.pi-sync.net
KO/Pi can sync with iCal
« Reply #3 on: March 18, 2004, 01:27:40 am »
Hi,

there is already another guy working on the port of the KAdressbook. I do not know the exactly progress of his work, but I would estimate, that KAdressbook is available in 1-3 month.
We are currently setting up a common project at sourceforge, it is called kdepimpi (KDE Pim platform-independent).

@ashikase:
you have written a nice howto in this thread.
Am I allowed to put this text on my website? As a Howto-Mac-iCal?

z.

ashikase

  • Sr. Member
  • ****
  • Posts: 280
    • View Profile
    • http://
KO/Pi can sync with iCal
« Reply #4 on: March 18, 2004, 02:07:54 am »
kdepimpi?  Heh, why not just call it KDE-Pimp (^_^)

zautrix: sure, feel free to use it.

- ashikase
  anpachi, gifu, japan
SL-C3100 & SL-C760

pakman

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
KO/Pi can sync with iCal
« Reply #5 on: March 18, 2004, 04:52:53 am »
Quote
For those that are switching from a DTM-based calendar program (such as the default C7xx/8xx calendar app), the latest version of KO/Pi (1.6.5a) claims to be able to import DTM data.

To dump out Sharp PIM DTM-format calendar/todo info and import it into KO/PI, this can already be done using zical, as described at:

http://www.zaurususergroup.com/index.php?n...=zical&start=15

Zical can be downloaded from here. OK, the page is in Japanese, but the link to the Zicak ipk is in English, so it is easy to spot. In fact, the procedure is even easier than described - you don\'t need to run wget at all. After running the export from Zical, the data is written to a file /home/zaurus/zaurus.ics (if I remember correctly - somewhere under /home/zaurus anyway, try \'find /home/zaurus -name *.ics\' if I have mis-remembered it). This can be loaded into KO/Pi directly.

Roll on KA/Pi - I\'m really looking forward to junking the Sharp PIM\'s completely.

Regards,
P.
Now: Gemini 4G/Android. Previously: Zaurus C760/Cacko lite 1.23

jagrka

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://
KO/Pi can sync with iCal
« Reply #6 on: March 18, 2004, 09:50:59 pm »
I\'ve found that the latest version of KO/Pi doesn\'t support two-byte charaters (such as those for Japanese characters). Since I keep my contacts and calendar records on my Zaurus in both languages, I don\'t believe that I can use KO/Pi. Instead, I am content--for the time being--with using ZiCal. I expect that a Japanese company or programmer will likely produce an operable sync for Mac/SL-series Zaurus sometime in the near future, but I do not know of anything specific.
Zaurus SL-C760/Sharp ROM 1.40 JP
Linux Kernel 2.4.18-rmk7-pxa3-embedix, Tetsu Special Kernel 14e
Transcend 2GB SD Card (with SD-Link11b driver)
Planex Communications GW-CF11H Wi-Fi CF Card
Kwins for PDA KW-H128C2 PHS Communications CF Card

zautrix

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
    • http://www.pi-sync.net
KO/Pi can sync with iCal
« Reply #7 on: March 19, 2004, 04:16:04 am »
@ashikase
In the latest version, KO/Pi does not remove the X-WR-RELCALID after syncing, even if the KO/Pi file has no such entry.
@pakman
zIcal does not work 100% properly.
Such that it is no real good way to get the data into KO/Pi.
@jagrka
Maybe it would be a good idea to send me a datailed description of your problem including some test files.

z.

kenroy

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • http://
KO/Pi can sync with iCal
« Reply #8 on: March 20, 2004, 04:33:16 am »
KO/Pi almost supports Japanese. I can input Japanese in the Todo list, Categories and the Journal and it works fine as long as KO/Pi is running. If you quit and relaunch then the Japanese characters get mangled in the Todo and Journal entries. The Category entry is fine. This suggests that the characters are only getting mangled when the entries are either written and/or read to/from disk.[/b]
SL-A300 | Sharp ROM 1.50 J | Panasonic 256MB SD
-----------------------------------------------------------
SL-C860 | Sharp ROM 1.40 JP | Panasonic 1GB Pro High Speed SD | Buffalo WLI-CF-S11G | KWINS PHS CF card

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
KO/Pi can sync with iCal
« Reply #9 on: April 29, 2004, 02:28:07 pm »
In syncing (I have not been able to get the network sync to work yet, so I simply copy over the iCal file to the Z and then sync)  I notice that the times are not quite in sync.  If I leave the time zone setting on the default Oslo (I am in the US) then the info is imported into Korganizer fine, but dates from korganizer to ical are 7 hours or so off.  If I change the time zone to U.S. eastern coast, the exact opposite is true.  Is there any way to fix this so I can enter data into both calendars and sync?  Is this a problem with the sync directly with the file on my mac?  thanks.

zautrix

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
    • http://www.pi-sync.net
KO/Pi can sync with iCal
« Reply #10 on: April 29, 2004, 02:48:49 pm »
Quote
but dates from korganizer to ical are 7 hours or so off.  

I would guess you have to set the correct time zone or so.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
KO/Pi can sync with iCal
« Reply #11 on: April 29, 2004, 03:11:54 pm »
Quote
Quote
but dates from korganizer to ical are 7 hours or so off.  

I would guess you have to set the correct time zone or so.

The problem is that I believe iCal and Korganizer determine time differently (I forget exactly how, but I think one writes the time to the file as a gmt, and the other adds or subtracts the hours before writing the time to the file) so even when they have the same timezone listed, they will not sync times correctly.

rodt

  • Newbie
  • *
  • Posts: 1
    • View Profile
KO/Pi can sync with iCal
« Reply #12 on: June 08, 2004, 02:17:29 pm »
I\'ve spent far too long getting KO/PI and OS X (iCal) to sync. I had installed the ethernet over USB
http://www.lucid-cake.net/osx_zaurus_usb/index_en.html

Then installed ssh
http://www.pi-sync.net/doku/KO_Pi_45_sync.htm

But still KO/PI errored when I tried to sync. The problem was that, OS X was insisting on a password for ssh. Got round this by reading this URL
http://www.iross.net/site/articles/sshkeys

- I hope this helps someone.

asfrank16

  • Newbie
  • *
  • Posts: 25
    • View Profile
KO/Pi can sync with iCal
« Reply #13 on: June 10, 2004, 11:19:42 am »
Everything was working fine for me, but now, I cannot add anything to the calendar on my mac, or the Zaurus quits during the sync.  Anyone have this happen before?

zautrix

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
    • http://www.pi-sync.net
KO/Pi can sync with iCal
« Reply #14 on: June 10, 2004, 11:37:13 am »
The problem is in the libical - the library which actually reads the ics file.
In many cases, if libical cannot handle an entry in the ics file, it just crashes.

There is already a newer version of libical available at sourceforge.

If I have some time, I will try to use this newer version of libical in KO/Pi.
And I hope, then KO/Pi will not crash so much when reading \"unexpected\" entries in ics files.

z.