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 events mixed up after update

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 488 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.
    • J Offline
      jpmiller25
      last edited by

      Just updated to latest (and now currently on develop to fix MMM-CalendarExt3 issue).
      I have a Family Calendar which shows on an MMM-CalendarExt3 section linked to google calendar, and another small default calendar module which I use to show weekly meal plan from a second google calendar. The config separated the events properly, but now after the update I’m seeing family calendar events in the meal calendar area.

      Is there a way to purge existing events and have magic mirror ‘repoll’ from google calendar?

      My config in part:

                      {
                              module: "MMM-CalendarExt3",
                              position: "bottom_bar",
                              title: "Family Calendar",
                              config: {
                                      mode: "month",
                      //              instanceId: "basicCalendar",
                                      locale: 'en-US',
                                      maxEventLines: 5,
                                      firstDayOfWeek: 0,
                                      calendarSet: ["family_calendar"],
                                      fontSize: "16px",
                                      eventHeight: "20px",
                                      useSymbol: false,
                                      useMarquee: true
                              },
                      },
                      {
                              module: "calendar",
                      ////////header: "Family Calendar",
                              position: "top_center",
                              hiddenOnStartup: true,
                              config: {
                                      displaySymbol: false,
                                      defaultSymbol: "none",
                                      broadcastPastEvents: true,
                                      wrapEvents: true,
                                      calendars: [
                                              {
                                      //              fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                      //              symbol: "calendar-check",
                                                      name: "family_calendar",
                                                      color: "white",
                                                      url: "https://calendar.google.com/calendar/ical/........../basic.ics"
                                              },
      
                      {
                              module: "calendar",
                              header: "Meal Plan",
                              position: "top_right",
                              //hiddenOnStartup: true,
                              config: {
                                      fade: false,
                                      limitDays: 7,
                                      limitDaysNeverSkip: true,
                                      broadcastPastEvents: true,
                                      maxTitleLength: 15,
                                      wrapEvents: true,
                                      maxTitleLines: 2,
                                      calendars: [
                                              {
                                      //              fetchInterval: 7 * 24 * 60 * 60 * 1000,
                                      //              symbol: "calendar-check",
                                                      name: "meal_calendar",
                                                      symbol: "utensils",
                                                      color: "yellow",
                                                      //pastDaysCount: "1",
                                                      //maximumNumberOfDays: "7",
                                                      //maximumEntries: "8",
                                                      url: "https://calendar.google.com/calendar/ical/............./basic.ics"
                                              },
                                      ]
                              }
                      },
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @jpmiller25
        last edited by sdetweil

        @jpmiller25 can u look at the output of npm start and see
        the broadcast messages from the default calendar

        and see if you think they are correct

        the default calendar refreshInterval is 7 days
        (cause we used to pound the calendarlabs example hundreds of times a minute)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jpmiller25 @sdetweil
          last edited by

          @sdetweil there’s a lot there, but it looks right to me. I don’t see a value in the event that identifies the calendar ‘name’
          Example:

          {
            "type": "VEVENT",
            "params": [],
            "start": "2024-08-19T05:00:00.000Z",
            "datetype": "date",
            "end": "2024-08-20T05:00:00.000Z",
            "dtstamp": "2025-01-31T04:26:23.000Z",
            "uid": "mkuj83t7bo4pp99s97k75rifo8@google.com",
            "created": "2024-04-12T19:03:31.000Z",
            "lastmodified": "2024-04-12T19:03:31.000Z",
            "sequence": "0",
            "status": "CONFIRMED",
            "summary": "First day school",
            "transparency": "TRANSPARENT",
            "method": "PUBLISH"
          }
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @jpmiller25
            last edited by sdetweil

            @jpmiller25 the url is broadcast as part of the data, so the events are tied to the url

            name is not one of the default calendar properties, so we cant send it

            i think he uses the url to find the config entry

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 2 Replies Last reply Reply Quote 0
            • J Offline
              jpmiller25 @sdetweil
              last edited by

              @sdetweil OK. What’s strange is the MMM-CalendarExt3 section (Family Calendar) is working perfectly, the calendar is showing the events selected in calendarSet: []
              It’s the meal calendar which is showing the default module that is showing events from the family calendar.

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

                Is there a way to delete any saved events and force a refresh?

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

                  @jpmiller25 sorry, don’t understand the wording of the last sentence.

                  It’s the meal calendar which is showing the default module that is showing events from the family calendar

                  the default calendar doesnt know names

                  if the calendars are configured in one calendar instance, then the events are merged together by date

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @jpmiller25 what does that mean saved events?

                    we just ask the calendar provider to give us the calendar data,
                    we have no info on how they got the way they are

                    @MMRIZE
                    in the config above, Ext3 is configured for one calendarset
                    but there are two sources
                    what does Ext3 do with the events from extra source? throw them away?

                    refresh, the module has a refreshInterval value

                    any faster than that requires restarting MagicMirror

                    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