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.

    Calendar number of events to display

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 292 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.
    • C Offline
      cyclonej
      last edited by

      I am new to Raspberry Pi and MM and CSS and Github, but learning fast. I am running MM on a Raspberry Pi 5. I am using the default MM calendar module to show upcoming stuff in upper left and MMM-CalendarExt3 module to show previous, current, and next 2 weeks.

      I want the default MM calendar module to show only a few days (maybe up to a week of upcoming events) and I want the MMM-CalendarExt3 to show everything in the visible date range (previous week, current week, and next 2 weeks). The purpose being to see near-future detail in a quick view at upper left while also being able to see further future at bottom.

      The problem I am encountering is it seems that if I limit the default MM calendar module to a desirable number of events (using maximumEntries=10), then the MMM-CalendarExt3 module also will hide events. In my tinkering, I have not found a way to limit the MM calendar module while not limiting the MMM-CalendarExt3 module. I tested using the ExcludedEvents filterBy, which worked for the default MM calendar module, but unfortunately also suppressed events in the MMM-CalendarExt3 module. I also tested with the fadePoint in the default MM calendar module, but this does not seem to do much (the fading is too gradual for a long list of events).

      Does anyone have any pointers for how I might limit the number of events shown in the default MM calendar module while not limiting the number of events shown in the MMM-CalendarExt3 module?

      config.js excerpts:

                     {
                              module: "calendar",
                              header: "upcoming",
                              position: "top_left",
                              config: {
                                      maximumEntries: 50,              //don't want to show this many, but if I reduce, then events start disappearing from MMM-CalendarExt3
                                      fade: true,
                                      fadePoint: 0,                                     //does not help with hiding
                                      wrapEvents: true,
                                      wrapTitleLines: true,
                                      broadcastEvents: true,
                                      broadcastPastEvents: true,
                                      titleReplace: {
                                              'Christmas Day':'Christmas',
                                      },
                                      maximumNumberOfDays: 45,
                                      excludedEvents: [
                                              "Hanukkah",
                                              "Kwanzaa",
                                              //{filterBy: "", until: "7 days"},          //testing
                                      ],
                                      hideDuplicates: true,
                                      coloredSymbol: true,
                                      coloredText: true,
                                      fetchInterval: 60 * 60 * 1000,
                                      ...
                                      },
                                      {
                                                              module: "MMM-CalendarExt3",
                                                              position: "bottom_bar",
                                                              header: "Family Calendar",
                                                              config: {
                                                                      mode: "week",
                                                                      locale: 'en-US',
                                                                      maxEventLines: 10,
                                                                      firstDayOfWeek: 0,
                                                                      calendarSet: [],
                                                                      skipDuplicated: true,
                                                                      useWeather: true,
                                                                      displayWeatherTemp: true,
                                                                      weekIndex: -1,
                                                                      weeksInView: 4,
                                                                      useMarquee: true,
                                        ...
                                         },
      

      faa452fc-b5d4-46b4-9240-b73879886dbb-image.png

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

        @cyclonej did you put on the fix? pinned at the top of troubleshooting yesterday

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          cyclonej @sdetweil
          last edited by

          @sdetweil I found a fix.

          1. add a second default MM calendar module as a complete copy of the original, with just a few changes:
          //position: "",                      //commented out so this module does not show on screen
          maximumNumberOfDays: 45,
          
          1. change the default MM calendar module to:
          maximumNumberOfDays: 10,
          
          1. change the names of all the calendars in the original default MM calendar module, so they are unique and distinct from the second default MM calendar module.

          2. used the CalendarSet in the MMM-CalendarExt3 module to select the calendars in the hidden default MM calendar module

          S 1 Reply Last reply Reply Quote 0
          • C cyclonej has marked this topic as solved on
          • S Offline
            sdetweil @cyclonej
            last edited by sdetweil

            @cyclonej yes. that is one of the cool ways to use cal and Ext3 together

            v2.30 there is a bug in the broadcaster

            if you put in the fix listed in troubleshooting section, then it
            doesn’t affect what is sent

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            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