MMM-MyCommute icon indicating copy to clipboard operation
MMM-MyCommute copied to clipboard

Calendar Events not displaying

Open djshubs opened this issue 4 years ago • 4 comments

I’m using Apple’s public iCal to broadcast events synced to my iCloud. However, when I add events with Location, it doesn’t provide me travel time to destination.

{ module: 'MMM-MyCommute', position: 'top_left', header: 'Commute', config: { apiKey: 'hidden', origin: 'hidden', startTime: '04:00', endTime: '22:00', maxCalendarEvents: 3, destinations: [ { destination: 'addr1', label: 'Study', mode: 'walking', color: '#ff1990', hideDays: [0,6] }, { destination: 'Addr2', label: 'Hidden', color: '#fa4848' } ] } },

djshubs avatar Aug 25 '20 13:08 djshubs

I'll add on to this one, I am seeing the same issue with my shared google calendar events, would love to have this feature work, but I don't think there is much I can do on the config.js side.....

{ module: 'MMM-MyCommute', position: "top_center", config: { apiKey: 'private', origin: 'location', startTime: '06:45', endTime: '18:30', destinations: [ { destination: 'location', label: 'name', mode: 'driving', color: 'green' }, { destination: 'location', label: 'name', mode: 'driving', color: 'yellow' }, { destination: 'location', label: 'name', mode: 'driving', color: 'blue' } ], maxCalendarEvents: 5, maxCalendarTime: 604800000
} },

ger19wmu avatar Nov 18 '20 13:11 ger19wmu

I couldn't get my appointment locations from my google calendar either...

{ module: 'MMM-MyCommute', position: 'top_left', config: { apiKey: 'APIKEY', origin: 'Address1, startTime: '00:00', endTime: '23:59', hideDays: [0,6],

		maxCalendarEvents: 3,
		maxCalendarTime: 24 * 60 * 60 * 1000 , 
		calendarOptions: [{mode: 'driving'}],
	
							
		destinations: [
		  {
			destination: 'address2',
			label: 'Work',
			mode: 'driving',
			avoid: 'tolls'
			
		  },
		  {
			destination: 'address3',
			label: "Condo",
			mode: 'driving'
		  },
		  {
			destination: 'address4',
			label: 'Pub',
			mode: 'walking'
		  }
		  
		],

Please help!!

yoh33zy avatar Dec 10 '20 00:12 yoh33zy

If you're having this issue, could you share the locations that are in the calendar module's events?

Running the following script in a JavaScript terminal on your mirror web interface should give the locations:

Object.values(MM.getModules().find(a=>a.name == "calendar").calendarData)[0].map(a=>a.location)

qistoph avatar Feb 23 '21 12:02 qistoph

Calendar events location not working for me as well. I seen 2 entries only one time, but after 10min, when update happened, they have disappeared.

silvannn avatar Jun 29 '21 07:06 silvannn