Opened 8 years ago

Closed 17 months ago

# View all calendars open in source google account calendar

Reported by: Owned by: jhughes@… Stefan Simroth normal GoogleCalendarPlugin normal 0.11

### Description

Hi - I would love it if the plugin would capture all the calendars/tasks that are selected for view in the source Google Calendar. For instance, I have the US holiday's calendar enabled in my source calendar, but you don't see them in the embedded tracs view of the google calendar. It would be helpful for me to be able to view different calendars at once b/c I could differentiate categories of items on the calendar that way. Thanks if this is possible!

Jen

### comment:1 Changed 8 years ago by Stefan Simroth

This is already possible, but not comfortably configurable, I have to admit.

You just have to extend the calendar_url with the other calendars that you want to include. This effectively means to add another &src=asdkjakdj3423hj part (and optional &color part) to the string. Better add it all before the &ctz and &pvttk parts of the URL (esp. if you use a color).

Sorry, I forgot to mention this.

### Example

To get from the original example

http://www.google.com/calendar/embed?src=823sd8f7f87bgj67jhssd6f5%40group.calendar.google.com&ctz=Europe/Berlin&pvttk=92h3bfjgh2345gsah355hjh

to a URL with three calendars and colors, it would look like that (additional part in bold slightly visible)

http://www.google.com/calendar/embed?src=823sd8f7f87bgj67jhssd6f5%40group.calendar.google.com&color=%230D7813&src=my.name%40googlemail.com&color=%23A32929&src=en.german%23holiday%40group.v.calendar.google.com&color=%23B1440E&ctz=Europe/Berlin&pvttk=92h3bfjgh2345gsah355hjh

So a "calendar + color" part looks essentially like this:

&src=en.german%23holiday%40group.v.calendar.google.com&color=%23B1440E

To ease the link-finding you can also the Embed Helper where you can select the calendars to display and the colors. Then you would need to copy the long link inside the iframe src part and add it to your trac.ini

In case of problems with that procedure, modify the string a little: remove the height=600&amp;wkst=1&amp; part and all other amp; occurrences in the string (that's how I do it)

I'm sorry that this calendar_url configuration is such a mess! But at least it's a task you normally wouldn't do daily ;)

Would be an improvement to make this easier (i.e. use the embedhelper and take the whole string it provide and sort of "clean it" or sth like this..)

Please tell me if that worked for you and the explanation was helpful then I will update the wiki page!

### comment:2 Changed 8 years ago by anonymous

Hi - Thanks! One question about the HTML embed helper URL...I have this now:

Should I delete everything after Angeles" ? I'm not a web person and don't have access to replace the URL myself. I need to bug someone to do it, so I want to get it right the first time :) This is GREAT if it works right !!!

### comment:3 Changed 8 years ago by anonymous

Um, can we delete that URL after you tell me if I've done it right? I don't actually want people to access it.

### comment:4 Changed 8 years ago by Stefan Simroth

Well, I can't delete anything, but I think it should be alright as you have to either share the calendar with others or make it public so that others can access it.

The answer: yes, remove everything after Angeles" (including the ") as well as the beginning src=" part. Then it should be alright. Maybe also remove the bgcolor=%23FFFFFF& to be sure.

Note that you and your team colleagues have to be logged into Google in order to access the private calendars. Otherwise you'll get a note that you don't have access to some calendars (and in your case only the USA holidays will be displayed)

### comment:5 Changed 17 months ago by Ryan J Ollos

Resolution: → wontfix new → closed

Plugin is deprecated.

### Modify Ticket

Change Properties