Read the statement by Michael Teeuw here.
Calendar events mixed up after update
-
Just updated to latest (and now currently on develop to fix MMM-CalendarExt3 issue).
I have a Family Calendar which shows on an MMM-CalendarExt3 section linked to google calendar, and another small default calendar module which I use to show weekly meal plan from a second google calendar. The config separated the events properly, but now after the update I’m seeing family calendar events in the meal calendar area.Is there a way to purge existing events and have magic mirror ‘repoll’ from google calendar?
My config in part:
{ module: "MMM-CalendarExt3", position: "bottom_bar", title: "Family Calendar", config: { mode: "month", // instanceId: "basicCalendar", locale: 'en-US', maxEventLines: 5, firstDayOfWeek: 0, calendarSet: ["family_calendar"], fontSize: "16px", eventHeight: "20px", useSymbol: false, useMarquee: true }, }, { module: "calendar", ////////header: "Family Calendar", position: "top_center", hiddenOnStartup: true, config: { displaySymbol: false, defaultSymbol: "none", broadcastPastEvents: true, wrapEvents: true, calendars: [ { // fetchInterval: 7 * 24 * 60 * 60 * 1000, // symbol: "calendar-check", name: "family_calendar", color: "white", url: "https://calendar.google.com/calendar/ical/........../basic.ics" },{ module: "calendar", header: "Meal Plan", position: "top_right", //hiddenOnStartup: true, config: { fade: false, limitDays: 7, limitDaysNeverSkip: true, broadcastPastEvents: true, maxTitleLength: 15, wrapEvents: true, maxTitleLines: 2, calendars: [ { // fetchInterval: 7 * 24 * 60 * 60 * 1000, // symbol: "calendar-check", name: "meal_calendar", symbol: "utensils", color: "yellow", //pastDaysCount: "1", //maximumNumberOfDays: "7", //maximumEntries: "8", url: "https://calendar.google.com/calendar/ical/............./basic.ics" }, ] } }, -
@jpmiller25 can u look at the output of npm start and see
the broadcast messages from the default calendarand see if you think they are correct
the default calendar refreshInterval is 7 days
(cause we used to pound the calendarlabs example hundreds of times a minute) -
@sdetweil there’s a lot there, but it looks right to me. I don’t see a value in the event that identifies the calendar ‘name’
Example:{ "type": "VEVENT", "params": [], "start": "2024-08-19T05:00:00.000Z", "datetype": "date", "end": "2024-08-20T05:00:00.000Z", "dtstamp": "2025-01-31T04:26:23.000Z", "uid": "mkuj83t7bo4pp99s97k75rifo8@google.com", "created": "2024-04-12T19:03:31.000Z", "lastmodified": "2024-04-12T19:03:31.000Z", "sequence": "0", "status": "CONFIRMED", "summary": "First day school", "transparency": "TRANSPARENT", "method": "PUBLISH" } -
@jpmiller25 the url is broadcast as part of the data, so the events are tied to the url
name is not one of the default calendar properties, so we cant send it
i think he uses the url to find the config entry
-
@sdetweil OK. What’s strange is the MMM-CalendarExt3 section (Family Calendar) is working perfectly, the calendar is showing the events selected in calendarSet: []
It’s the meal calendar which is showing the default module that is showing events from the family calendar. -
Is there a way to delete any saved events and force a refresh?
-
@jpmiller25 sorry, don’t understand the wording of the last sentence.
It’s the meal calendar which is showing the default module that is showing events from the family calendar
the default calendar doesnt know names
if the calendars are configured in one calendar instance, then the events are merged together by date
-
@jpmiller25 what does that mean saved events?
we just ask the calendar provider to give us the calendar data,
we have no info on how they got the way they are@MMRIZE
in the config above, Ext3 is configured for one calendarset
but there are two sources
what does Ext3 do with the events from extra source? throw them away?refresh, the module has a refreshInterval value
any faster than that requires restarting MagicMirror
