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.

    MMM-CalendarExt3 not picking up calendar set from default calendar module

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 1.2k 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.
    • S Offline
      st98325
      last edited by sdetweil

      Hi team,

      First timer here, please help. Following is my config file. The CalendarExt3 and CalendarExt3Agenda modules are not picking up the calendars on the default calendar modules. It loads up correctly in the calendar module. Any help will be apprieciated.

      {
      module: 'MMM-CalendarExt3',
      position: 'bottom_bar',
      config: {
      mode: 'day',
      instanceId: 'myCalendar',
      locale: 'en-US',
      firstDayOfWeek: 0,
      weeksInView: 1,
      animationSpeed: 0,
      fontSize: '25px',
      calendarSet: [
      'family',
      'us_holiday'
      ]
      }
      },
      {
          module: 'MMM-CalendarExt3Agenda',
            position: 'top_left',
            header: 'My Agenda',
            config: {
              instanceId: 'myCalendar',
              locale: 'en-US',
              firstDayOfWeek: 1,
              endDayIndex: 5,
              calendarSet: [
                'family',
                'us_holiday'
              ]
            }
          },
          {
            module: 'calendar',
            position: 'hidden',
            config: {
              instanceID: 'myCalendar',
              broadcastPastEvents: true,
              calendars: [
                {
                  url: 'webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics',
                  name: 'us_holiday',
                  color: 'skyblue',
                  broadcastPastEvents: true,
                  maximalNumberOfDays: 365,
                  maximumEntries: 100
                },
                {
                  url: '****',
                  name: 'family',
                  color: 'red',
                  broadcastPastEvents: true,
                  maximalNumberOfDays: 365,
                  maximumEntries: 100
                }
              ]
            }
          },
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @st98325
        last edited by sdetweil

        @st98325 so first thing is

        mode :‘day’

        in which it displays ONE day only
        default is yesterday (dayIndex:-1)

        weeksInView is ignored in mode:day

        second, how long did you wait?
        the default calendar module broadcasts events independently for each configured calendar

        the ext3 modules try not to flash the screen with redrawing on each blob of events arriving

        there are two config parms that control this

        waitFetch
        refreshInterval

        refreshInterval is how often the output is redrawn,
        whatever events have arrived since the last refresh will be drawn now. the default is 30 minutes

        but you dont wait to wait at startup for the first draw
        you want it NOW
        but ext3 doesnt known WHEN the events will be coming from the default calendar module.
        so, after waitFetch time (default 5 seconds) it draws the first time. even if NO events have arrived yet
        and then it waits refreshInterval time to draw the next time

        so, if the calendar takes more time to process, the events will arrive AFTER the 1st draw, but before the 2nd

        so, i suggest increasing the waitFetch time to one minute
        60000 , and reducing the refreshInterval to 2 minutes (120000)
        to verify it works

        then tuning those as needed

        if you use pm2 to launch MagicMirror, then the log output (pm2 logs) has timestamps, where you can calculate the tine for calendar processing, and set waitfetch just a little longer.

        side effect of longer waitFetch is that the first draw waits that long. so no calendar output

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil This works and I get the logic now… thanks a ton!!!

          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