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 module: problem with moved Allday event (Google Calendar).

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 1.0k 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 Do not disturb
      sdetweil @evroom
      last edited by

      @evroom fun… will try to look at it later…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @evroom
        last edited by

        @evroom sorry for my delay, been busy here…

        so, this is a problem i don’t know how to fix yet

        by the time we see it, these two entries are collapsed into one

        but a couple of problems. the repeating rule processor used by the calendar parser library we use has some problems with UTC dates
        getting the new DAY with the OLD time., but only when there is a repeating rule using byday as your event does.
        I have added code to correct for that… only when byday is found

        BUT, in this case , its not wrong… take out the recurring event and it IS wrong… yikes…

        now the second problem… we get passed the the recurrence date, BUT its the ORIGINAL date… 11/08 (1 week, tuesday) not the adjusted date (11/09, wednesday)… and I’m not sure how to tell the difference and its included in the byday entry data… and if so then the DATE is wrong…

        now, looking at this second problem… the KEY is the old date, there is a new start/end … which we didn’t use… oops…
        BUT… the date is CORRECT…

        I think I might have a fix for this…

        let me see how to get it to you

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom
          last edited by

          Sam,

          Thanks a lot for diving into this.
          I had massive Internet problems the last 4 weeks and could not get to it myself.

          I am happy to modify a file or two to see if your fix works.
          Just send me the filename(s) and what to modify and I will test it.

          Btw, the Internet problems showed that when the calendar module cannot connect for some time, it just gives up and stalls.
          When Internet is present again it does not try to connect again or does not put an effort to get calendar data (ics file).
          But that is another topic.

          Greetings,

          E.J.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @evroom
            last edited by

            @evroom send me an email at this userid on gmail
            and I will send back the file with instructions

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            evroomE 1 Reply Last reply Reply Quote 0
            • evroomE Offline
              evroom @sdetweil
              last edited by

              @sdetweil

              I applied your fixed calendarutils.js and ical.js files and it works like a charm now.
              Many thanks for solving this, very much appreciated !!

              E.J.

              MagicMirror version: 2.30.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.30.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              S 1 Reply Last reply Reply Quote 1
              • S Do not disturb
                sdetweil @evroom
                last edited by

                @evroom keep those files around

                I opened this issue in node-ical
                https://github.com/jens-maus/node-ical/issues/234

                haven’t in MM yet (will need 2, one for MM and one for the node-ical update)

                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