Hello all, just have a couple fine tuning questions for you. Both seem easy but I can’t seem to figure out why it’s not working. FWIW my MM has been running great for months now, finally doing some tweaking.
So I’ve got MMM-Calendarext3 setup to only show 1 calendar, it’s my family google account. The last 2 things I would like to accomplish are having the text for long events scroll with useMarquee: true and then also to have the eventTransformer search for a name in the event title and change the color according to that.
For some reason, I can’t get either of these to work. Config.js below. If I understand correctly, I shouldn’t need to add anything to custom.css correct? With the config file below, my calendar does not load at all, just get blank screen stating please create a config file, if I hash out the transformer stuff then it loads but never scrolls (marquee). Any advice from ya’ll smart folks?
{
module: "MMM-CalendarExt3",
position: "bottom_bar",
title: "",
config: {
mode: "",
weekIndex: 0,
weeksInView: 5,
instanceId: "basicCalendar",
locale: 'en-EN',
maxEventLines: 5,
fontSize: '26px',
firstDayOfWeek: 0,
refreshInterval: 120000,
animationSpeed: 0,
useMarquee: true,
useSymbol: false,
useWeather: true,
displayWeatherTemp: true,
calendarSet: ['us_holiday','family'],
weatherPayload: (payload) => {
if (Array.isArray(payload?.forecastArray)) {
payload.forecastArray = payload.forecastArray.map((f) => {
f.maxTemperature = Math.round(f.maxTemperature * 9 / 5 + 32)
f.minTemperature = Math.round(f.minTemperature * 9 / 5 + 32)
return f
})
}
return payload
}
eventTransformer: (ev) => {
if (ev.title.search('Allie') > -1) ev.color = 'blue'
return ev
}
}
},