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.

    Unable to get MMM-Calendar to broadcast past events

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 127 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.
    • T Offline
      thecaptainzap
      last edited by

      I’m a new user trying to get my MagicMirror up and running. I’m running into an issue with MMM-Calendar or MMM-CalendarExt3. I’m using the “week” view and as soon as events are in the past, it won’t show any of them.

      I’ve done a bit of browsing on the forum (amazing community of helpful people, BTW!) and believe I have everything aligned, including setting maximumEntries, maximumNumberOfDays, pastDaysCount, and broadcastPastEvents in MMM-calendar.

      I created a test calendar to try to simplify things, and created 5 events, one on each day of the week this week. When running MagicMirror, I get a notification that Calendar-Fetcher for [FAMILY] is broadcasting 3 events, presumably today, tomorrow and Friday. See below for the 5 expected events.

      Here’s my code (with personal details omitted):

      	modules: [
                             		{
                             			module: "alert",
                             		},
                             		{
                             			module: "calendar",
                             			position: "top_right",
                             			maximumEntries: 10000,
                             			maximumNumberOfDays: 28,
                             			pastDaysCount: 14,
                             			maxTitleLength: 50,
                             			showLocation: false,
                             			wrapEvents: true,
                             			broadcastPastEvents: true,
                             			config: {
                             				calendars: [
                             					{
                             						//fetchInterval: 7 * 24 * 60 * 60 * 1000,
                             						url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics",
                             						name: "Holidays",
                             						color: "#7c7c7c",						
                             					},
                             					{
                             						//Family Calendar
                             						url: "https://calendar.google.com/calendar/ical/[PRIVATE CALENDAR ADDRESS]/basic.ics",
                             						name: "Family",
                             						color: "#e7ba51",
                             					},
                             				]
                             			}
                             		},
                             		{
                             			module: "MMM-CalendarExt3",
                             			position: "top_left",
                             			title: "",
                             			config: {
                             				instanceID: "familyCalendar",
                             				mode: "week",
                             				weekIndex: 0,
                             				weeksInView: 2,
                             				maxEventLines: 5,
                             				firstDayOfWeek: 0,
                             				cellDateOptions: {month: 'long', day: 'numeric'},
                             				maxEventLines: 8,
                             				calendarSet: ['Holidays', 'Family', 'School'],
                             			}
                             		},
                             		
      

      Here’s a screengrab of my Google Calendar and what I would expect to see in MMM-CalendarExt3:
      calendar.jpg

      And here’s what’s on my MagicMirror:
      screen.jpg

      I’m guessing I’m missing something simple, but I just don’t see it. I appreciate everyone’s help!

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @thecaptainzap
        last edited by

        @thecaptainzap
        thanks… I missed something in your prior post

        all of these

                               			maximumEntries: 10000,
                               			maximumNumberOfDays: 28,
                               			pastDaysCount: 14,
                               			maxTitleLength: 50,
                               			showLocation: false,
                               			wrapEvents: true,
                               			broadcastPastEvents: true,
        

        go AFTER the

        config: { 
        

        line in the module definition in config.js
        as they are parameters TO the calendar module, NOT to the MagicMirror runtime

        also, this seems to be a problem

        fatal: refusing to fetch into branch 'refs/heads/_fix_clipping' checked out at '/home/tim/MagicMirror'
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @thecaptainzap
          last edited by

          @thecaptainzap did you put on the fix
          https://forum.magicmirror.builders/topic/19282/version-2.30.0-calendar-fix-for-clipping-broadcast-events

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            thecaptainzap @sdetweil
            last edited by

            @sdetweil Thanks so much for the reply! I didn’t know about that fix and have now applied it. However, it is still only broadcasting future events. I only get the 2 events (today and tomorrow). Nothing from the 24th-26th.

            I ran into the “package-lock.json” error. Removed that file, proceeded with installation. Then restarted MM. No change so rebooted the machine to feel good about myself. Ran “npm run install-mm” again after the reboot. Still no change.

            Here’s the result of the 2nd install (after reboot):

            tim@calendar:~$ cd ~/MagicMirror/
            tim@calendar:~/MagicMirror$ git fetch origin pull/3679/head:_fix_clipping
            fatal: refusing to fetch into branch 'refs/heads/_fix_clipping' checked out at '/home/tim/MagicMirror'
            tim@calendar:~/MagicMirror$ git switch _fix_clipping
            M       index.html
            Already on '_fix_clipping'
            tim@calendar:~/MagicMirror$ npm run install-mm
            
            > magicmirror@2.31.0-develop install-mm
            > npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev
            
            
            > magicmirror@2.31.0-develop postinstall
            > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
            > "
            
            
            > magicmirror@2.31.0-develop install-vendor
            > echo "Installing vendor files ...
            > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
            
            Installing vendor files ...
            
            
            up to date in 1s
            
            > magicmirror@2.31.0-develop install-fonts
            > echo "Installing fonts ...
            > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
            
            Installing fonts ...
            
            
            up to date in 1s
            MagicMirror² installation finished successfully!
            
            
            > magicmirror@2.31.0-develop prepare
            > [ -f node_modules/.bin/husky ] && husky || echo no husky installed.
            
            no husky installed.
            
            up to date in 13s
            tim@calendar:~/MagicMirror$
            

            I appreciate your time & feedback!

            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @thecaptainzap
              last edited by

              @thecaptainzap
              thanks… I missed something in your prior post

              all of these

                                     			maximumEntries: 10000,
                                     			maximumNumberOfDays: 28,
                                     			pastDaysCount: 14,
                                     			maxTitleLength: 50,
                                     			showLocation: false,
                                     			wrapEvents: true,
                                     			broadcastPastEvents: true,
              

              go AFTER the

              config: { 
              

              line in the module definition in config.js
              as they are parameters TO the calendar module, NOT to the MagicMirror runtime

              also, this seems to be a problem

              fatal: refusing to fetch into branch 'refs/heads/_fix_clipping' checked out at '/home/tim/MagicMirror'
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                thecaptainzap @sdetweil
                last edited by

                @sdetweil Thank you! I knew I was doing something silly. Moving those config settings inside the config brackets fixed my issue!!

                I think the “fatal” error was because I had already run that command once, but I can’t say for certain.

                Again, I appreciate your help on this!

                1 Reply Last reply Reply Quote 0
                • S sdetweil has marked this topic as solved on
                • 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