MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Google Calendar not loading for one calendar

Open csdorman opened this issue 1 year ago • 20 comments

I'm running into a strange issue with my MM configuration.

I am pulling data from 4 different Google calendars on my configuration - two of them are calendars from the same Google account. One of them loads fine, and the other does not load at all.

Both of them are using the private iCal link - one of them is a "group" private link and the other is just a simple private iCal link.

Has anyone run into this issue or found a solution?

Thanks!

csdorman avatar Sep 16 '23 20:09 csdorman

can you show the configuration for the calendar module you can XXX out that URLs Don't change anything else

sdetweil avatar Sep 16 '23 20:09 sdetweil

Here it is:


{
			module: "calendar",
			header: "Family Calendars",
			position: "bottom_center",
			defaultSymbol: "calendar",
			showLocation: true,
			showEnd: true,
			classes: "calendar_list",
			//maximumNumberOfDays: 14,
			config: {
				calendars: [
					{
						symbol: "music",
						url: "https://googlecalendarlink",
						color: "#4986ff",
						name: "csd_work",
						//maximumNumberOfDays: "7",
						broadcastPastEvents: false,
						maximumEntries: 100,
						auth: {
							user: 'email1@gmail',
							pass: 'password',
							method: 'basic'
							}
					},
					{
						symbol: "person",
						url: "https://googlecalendarlink",
						color: "blue",
						name: "csd_personal",
						//maximumNumberOfDays: "7",
						broadcastPastEvents: false,
						maximumEntries: 100,
						auth: {
							user: 'email1@gmail',
							pass: 'password',
							method: 'basic'
							}
					},
					{
						symbol: "music",
						url: "https://googlecalendarlink",
						color: "green",
						name: 'wife_work',
						//maximumNumberOfDays: "7",
						broadcastPastEvents: false,
						maximumEntries: 100,
						auth: {
							user: "email2@gmail",
							pass: "password",
							method: "basic"
							}
					},
					{
						symbol: "house",
						url: "https:googlecalendarlink",
						color: "orange",
						name: "house",
						//maximumNumberOfDays: "14",
						broadcastPastEvents: true,
						pastDayCount: '14',
						maximumEntries: 100,
						auth: {
							user: "email3@gmail",
							pass: "password",
							method: "basic"
							}
					},
				]
			}
		},

csdorman avatar Sep 17 '23 13:09 csdorman

with the public or secret URL you shouldn't need any of the authentication information in your blocks So what I would do is test just make sure that you can download each ICS

at the command line do

curl -sL ical_url  >xxx.ics

for each Ical url. make sure it's the Ical url , not embedded .

after each command check the contents of the xxx.ics to make sure that the download work properly

sdetweil avatar Sep 17 '23 13:09 sdetweil

Thanks - I've removed the authentication and tested it from the terminal, and I can download the .ICS files, and they appear to be fine.

However, the calendar still isn't appearing in the MagicMirror calendar module.

csdorman avatar Sep 17 '23 19:09 csdorman

would u be willing to share the calendar config and the urls so i can test?

don't post here.

send to my email , the same userid as here, at gmail

sdetweil avatar Sep 17 '23 20:09 sdetweil

Same Problem here

Themaster312 avatar Oct 02 '23 08:10 Themaster312

I'm closing this as there is no response

khassel avatar Oct 15 '23 20:10 khassel

Did you ever fix this . I have 3 google calendar I am sharing and one of them freezes MM. Curl download works find it has to be the way its processing the data. I can email you a URL

Let me know if you need me to open a new issue

faspina avatar Jan 05 '24 00:01 faspina

@faspina yes please sdetweil at gmail

sdetweil avatar Jan 05 '24 01:01 sdetweil

@faspina yes please sdetweil at gmail

Sent @sdetweil please verify

faspina avatar Jan 05 '24 01:01 faspina

SO... the calendar loads fine on 2.25, and 2.26 on multiple machines..

so, its got to be environmental..

how did you upgrade to the release you are on?

my script, or manually?

please run this

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force

then restart mm

can u show me the config.js for this cal, xxx out the url.

sdetweil avatar Jan 05 '24 02:01 sdetweil

No luck on the upgrade script. That calendar is shared from my wifes account to mine but I can read/write . I pulled the secret Url right from her account and its not working.

faspina avatar Jan 05 '24 03:01 faspina

what do you mean on no luck w upgrade? it did the upgrade, but no difference?

but you can curl download the file using the secret url?

sdetweil avatar Jan 05 '24 03:01 sdetweil

Yes to both question

upgrade went through , no difference

the url works fine when I down lot or import it to another calendar

faspina avatar Jan 05 '24 04:01 faspina

and it works fine on my machines, intel desktop, raspi 4, raspi3, odroid.

sdetweil avatar Jan 05 '24 04:01 sdetweil

I had what seems to be a similar issue. Turns out, my calendar was just to big. I've used the same calendar for 15 years and searching through all that slowed everything down to a crawl. My swap blows up and then everything just halts. Actually, if I let it keep going for about 5 minutes it finally finishes. Searching for recurring events seems to be what takes so long after looking at the debug logs.

michaelwschultz avatar Mar 01 '24 06:03 michaelwschultz