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

Gmail Calendar Nav Module

Displays a Google Calendar summary in a nav module in Gmail.

Works with the new version of gmail. It makes use of the gmail API so it should work well with future versions of gmail (assuming the API doesn't change).

Setup Instructions:
  1. Click the install icon for this user script in FireFox
  2. First get your Calendar Feed URL from calendar.google.com (XML)
    1. click the down arrow beside the calendar name in the left panel
    2. choose calendar settings
    3. click the XML button next to "Private Address:" at the bottom
    4. copy the URL in the pop-up
  3. Add this URL to google bookmarks (http://google.com/bookmarks) with a label that does not contain spaces (GMgcal recommended)
  4. When GMail is loaded/refreshed a new NAV box will appear indicating you neeed to run setup.
  5. To run setup, click Firefox's tools menu, then choose Greasemonkey->User Script Commands->Gmail Calendar Nav Module Setup
  6. This will prompt you for the bookmark label (the one you selected above) and the number of events to display, and the number of pages of events to display.
  7. The Nav Module will refresh with your calendar data.
  8. To add feeds for further calendars, simply repeat steps 2 and 3 for each. Make sure you use the same label as before.
  9. To change the color of items from a calendar, rename that calendar (in google bookmarks) so that it ends with a color hex code, such as #F2A640 for orange -- the # is necessary
Notes:
  • To clear your data, click Firefox's tools menu, then choose Greasemonkey->User Script Commands->Clear Gmail Calendar Nav Module Settings
  • If you make any changes to your calendar, or add new calendars to the bookmarks label, click 'Reload' in the Nav Module to download the new calendar information
  • To avoid the use of Google Bookmarks you can enter your calendar urls directly into this script. Follow the instructions/examples starting around line 310.
Uninstall
  1. (optional) Clear your data (see above)
  2. Click Firefox's Tools menu->Greasemonkey->Manage User Scripts. Select "Gmail Calendar Nav Module" then click "Uninstall".
  3. Cry a little bit
Changes
v1.4.5 - 3/20/2008
  • added support for static calendar lists - bypassing google bookmarks
  • fixed recognition/detection of color codes
v1.4.0 - 3/6/2008
  • added support for multiple pages of events (default: 2)
  • added a script command to clear all settings
  • locations link to a map
  • changing script settings no longer reloads gmail - just the Nav Module
  • canceled events are rendered with a strikethrough font
  • updated install/uninstall instructions
v1.0.2 - 2/1/2008
  • better error handling/reporting of invalid feeds
  • fixed a problem with loading calendars on the first of the month
v1.0.1 - 1/29/2008
  • fixed display of "12pm" times
  • fixed highlighting of "today's events"
v1.0.0 - 1/23/2008
  • uses gmail api
  • should work with multiple timezones (not tested)
  • completely rewritten - hopefully faster, and easier to maintain
Attributions:
Based on updated gmail calendar which was an updated version of Gmail Google Calendar sidebar.





Aug 5, 2008
1024k User

Glenn, agenda is not show and i receive "Retrieving Dyn Calendars".What wrong?

Thanks

 
Jul 30, 2008
Matt Bowes User

Great script! Is there any way to make events disappear when I delete them from google calendar rather than appearing in my NAV bar with a line through them?

 
Jun 10, 2008
nathaniel_hi... Scriptwright

Thanks for the great script. Any updates in the works?

 
Apr 2, 2008
davehenning User

oh and just another quick little idea for the next release.

A plus sign that takes you to the quick add form in calendar to the left of the 'Prev 1/3 Next | Reload' text would be awesome.

 
Apr 1, 2008
davehenning User

I see you have mentioned that in the future you will be moving the script the right side (for RTM purposes), and I understand that it is not an easy task, hence why you wait. What I'm wondering if it would just be easier (for in the mean time, til you do feel like moving it to the right) you would know how we can just move it up. maybe above the contact list or something.

As of right now my contact list completely pushes it off the screen, rendering it near useless. Love the script tho. This one is much nicer than the last as well.

 
Apr 1, 2008
sha1024 User

Hi,
I was wondering if i might get some help. I installed it but i cant see the nav windows I use FF3B4 on vista. any suggestions?

 
Mar 20, 2008
Glenn Script's author

I added support for static calendar urls. For right now you have to edit the script manually (see the notes section). I will work on updating/expanding the settings to make that part easier, but I wanted to get this out sooner.

Keep in mind, if you use this method, you will have to edit the script whenever it is updated here. And while using bookmarks means that your stored calendars are accessible across browsers/profiles, local storage is not.

More on the subject of google bookmarks:
I could not find any references confirming that google bookmarks are public. In fact, I could not even find a way to share them. From everything I read and in my testing, you have to be logged in to view your bookmarks.

 
Mar 16, 2008
Master Scott User

<quote>Re: Private links
It only uses google bookmarks as an easy place to store the list of calendar urls. You could fairly easily modify the script and hardcode your list of calendar urls. You would want to change the 'refresh' function to call 'load_calendar' for each calendar you want to load rather than 'load_bookmarks'.</quote>

Could you give a little more detail about this?

I think it will help solve my issue: I use Google Apps Gmail/calendar, i.e., @mydomain.com, but my bookmarks are at my Gmail (@gmail.com). So, I think that is why it is not retrieving the feed, right? If so wouldn't hardcoding the feed fix this?

 
Mar 14, 2008
tonyaross User

Hey, Glenn, so great to hear that you will indeed work on the script. Take your time, but I'll be lying if I do not say that I'm looking forward to it. :-)

T

 
Mar 13, 2008
Glenn Script's author

@tonyaross
I guess my response was a little vague. I knew what you meant, I am just referring to it as the rtm feature for convenience.
I did some testing, and it is both easier than I thought (though still more complicated than the entirety of the script as-is, heh) and more useful. So I will get to it, I just can't give you an estimate of when.

I don't use rtm at all, so any sort of real integration with that is not anticipated.

 
Mar 13, 2008
tonyaross User

Glenn, I want to make my suggestion a little clearer. Different Jonathan's suggestion, I simply want to have the agenda panel on the right side of the screen. This arrangement makes it "look like" the arrangement made by Remember the Milk, it is not related in anyway to RTM. I simply think that if the agenda panel is on the right, it is more aesthetically pleasing, and save us the trouble to scroll down (if the agenda is not long). If Jon's idea is more difficult because it involves RTM, do you think it is doable to just move the agenda panel to the right?

T

 
Mar 7, 2008
Glenn Script's author

@Forest Gregg
The 'except on' events are now handled like 'canceled' events - they are still displayed, but with a strikethrough font. If you would rather they not show up at all, let me know.

re:Private Links (or bookmark-less calendars)
This idea is growing on me. It will be in the next 'major' release.

 
Mar 3, 2008
Glenn Script's author

Re: Remember the Milk
This would be a large undertaking and would have to go back to being a hack rather than using the gmail api. While I like the idea, it probably won't happen anytime soon.

Re: Private links
It only uses google bookmarks as an easy place to store the list of calendar urls. You could fairly easily modify the script and hardcode your list of calendar urls. You would want to change the 'refresh' function to call 'load_calendar' for each calendar you want to load rather than 'load_bookmarks'.
I may consider adding direct support for this at some point in the future, but it is a low priority.

 
Mar 1, 2008
Jonathon Use... User

I also want it to be on the right, beneath my Remember the Milk panel.

I also have this question:
I have to put a private address for a private calendar in a public bookmarking system?
(Google Bookmarks has no option "private".)

 
Feb 12, 2008
Luke Gedeon User

So to make this work i have to take a private address for a private calendar and put it in a public bookmarking system?

 
Feb 11, 2008
fgregg Scriptwright

Bug report: Does not handle exceptions to events.

Example Calendar Feed:

Figure Drawing
Recurring Event
First start: 2008-01-22 19:00:00 EST
Duration: 7200
Except on:
Tue Feb 12, 2008
Where: 362 Depot St
Event Status: confirmed

The sidebar shows this event for February 12th.

 
Feb 11, 2008
fgregg Scriptwright

Thanks so much for updating this script!

 
Feb 8, 2008
Glenn Script's author

@tonyaross - I like that idea. I will look into it. But I make no promises :-)

@ronr - Nothing strikes me as obvious. If it makes it past 'retrieving calendars' then it is connecting and downloading, it just doesn't find anything to display. If you have firebug installed you can see a bunch of status messages that might reveal something.

 
Feb 4, 2008
ronr User

This seems like a very useful script, along with the new RTM Firefox add-on and Better Gmail 2 add-on which integrates Reader. Unfortunately, I cannot get it to work! The sidebar object appears, indicates that it is retreiving bookmarks and then calendars, but never connects or displays the feed. I have changed the XML link in the Google Bookmark a couple of times, with no success, and the feeds work when entered directly into Reader. Any thoughts would be appreciated! Thanks.

 
Feb 1, 2008
tonyaross User

Like your script very much, tried different versions of the same thing, only yours works.

One question, the script as it is has the agenda panel on the left below all other things on the sidebar, and one has to scroll down to get to it. Is it possible to shorten the mainbody of the emails, and then put the agenda panel on the right, similar to the layout of the gmail addon by "Remember Milk." That will make the use of space much more efficient, and one does not have to scroll down to see the agenda.

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