Google Calendar Plugin
Added by Jim Mulholland 252 days ago
I created a simple plugin today to integrate a Google Calendar as a project tab in Redmine.
If I were able to add plugin information to the wiki, it would look something like this:
A simple plugin to include Google Calendar iframe as a tab within Redmine projects. The calendar timezone will be user dependent based off the timezone in your Redmine user account and defaulted to the timezone set in the <iframe> if the user does not have a timezone selected.
Currently, the only way to install is using Git and GitHub:
URL: http://github.com/mully/redmine_google_calendar/tree/master
To install from git:
(Git Version < 1.5.3)
$ cd {RAILS_ROOT}/vendor/plugins
$ git clone git://github.com/mully/redmine_google_calendar.git
(Git Version >= 1.5.3 -- Because the "git-rails" gem uses Git Submodules introduced in ver. 1.5.3)
$ sudo gem install git-rails
$ git-rails install git://github.com/mully/redmine_google_calendar.git
Plugin setup
1. Install the plugin as described here (this plugin doesn't require migration).
2. Go to "Admin -> Custom fields" and create a Project custom field of "long string" type, named 'Google Calendar IFrame' for example.
3. Go to "Admin -> Information" to configure the Google Calendar plugin:
- Project custom field 'Google Calendar IFrame': select the newly created custom field.
Enabling CI at project level
Go To Your Google Calendar:
1. Click on "Settings" in the upper left hand corner
2. Click on the "Calendars" tab
3. Select the calendar you want to use
4. In the "Embed This Calendar" section, copy the entire <iframe> code from the text box
(If this is a private calendar, you will have to replace the "src" in the <iframe> with the HTML found by clicking the blue "HTML" block in the "Private Address" section on the same page.)
In your project in Redmine, go to "Project settings" :
1. On the "Modules" tab, enable the module by checking "Google Calendar".
2. On the "Information" tab, paste the <iframe> code that you have copied in your clipboard from Google next to the 'Google Calendar IFrame' project custom field you created in step 1.
After that, a new item named "Calendar" should show up in the project menu. Click on this item to see your Google Calendar.
Replies
RE: Google Calendar Plugin - Added by Eric Davis 252 days ago
I've added your plugin to the Wiki. An administrator will have to give your account Wiki permissions to edit it.
Thank you for the contribution!
Eric
RE: Google Calendar Plugin - Added by Jim Mulholland 251 days ago
Thanks Eric!
Account wiki access would be great. Until then, here is a screenshot of Redmine with a Google Calendar embedded:

redmine_googl_calendar.jpg - Redmine Google Calendar Screenshot (44.7 KB)
RE: Google Calendar Plugin - Added by Jean-Philippe Lang 251 days ago
Nice plugin Jim :-)
You have wiki edit permission now.
RE: Google Calendar Plugin - Added by Jim Mulholland 251 days ago
Excellent!
Thank you, sir!
RE: Google Calendar Plugin - Added by Matt McMahand 247 days ago
Can you add to the wiki that this plugin requires the tzinfo gem? I was missing this on my machine and displaying the calendar didn't work until I installed the gem. Thanks.
RE: Google Calendar Plugin - Added by Jim Mulholland 247 days ago
Good catch, Matt. I'll update the wiki.
RE: Google Calendar Plugin - Added by Eric klopfer 189 days ago
This is cool and adds what I think is the one glaring missing feature in Redmine.
What cosmetic issue - when I added the custom field for the calendar it appears on the project home page and runs a lot of text across the page. Is there a way to hide that custom field on the home page?
RE: Google Calendar Plugin - Added by Jim Mulholland 189 days ago
Hi Eric. I'm glad the plugin is working out for you.
As for your issue, we ran across the same thing. The problem is that, by default, Redmine adds any custom field data on the project overview page. To resolve this issue, I had to manually go in the code and comment out the piece that was adding this data as it is obviously not needed in this situation.
With that being said, I am still running on an older version of Redmine. Does anybody know if this has been resolved in recent releases? (I did not write up a ticket because I did not know if a lot of other people enjoyed seeing custom field info here.)
The easiest fix would be to just remove those few lines of code. However, if people find this data useful on the "overview" tab, we would have to add some preferences on whether or not certain types of data should be shown there.
I have played with creating other plugins that use API keys and had thought about allowing users to enter in their API key info via the same custom field method and ran across the same issue of the API info being displayed on the project home page. Obviously, not ideal.
- Jim
RE: Google Calendar Plugin - Added by Eric klopfer 185 days ago
I've done some more playing around with this plugin. It seems to allow more than google calendars on that tab. I embedded another google widget and another iframe successfully. Now I'm thinking this would be a great generic feature for Redmine. Add a few extra tabs that call external resources (google or otherwise). Perhaps each project could have 1-3 renamable tabs for this purpose?
Are you planning on integrating this into Redmine? Or should I request a feature?
Again, very handy work.
RE: Google Calendar Plugin - Added by James Turnbull 185 days ago
I played with this a little but haven't finished - http://github.com/jamtur01/redmine_tab/ - this is designed to abstract the tab away from Google Calender and allow multiple tabs. No tuits to look at it right now but our plan was to imbed another Wiki into Redmine as we need RST support.
RE: Google Calendar Plugin - Added by Eric klopfer 185 days ago
Sounds exactly like what I'm looking for. That would open a lot of possibilities. Thanks. I hope you get this working.