randomBrainstormer/MMM-GoogleCalendar

Calendar not Loading in Magic Mirror

Opened this issue · 5 comments

Hi there,

So I've gone through the installation instructions, created credentials etc, and ran authorize.js, which prints out a list of 10 events from my default google calendar in the terminal (so I am sure it must be authorizing okay.) But for the life of me, I cannot get MMM-GoogleCalendar to load! Here is the relevant section of my config.js screen (with the ID altered.):

		{
			module: 'MMM-GoogleCalendar',
			header: "Family Events",
			position: "top_left",
			config: {
				calendars: [
					{
						symbol: "calendar-week",
						calendarID: "familyXXXXXXXXXXXXX"
					},
				],
			}
		},

I've refreshed MM a bunch of times and done a full reboot, and no luck. When I take the above out, and put the default calendar module in its place, it renders fine. Any ideas?

I just set this up this weekend, did you include the full calendar domain including @group.calendar.google.com?

familyXXXXXXXXXXXXXXXXXXXX@group.calendar.google.com

It's possible the calendarID is indeed wrong. To find your Google Calendar ID:

  1. Head over to your Google Calendar by visiting https://calendar.google.com/.
  2. Look for the settings icon (resembling a gear) in the upper right corner and click on it to access Settings.
  3. On the left side, navigate to Settings for my calendars, and select the calendar you wish to display on MMM-GoogleCalendar.
  4. Scroll until you find the Integrate calendar section. Your calendar ID is listed there. This ID usually ends with @group.calendar.google.com.
  5. There's no need to modify any settings here—just copy the Calendar ID and replace it in the module configuration.

Let us know if the above steps work, as an alternative, you can try to check for logs and see if there was any issue with the plugin.

I'm facing the same issue, although this is the first module I'm adding so I don't have a reference point. My calendar ID on google ends with @gmail.com since it is my own calendar. Do I need to make a group calendar for it to work? I have the same code block as original poster

Hi @vih-rar , the module should work with any google calendar. To check if is the correct ID you can use this steps from the troubleshooting guide:

Finding Your Google Calendar ID: If you're unsure where to find your Google Calendar ID, it's quite straightforward:

  • Head over to your Google Calendar by visiting https://calendar.google.com/.
  • Look for the settings icon (resembling a gear) in the upper right corner and click on it to access Settings.
  • On the left side, navigate to Settings for my calendars, and select the calendar you wish to display on MMM-GoogleCalendar.
  • Scroll until you find the Integrate calendar section. Your calendar ID is listed there. This ID usually ends with @group.calendar.google.com.
  • There's no need to modify any settings here—just copy the Calendar ID and replace "MyGoogleCalendarIDHere" in the module configuration with your actual ID.

Thank you, it worked I had placed the module in the incorrect directory (modules/default instead of modules/ )