-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Environment
MagicMirror² version: v2.33.0
Node version: v22.21.1
npm version: 10.9.4
Platform: Docker
Which start option are you using?
node --run server
Are you using PM2?
I don't know
Module
calendar
Have you tried disabling other modules?
- Yes
- No
Have you searched if someone else has already reported the issue on the forum or in the issues?
- Yes
What did you do?
Configuration
var config = {
address: '0.0.0.0',
port: 8080,
ipWhitelist: [],
language: 'nl',
timeFormat: 24,
units: 'metric',
logLevel: ["LOG", "WARN", "ERROR"],
modules: [
{
module: 'alert',
},
{
module: 'clock',
position: 'top_right',
config: {
displaySeconds: false,
dateFormat: 'dddd LL'
}
},
{
module: 'calendar',
position: 'bottom_left',
config: {
fetchInterval: 600000,
maximumNumberOfDays: 2,
maxTitleLength: 50,
fade: false,
getRelative: 0,
urgency: 0,
timeFormat: 'dateheaders',
dateFormat: 'dddd D MMMM',
fullDayEventDateFormat: 'ddd D MMMM',
broadcastEvents: false,
sliceMultiDayEvents: true,
colored: true,
defaultSymbolClassName: '',
calendars: [
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'xxx',
url: 'https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics',
},
{
name: 'Feestdagen',
url: 'https://calendar.google.com/calendar/ical/nl.be%23holiday%40group.v.calendar.google.com/public/basic.ics',
}
]
},
}
]
};
Steps to reproduce the issue:
I run magic mirror as a screensaver with fully kiosk. Therefore, the page is reloaded numerous times during the day. I think it schedules for CALENDAR_EVENTS somehow. After a while (it can be a day or more), i can see it starts to update the calendar (you can see it fade out and fade back in) the whole time.
When looking at the websocket (in my browser, it gets the same websocket messages), i can see a lot of those messages being send:
42/calendar,["CALENDAR_EVENTS",{"id":"module_2_calendar","url":"https://calendar.google.com/calendar/ical/xxx/private-yyy/basic.ics","events":[{"title":"Turnen","startDate":"1763661600000","endDate":"1763665200000","fullDayEvent":false,"recurringEvent":true,"firstYear":2025,"location":"xxx","geo":false,"description":false},{"title":"Vioolles bij xxx","startDate":"1763746200000","endDate":"1763748000000","fullDayEvent":false,"recurringEvent":true,"firstYear":2025,"location":false,"geo":false,"description":false}]}]
I have 7 calendars and they get pushed all the time with the same values.
When i restart magic mirror, the calendar stops refreshing as it should be. I believe it starts when the calendar is being refreshed.
What did you expect to happen?
I would expect updates to be send at midnight, or when an event has finished.
What actually happened?
After a while, it starts to send the same update over and over.
Additional comments
No response
Participation
- I am willing to submit a pull request for this change.