Read the statement by Michael Teeuw here.
MMM-CalenarExt3 : eventTransformer not working on evets with specific start time
-
In the code below, events with “Bday” in the title are correctly colored but the “birthday-icon” is not applied. They are all full day events. The intent is that each person has a color and icon applied to their events but events with a specific start time are not transformed. What am I doing wrong?
I will appreciate specifics and examples of correct code. I’ve had the Pi running a week and these are my first attempts at coding and I’m struggling with some of it.
I tried using eventNames and then using the custom.css to color events but couldn’t get that to work for any events including full day.
```
module: “MMM-CalendarExt3”,
position: “bottom_bar”,
title: “May Cubed”,
config: {
mode: “month”,
instanceId: “combinedCalendar”,
locale: ‘en-US’,
maxEventLines: 6,
showMore: true,
firstDayOfWeek: 0,
useMarquee: false,
calendarSet: [], //<-- can enter “name of calendar from calendar module” to display only that one. Works in combination with InstanceIdeventTransformer: (ev) => { if (ev.title && ev.title.search("Bday") > -1) { ev.color = "#3056FF" //ev.symbol = "birthday-cake" <--is there something to do this in transform? I have them as keyword customEvents under the calendar module } else if (ev.title && ev.title.search("Name1") > -1) { ev.color = "#80ef80", //ev.symbol = "flower-tulip" <--same comment as above
-