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.

    Missing calendar item for daily recurrence

    Scheduled Pinned Locked Moved Bug Hunt
    11 Posts 3 Posters 1.9k Views 3 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.
    • G Offline
      golfyankee @sdetweil
      last edited by

      @sdetweil Do you know what the specific problem is? I tried to recreate the daily recurrence starting from yesterday and it’s still displaying the first occurrence on Feb 1st.

      Trying to figure out how to repair my calendar items to work around the rrule issues.

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

        @golfyankee yes, the rrule library is broken, and has been broken in different spots for a while. ( I’ve been working on some of this for the last few years, most of the debug is mine)

        for this release, we picked up a new version of the calendar parser (node ical) that shipped a new ‘fixed’ rrule… but it is worse.

        when there is an rrule in a calendar event, our code calls rrule.between(), to get the set of occurrences between two dates, today, and a year from now based on the rules.

        we got back junk before, and now sometimes we get a list of the correct number of events, but the date/time of some of those are empty.

        I put a fix in this release to remove the empty entries because they caused the code to crash.

        we never see the raw text of the ICS data, the parser converts the text to a js object

        the parser doesn’t USE the rrule data. just converts it from text to a useable js object.

        the parser correctly converted the text.

        there is no replacement currently for the rrule library from someone else.

        the older rrule and luxon work in local time.
        the parser uses utc time.
        the new rrule does not use luxon, and works in UTC time, so the hope was the date conversion problems would be gone.

        ps we are all volunteers here, Google, Apple, and others have dedicated staff and clearly have their own code for this.

        add to this fun the daylight savings nightmare that is different in different geographies, AND different over the years in the US. rrule doesn’t know DST .

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 1 Reply Last reply Reply Quote 0
        • R Offline
          rrslssr
          last edited by

          @sdetweil Could this also affect a calendar module setup for iCal that is now failing to show repeating events? I noticed that my MM calendar does not show any of the repeating events currently on our iCal. I have just started troubleshooting this, but I’ll stop if it’s a know issue.

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

            @rrslssr ICal is another problem… we don’t process iCal directly… it MUST be ics form. (I don’t know how you get it there… or what the differences are)

            node-ical processes to the ICAL format spec

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • G Offline
              golfyankee @sdetweil
              last edited by

              @sdetweil Thanks for the response and looking into this.

              I’m just trying to see if you already knew the problem or point me in the right direction of where to look so I can figure out a work around.

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

                @golfyankee go back to the prior parser

                cd ~/MagicMirror
                npm install node-ical@0.16.1
                

                we know all about it, except the fix! lol

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  rrslssr @sdetweil
                  last edited by

                  @sdetweil Just letting you know that this fix corrected my issue where my calendar module (setup for iCal) would not show repeating events. The repeating events are showing again. Thanks.

                  1 Reply Last reply Reply Quote 1
                  • 1
                  • 2
                  • 1 / 2
                  • 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