Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Add Calendar Feed - GMail

Adds GCAL feed to GMAIL

Using the feeds in Google Calendar - this creates a feed in gmail for a user specified feed (location saved in google bookmarks).

It has been updated to handle the issue with the feed being generated based on entry time, not event time.




Apr 22, 2008
nka User

I can't seem to get this to work either. Will there be a script update any time soon? Thanks!


 
Apr 30, 2007
victorm62 User

Well done Brad works a treat


 
Apr 29, 2007
Brad Stewart Scriptwright

What the...

I'm feeling incompetent right now... I'll just give you guys the url:
http://userscripts.org/scripts/show/8921


 
Apr 29, 2007
Brad Stewart Scriptwright

Oops, HTML error. The patched version is here


 
Apr 29, 2007
Brad Stewart Scriptwright

Ok, patched/enhanced version is available aahere. Again, cgm, if you want to merge these patches into your script, I'll take down the other one.


 
Apr 28, 2007
warius User

Go Brad!
How do I use the patched version, do I need to copy paste all the new lines? Or is there an easier way..?


 
Apr 27, 2007
Brad Stewart Scriptwright

cgm,

Are you planning to update your script? If not, I'll fork it and put up a patched version. I don't mean to sound like I'm offering an ultimatum -- if after the fork you want to take over maintenance again, I'll take it down.

For the moment, here is a patched version to fix the script, with the added functionality of supporting multiple calendars (you just need multiple google bookmarks with the same label), and the different bookmarks can be (optionally) different colours, if you add a hex colour code (i.e. #668Cd9, etc.) to the end of the name of the calendar in google calendar. (I want to store that somewhere else, since it's kind of inelegant this way, but it works for the moment). I also changed the style a little because the red border didn't look good wit the multi-coloured events.


 
Apr 27, 2007
TN User

Tried adding the: " on line 219. Works now!!

thanks guys.


 
Apr 26, 2007
sameerb User

kindly disregard my earlier post, i tried omarz tip and it worked


 
Apr 26, 2007
sameerb User

Is it just me?
I was using this script for the last 3 weeks and 3 days back it suddenly stopped working. now it is showing
"Calendar URL not found. Please run Setup under Tools -> User Script Commands."
I added the google bookmark label name in script commands and its not working.
Your help will be appreciated


 
Apr 26, 2007
warius User

Am I the only one not getting multiple calendars to work? (no pun intended, just wondering..?)


 
Apr 25, 2007
Brip User

It works. Been fiddling about with the script - only thing I didn't try was adding the " as suggested by Omarz and Mortimer. Surprise, surprise, this works. Thanks for the tip!


 
Apr 25, 2007
Mortimer Scriptwright

TN have a look in the previous comments. For the script to work for me, I had to change line 219 to:

bmkURL = responseDetails.responseText.match(/\.\/url[^ \n\r"]+(?=.*id="bkmk_href)/);

(adding a " after id=)


 
Apr 25, 2007
TN User

I've followed the directions to a tee, but I still get "Calendar URL not found. Please run Setup under Tools -> User Script Commands."

I've got the bookmark set up pointing at the xml feed, I've verified it works etc. The script just can't seem to find it.

Any thoughts?


 
Apr 24, 2007
warius User

Omarz:

Thanks for the update, however with this update I'm only able to view one calendar.

Can someone confirm this?


 
Apr 23, 2007
Tracy McKibben User

Thanks omarz, that worked.


 
Apr 23, 2007
omarz User

I already found that my previous post's "fix" for the date offset does not work around the clock, so please DO NOT implement that gmtOffset fix. Disregard my previous post entirely.


 
Apr 23, 2007
omarz User

Thanks rich5813! :)

I also found a quick fix to meno like-bugmenot's problem with the full-day events being displayed with a date on day after the actual event. The problem (as far I've been able to deduce) comes from the getTimezoneOffset() function. That function seems to return an absolute value, so those in the GMT -# timezones get a positive value. My one-line fix was to change a line in the parseDate(TS,debug) function.

Original line:
parsed['gmtOffset'] = date.getTimezoneOffset();

New line:
parsed['gmtOffset'] = (date.getHours() - date.getUTCHours());

This has gone through some very minimal testing, but it's behaving pretty well for me. I'll post back if I find any bugs.

Hope that helps!


 
Apr 23, 2007
rich5813 User

what are the odds, must have posted that at exact same time.. forget mine omarz solution better.


 
Apr 23, 2007
rich5813 User

Google changed the source on their bookmarks page. Small edit to the script worked for me. In the script, find/replace for 'id=bkmk_href'. Change this to 'bkmk_href_0'. Should work... for now


 
Apr 23, 2007
omarz User

I fixed my copy of the script with a very small change.

Line 219 currently reads:
bmkURL = responseDetails.responseText.match(/\.\/url[^ \n\r"]+(?=.*id=bkmk_href)/);

My change was to add a quotation mark after the 'id=' portion. In other words:

bmkURL = responseDetails.responseText.match(/\.\/url[^ \n\r"]+(?=.*id="bkmk_href)/);

Give that a shot and see if that helps. The script is working great for me now.


 
Apr 22, 2007
Brip User

Having the same problem. Fiddled about with the script, but no joy :( Anyone got a suggestion?


 
Apr 21, 2007
warius User

I would also love a fix for this...

Anyone?


 
Apr 20, 2007
JLin User

Search History/Bookmark change has changed. It is now called "Web History". I have no idea why this change would affect this wonderful script, but I'm not surprised. I eagerly await a fix...


 
Apr 20, 2007
victorm62 User

Same issue as Tracy & Kris also reinstalled still no joy


You could comment on this script if you were logged in.