FM iCal feed -- 2 issues, 2 fixes

Stupefying Jones's picture

1. The FM ical feed doesn't work with Google Calendar. Looking at the file, the DTSTAMP line is supposed to be value type DATE-TIME according to the ical spec, but is listed as type DATE in the FM ical.

I don't know what version of the drupal files you've got, but in the version I was looking at there's a line in file ical.inc
$output .= "DTSTAMP;VALUE=DATE:". gmdate("Ymd\THis\Z", time()) ."\n";

easy change. make it this instead:
$output .= "DTSTAMP;VALUE=DATE-TIME:". gmdate("Ymd\THis\Z", time()) ."\n";

Now the output is compatible with google calendar :-)

2. Same file, different line
$output .= 'X-WR-CALNAME:'. variable_get('site_name', '') .' | '. ical_escape_text($calname) ."\n";

puts in a pipe character, |, that chokes a different reader I'm using. (the file works if I manually edit out that one character). can you change it to a hyphen or something?

ckdake's picture

Google doesn't support stuff

Google doesn't support stuff very well. I've emailed their list once or twice about this and never gotten a response.

Thanks for the fix! I've updated the file in here but it'll take a few for the Drupal cache to expire to the new verson, and the some more time for Google to pick it up. Let me know if it does or doesn't work.

Stupefying Jones's picture

well, the other reader is

well, the other reader is happy, now. thanks.

Google is still not happy if i 'add by URL' but works fine if I import from a file.

hrm.

i'll try again later to see if it's a cache issue.

ckdake's picture

google caches it and only

google caches it and only hits things at a max of once an hour for calendar stuff.

Stupefying Jones's picture

ding! works. now if only

ding! works.

now if only Palm would support the iCal format.....

Dfunk's picture

+1 to that

I would totally sync my clie to google calendar if I could.

Stupefying Jones's picture

i worked out a kludge

i worked out a kludge yesterday to sync google calendar to my palm.

Airset.com has a free online calendar with lots of import/export options and a free palm to airset sync tool.

I set up the Airset calendar to subscribe to google's ical feed. Then run Airset's palm synchronizer. tada!

unfortunately, it's only one way: google --> palm
you can do the other way manually, but i want it automated.

Dfunk's picture

what do you mean by manual

what do you mean by manual vs automatic?

Alex's picture

easy

that battery operated inflated doll you have is automatic... manual is, well, manual.

Stupefying Jones's picture

i was gonna make a car joke.

i was gonna make a car joke. thanks for upping the ante.

dfunk: i was using automatic to mean that the computer would take care of all synchronizing without any further intervention from me. 'manual' would be if I have to import / export and copy files every time I want the devices synchronized.

ckdake's picture

is it really showing up in

is it really showing up in yours? It's not in mine.. hrm.

conjob's picture

syncing?

anybody know of good (free) two-way google/ical syncing programs?

.

I just sync iCal with my cell phone. Seems like less of a hassle than finding a computer wherever I go.

Stupefying Jones's picture

Check out GCALdaemon - it

Check out GCALdaemon - it might do what you want.
http://gcaldaemon.sourceforge.net/

Google Calendar <--> local ical file
Google Calendar <--> Mozilla Sunbird / Lightning
Gmail Contacts --> Mozilla Thunderbird

Alex's picture

Bah

I've given up on the whole space-time continuum altogether. Made life a lot easier because now I am NEVER late for anything. I intend to stop believing in the conservation of mass next week when I start my new fad diet.

Jeff's picture

Control

is an illusion.