<!-- Paste your configuration here. Don't forget to remove any sensitive information! -->
{
module: "MMM-CalendarExt3", //https://github.com/MMRIZE/MMM-CalendarExt3
position: "lower_third",
//header: "FamCal",
config: {
mode: "month",
useWeather: false,
weekIndex: 0,
weeksInView: 5,
instanceId: "basicCalendar",
locale: "en-GB",
maxEventLines: 6,
firstDayOfWeek: 1,
headerWeekDayOptions: {weekday: "short"},
refreshInterval: 60 * 10 * 1000, // 3600000, // every hour // 60 * 10 * 1000, // too frequent refresh. 10 minutes is enough.
calendarSet: ["Family Calendar", "UK Holidays", "Birthday",],
manipulateDateCell: (cellDom, events) => {
if (Array.isArray(events) && events.some(e => e.calendarName === 'Birthday')) {
let dateIcon = document.createElement ('span')
dateIcon.classList.add ('fa', 'fa-fas', 'fa-fw', 'fa-gift')
dateIcon.style.color = 'cornflowerblue'
let header = cellDom.querySelector ('.cellHeader')
let celldate = header.querySelector ('.cellDate')
header.insertBefore (dateIcon, celldate)
}
},
eventTransformer: (ev) => {
if (ev.calendarName === 'Birthday') ev.skip = true
else if (ev.title.search("B -") > -1) ev.color = "brown"
else if (ev.title.search("C -") > -1) ev.color = "hotpink"
else if (ev.title.search("E -") > -1) ev.color = "orange"
else if (ev.title.search("I -") > -1) ev.color = "green"
else if (ev.title.search("G") > -1) ev.color = "white"
else if (ev.title.search("Bday") > -1) ev.title = ""
return ev
},
eventPayload: (payload) => {
for (let ev of payload) {
if (ev.fullDayEvent) {
let gap = +ev.endDate - +ev.startDate
if (gap % (1000 * 60 * 60 * 24) === 0) {
ev.startDate = new Date(+ev.startDate).setHours(0, 0, 0, 0)
ev.endDate = new Date(+ev.startDate + gap).setMilliseconds(-1)
}
}
}
return payload
},
},
},
Environment
System Information
WAYLAND_DISPLAY: undefined; DISPLAY: :0.0; ELECTRON_ENABLE_GPU: undefined
Which start option are you using?
node --run start
Are you using PM2?
No
Module
None
Have you tried disabling other modules?
Have you searched if someone else has already reported the issue on the forum or in the issues?
What did you do?
Configuration
see https://forum.magicmirror.builders/post/129270Steps to reproduce the issue:
add content to config.js ,
no need to install module itself.
What did you expect to happen?
should have worked.. (used to before 2.33)
fails on npm run coniig:check
'temp fix'
add
to top of config.js
What actually happened?
npm run config:check
[2025-12-19 11:20:11.692] [INFO] [check_config] Checking config file /home/sam/MagicMirror/config/config.js ...
[2025-12-19 11:20:11.785] [ERROR] [check_config] Your configuration file contains syntax errors :(
Line 2163 column 26: 'document' is not defined.
Additional comments
No response
Participation