MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Stock calendar module does not honor options

    Scheduled Pinned Locked Moved Solved Troubleshooting
    calendarconfigsetup and configure
    5 Posts 2 Posters 376 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      UncleRoger
      last edited by

      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:

      b80c0ae2-a09d-470a-a46d-a89598092eb3-394299905_1290422785711967_1431063864895985721_n.jpg

      Any tips or suggestions would be most welcome. Thanks!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @UncleRoger
        last edited by

        @UncleRoger said in Stock calendar module does not honor options:

        coloredText: true,
        coloredBackground: true,
        fade: false,
        displaySymbol: false

        those options must be inside the config:{}
        section.

        everything inside is to the module, everything outside is to magicmirror

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        U 1 Reply Last reply Reply Quote 1
        • U Offline
          UncleRoger @sdetweil
          last edited by

          @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!

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @UncleRoger
            last edited by

            @UncleRoger all of these
            https://docs.magicmirror.builders/modules/configuration.html#module-configuration

            go 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, …

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            U 1 Reply Last reply Reply Quote 1
            • U Offline
              UncleRoger @sdetweil
              last edited by

              @sdetweil Okay, I think that makes sense. Thanks!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy