I was able to get MMM-CalendarExt3 working, but I’m struggling with MMM-CalendarExt3Agenda. I cannot figure out what I’m doing wrong. None of the events appear in the MMM-CalendarExt3Agenda module but they do appear in the MMM-CalendarExt3 module. Any help is appreciated.
Google Calendar Config
{
module: "MMM-GoogleCalendar",
header: "Family Calendar",
classes: "calendar-agenda",
config: {
calendars: [
{
symbol: "calendar-week",
calendarID: "myemail@gmail.com",
name: "mycalendar"
},
],
broadcastEvents: true,
broadcastPstEvents: true,
maximumEntries: 100
}
},
MMM-CalendarExt3 Config
{
module: "MMM-CalendarExt3",
position: "top_center",
title: "Family Calendar EXT3",
config: {
mode: "month",
instanceID: "Ext-Calendar-Month",
calendarSet: ['mycalendar'],
weeksInView: 3,
preProcessor: (e) => {
if (e.start?.dateTime) {
e.startDate = new Date(e.start.dateTime).valueOf()
} else if (e.start?.date) {
e.startDate = new Date('${e.start.date}T00:00:00').valueOf()
}
if (e.end?.dateTime) {
e.endDate = new Date(e.end.dateTime).valueOf()
} else if (e.end?.date) {
e.endDate = new Date('${e.end.date}T00:00:00').valueOf()
}
e.title = e.summary
e.fullDayEvent = (e.start?.date) ? true : false
return e
}
}
},
MMM-CalendarExt3Agenda Config
{
module: "MMM-CalendarExt3Agenda",
position: "top_left",
title: "Something",
config: {
instanceId: "Ext3-Calendar-Agenda",
calendarSet: ['mycalendar'],
firstDayOfWeek: 1,
startDayIndex: -1,
endDayIndex: 10,
showMiniMonthCalendar: false,
preProcessor: (e) => {
if (e.start?.dateTime) {
e.startDate = new Date(e.start.dateTime).valueOf()
} else if (e.start?.date) {
e.startDate = new Date('${e.start.date}T00:00:00').valueOf()
}
if (e.end?.dateTime) {
e.endDate = new Date(e.end.dateTime).valueOf()
} else if (e.end?.date) {
e.endDate = new Date('${e.end.date}T00:00:00').valueOf()
}
e.title = e.summary
e.fullDayEvent = (e.start?.date) ? true : false
return e
}
}
},