Mission Manager Community

Mission Manager => Feature Requests and Issues => Topic started by: atucker@wcrescue.com on October 19, 2012, 08:40:36 AM

Title: Google Calendar sync to MM Calendar
Post by: atucker@wcrescue.com on October 19, 2012, 08:40:36 AM
I don't think this is an option, but a thought... we use google calendar on our website to keep some of our community partners informed on things going on or coming up, we also use it so other agencies around the state can see what kind of training we have coming up. is there a way we could sync our google calendar with MM Calendar? 
Title: Re: Google Calendar sync to MM Calendar
Post by: atucker@wcrescue.com on October 19, 2012, 08:42:32 AM
we are wanting to let people see whats going on but some will not have access to MM... (if that helps understand what i'm asking)
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on October 19, 2012, 08:47:37 AM
Try the "Export Calendar" at the bottom of the MM Calendar screen.  The file this creates can be directly imported into your Google Calendar.
Title: Re: Google Calendar sync to MM Calendar
Post by: atucker@wcrescue.com on October 19, 2012, 08:53:31 AM
could there be a way to import from google calendar...
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on October 19, 2012, 09:03:57 AM
Sorry, currently there is no import calendar in MM.   Most teams create their events in the MM calendar because it interfaces with your members, timekeeping, allows for training signup, etc.  There may be an import at some point, but not yet.

Mike
Title: Re: Google Calendar sync to MM Calendar
Post by: atucker@wcrescue.com on October 19, 2012, 09:08:39 AM
Thanks Mike GREAT SUPPORT!!! you have a great system here!!!
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 10, 2013, 06:10:51 PM
It would be very helpful to be able to request the calendar ics file using the API key. This would allow the calendar to be viewed in the Google calendar tool and on phones. It also needs to be allowed in the robots.txt file.

Thanks!
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on February 11, 2013, 08:36:00 AM
Quote
It would be very helpful to be able to request the calendar ics file using the API key.
Done.  There is a new API request GET calICS that will return the team's calendar ICS file.  If you can use this to display a calendar to your members it would be great if you could share a "how to" with other teams, thanks.

Mike
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 11, 2013, 08:22:43 PM
This works and I was able to get the ics file. However, I can not use it directly in Google calendar because of the robots.txt line "Disallow: /SearchManager/". Even through it is accessed through a redirect, it is still blocked. Could you please add an allow line for the api or put a copy in a different path?

I'd be happy to do a quick writeup when I have it working.
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on February 11, 2013, 10:11:15 PM
Quote
Could you please add an allow line for the api or put a copy in a different path?
I allowed access to the api.php file.  Let me know if that works.

Mike
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 12, 2013, 11:30:39 PM
Yes, that works, but now I get an empty calendar if I am not logged in:
BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
PRODID:-//Radishworks//Mission Manager//EN
CALSCALE:GREGORIAN
END:VCALENDAR

When logged in, the ics file has the events. It seems to be checking the cookie or something.
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on February 13, 2013, 07:42:13 AM
Quote
I get an empty calendar if I am not logged in:
Woops, our bad.  Should be working now.  Good detective work  :D.
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 13, 2013, 08:32:15 PM
Ok, almost there. Can you please add time zone information to the ical file or output the absolute UTC times with a Z at the end? Google doesn't let you pick the time zone of a subscribed calendar.

On a side note, entering a start time of 8000 instead of 0800 makes Google start the event a few days later. This was a typo on my part, but it might be nice to validate the times.
Title: Re: Google Calendar sync to MM Calendar
Post by: Radishworks on February 14, 2013, 09:41:58 AM
Quote
Can you please add time zone information to the ical file
Done.  Calendar ICS files now include a timezone.

Quote
This was a typo on my part, but it might be nice to validate the times.
Time validation code now in place.

Thanks for the reports.

Mike
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 14, 2013, 09:10:36 PM
Thanks for the reports.

Thanks for all the quick fixes and feature additions! It's working now.

To import into Google and display on a webpage:
Be sure to rename the calendar, otherwise you are exposing your API key.

If you don't need to embed it, you can stop after step 4 and still get the calendar on your phone, etc.
Title: Re: Google Calendar sync to MM Calendar
Post by: tensai on February 15, 2013, 09:21:43 AM
I tried this out but it's not working quite right. The calendar shows up in Google Calendar, but not every event is listed. I see the events in the ical export, so it seems to be that Google is ignoring some of them.

Well now hang on, I just tried it again and this time all the events showed up. That's peculiar. I guess I'll post this reply anyway just in case somebody else has this issue.
Title: Re: Google Calendar sync to MM Calendar
Post by: TARSAR on February 15, 2013, 05:41:20 PM
Is this a one time import or is it "repopulated" on the google side when it's accessed?  I'm assuming it's updated as the calendar changes.  Very cool feature, especially for those using google apps (free or google apps for business) as their domain email service.

Update, just tested and it seems to be one time.  Hmm...if that's the case, I wonder if there's a way to have it update as needed?
Title: Re: Google Calendar sync to MM Calendar
Post by: kduncklee on February 15, 2013, 09:07:53 PM
If you follow the directions above it will update as the MM calendar updates. Google is rather slow at processing updates and it can take a few hours.
Title: Re: Google Calendar sync to MM Calendar
Post by: SDCART1 on March 05, 2013, 01:32:31 PM
You can also use it in your Outlook calendar.  My County has low tolerance for linking to outside sources, but this worked just fine.  While in Outlook, go to the Tools tab and open Account Settings.  Click on internet Calendars, then New.  It will open a box to paste the calendar URL into:  (https://www.radishworks.com/MissionManager/api.php?Get=calICS&APIKey=YOUR_API_KEY).  Your MM calendar appears listed under Other Calendars.  When you click the box next to it, it will pop up next to your regular Outlook calendar.