Read the statement by Michael Teeuw here.
Stock calendar module does not honor options
-
I’m new to this so I suspect I’ve done something wrong. I also don’t know what info is needed for folks to help me.
I started with a fresh OS install and then used sdeitwell’s install script. I’ve added a few modules, including MMM-MonthlyCalendar to display 4 weeks of a calendar. Because that module uses the calendars specified in the stock calendar’s config, I have all my calendars listed in the stock calendar with hiddenOnStartup set to true.
Then I also have another instance of the stock calendar with just one calendar. That one, my Dinner Menu, has a single all-day event each day and what I want is to list the next week or so’s dinners (so I don’t have to keep answering my son’s question of “what’s for dinner?”).
That works except that I don’t want the symbol shown next to it and I think I’d like to turn off the fade. Neither works, however. Whatever I try, the symbol shows next to the entries and the fade is there. Here’s what I’ve got in my config file (I also tried MMM-CalendarExt3Agenda which works but I actually prefer the stock calendar’s layout for this.):
//---------------------------------------------------------------------------------------------- { module: "calendar", // disabled: true, hiddenOnStartup: true, header: "Dinner Menu", position: "top_left", coloredText: true, coloredBackground: true, fade: false, displaySymbol: false, config: { calendars: [ { // Roger's Calendar name: "Roger", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: "true", color: "#ffcc00" }, { // Rachel's Calendar name: "Rachel", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#07790e", // "#21ff00", }, { // Jared's Calendar name: "Jared", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#fd0018", // "#e3240a" }, { // Sara's Calendar name: "Sara", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#2c48cf", // "#ba10fc", // "#2c48cf", bgColor: "#dd3367" }, { // Ezra's Calendar name: "Ezra", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "$1313fc", // "#ffad46" }, { // Cal Poly SLO Calendar name: "CalPoly", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#ca7319" }, { // SUNY Cortland Calendar name: "SUNYCortland", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#2c48cf" }, { // SFUSD Academic Calendar name: "SFUSD", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: true, color: "#ffad46" } ] } }, //------------------------------------------------------------------------- { module: "calendar", header: "Dinner Menu", position: "top_left", coloredText: true, coloredBackground: true, // maximumNumberOfDays: 7, // maximumEntries: 4, // displaySymbol: false, // limitDays: 7, fade: false, config: { calendars: [ { // Dinner Menu name: "Dinner Menu", url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: "true", color: "#3333ff", displaySymbol: false, // maximumNumberOfDays: 7, maximumEntries: 8, // limitDays: 7, }, ] } }, { module: "MMM-CalendarExt3Agenda", position: "top_left", title: "My Agenda", config: { instanceId: "basicCalendar", // locale: 'de-DE', firstDayOfWeek: 1, startDayIndex: 0, endDayIndex: 10, calendarSet: ['Dinner Menu'], useWeather: false, onlyEventDays: 8, showMiniMonthCalendar: false, } }, //------------------------------------------------------------------------
Here’s the config for the MonthlyCalendar. Note that I don’t think the calendar set does anything there; I just haven’t taken it out yet:
{ module: "MMM-MonthlyCalendar", position: "bottom_right", config: { // See "Configuration options" for more information. mode: "fourWeeks", firstDayOfWeek: "monday", hideCalendars: [ "Dinner Menu" ], calendars: [ { // Dinner Menu url: "https://calendar.google.com/calendar/ical/ broadcastPastEvents: "true", bgColor: "#3333ff" }, { // Roger's Calendar url: "https://calendar.google.com/calendar/ical/ braodcastPastEvents: "true", color: "#00ff00" } ] } },
Lastly, here’s what I’m seeing:
Any tips or suggestions would be most welcome. Thanks!
-
@UncleRoger said in Stock calendar module does not honor options:
coloredText: true,
coloredBackground: true,
fade: false,
displaySymbol: falsethose options must be inside the config:{}
section.everything inside is to the module, everything outside is to magicmirror
-
@sdetweil Thank you so much! That did the trick!
I guess everything goes inside the config block other than the module name and position? I’ll re-read the docs to get more info on that.
Thanks again!
-
@UncleRoger all of these
https://docs.magicmirror.builders/modules/configuration.html#module-configurationgo OUTSIDE the config:{} section, and are MM control properties
everything MODULE related goes INSIDE the config:{}there ARE some modules that articulate using the MM control properties too
header, classes, … -
@sdetweil Okay, I think that makes sense. Thanks!