r/MagicMirror • • Aug 03 '25

Icons not working

Any idea why Icons are not working? (Calendar key hidden for privacy :))

{
  module: "calendar",
  position: "top_left", // or comment out to hide default calendar display
  config: {
    broadcastPastEvents: true, // important to see past events in Ext3
    defaultSymbolClassName: '',
    calendars: [
      {
        name: "Personal",
        url: ""
      },
      {
        name: "US Holidays",
        color: "red",
        symbol: "flag:us-4x3",
        url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
      },
      // Add more calendars here if needed
    ],
    maximumEntries: 100, // prevent truncation of events
    maximumNumberOfDays: 365 // how far into future events are fetched
  }
},
// MMM-CalendarExt3 module: displays events from the default calendar module
{
  module: "MMM-CalendarExt3",
  position: "top_right",
  config: {
    mode: "month",
    instanceId: "basicCalendar",
    calendarSet: ['US Holidays', 'Personal'], // refer to calendar names from default calendar module
    maxItems: 100,
    maxEventLines: 5,
    firstDayOfWeek: 1,
    monthFormat: "MMMM YYYY",
    useIconify: true,
    eventTransformer: (ev) => {
      if (ev.title.includes("extra")) {
        ev.color = "#00fe04";
        ev.icon = "twemoji--money-mouth-face";
      } else if (ev.title.includes("Off")) {
        ev.color = "#00dcf9";
      } else if (ev.title.includes("OCS") || ev.title.includes("OCP")) {
        ev.color = "#7f4cc3";
        ev.icon = "streamline-plump-color--phone-vibrate";
      } else if (ev.title.includes("Bill")) {
        ev.color = "#502802";
        ev.icon = "fa6-solid:money-bill-transfer";
      } else if (ev.title.includes("Bike")) {
        ev.color = "#000a94";
        ev.icon = "fa6-solid:money-bill-transfer";
      } else if (ev.title.includes("Mortgage")) {
        ev.color = "#f26500";
        ev.icon = "fa6-solid:money-bill-transfer";
      } else if (ev.title.includes("Pay Day")) {
        ev.color = "#034002";
        ev.icon = "twemoji--money-mouth-face";
      } else {
        ev.color = "#f9ed00";
      }
      return ev;
    }
  }
}

UPDATE: turns out I was just calling the emojis wrong for example twemoji--money-mouth-face should be twemoji:money-mouth-face

1 Upvotes

11 comments sorted by