• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Default Calendar Stopped Showing Recurring Events

Scheduled Pinned Locked Moved Troubleshooting
21 Posts 3 Posters 3.1k 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.
  • A Offline
    Alvinger
    last edited by Nov 25, 2020, 10:52 PM

    I don’t really see any relevant use case for broadcastPastEvents. It should just be left at default (false) and forgotten.

    I do see a need for broadcastEvents.

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil @BigSky
      last edited by Nov 26, 2020, 2:33 AM

      @BigSky thanks for the ics… so debugging the rule parser returned today

      event start=25 Nov 2020 09:00 am end=25 Nov 2020 09:10 am
      event start=25 Nov 2020 09:10 am end=25 Nov 2020 09:20 am
      event start=25 Nov 2020 09:20 am end=25 Nov 2020 09:35 am
      event start=25 Nov 2020 09:35 am end=25 Nov 2020 09:45 am
      event start=25 Nov 2020 09:45 am end=25 Nov 2020 09:55 am
      event start=25 Nov 2020 09:55 am end=25 Nov 2020 10:40 am
      event start=25 Nov 2020 10:40 am end=25 Nov 2020 10:50 am
      event start=25 Nov 2020 10:50 am end=25 Nov 2020 11:40 am
      event start=25 Nov 2020 11:40 am end=25 Nov 2020 11:45 am
      event start=25 Nov 2020 11:45 am end=25 Nov 2020 12:10 pm
      event start=25 Nov 2020 12:10 pm end=25 Nov 2020 12:15 pm
      event start=25 Nov 2020 12:15 pm end=25 Nov 2020 12:40 pm
      event start=25 Nov 2020 12:40 pm end=25 Nov 2020 12:45 pm
      event start=25 Nov 2020 12:45 pm end=25 Nov 2020 01:15 pm
      event start=25 Nov 2020 01:15 pm end=25 Nov 2020 01:30 pm
      

      808 entries

      the 1st 15(maximumEntries) , but they are in the past…

      so i see the problem, the rule.between, has miscalculated the start date/time (start of day - offset), so yesterday

      which floods the list with past events., which then gets truncated at maximumEntries, and no good data there

      why it shows sometimes, is the start becomes TODAY later, and there is a window where current time events sneak into the list at the front… (anything after 5pm mountain time (24-7))

      i have tried a fix, which resolves this, but I need to do a bunch of testing…

      great testcase tho, thank you

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A B 2 Replies Last reply Nov 26, 2020, 9:18 AM Reply Quote 0
      • A Offline
        Alvinger @sdetweil
        last edited by Nov 26, 2020, 9:18 AM

        @sdetweil I ran @BigSky 's calendar through my latest fix and it showed up correctly.

        S 1 Reply Last reply Nov 27, 2020, 3:02 PM Reply Quote 0
        • B Offline
          BigSky @sdetweil
          last edited by Nov 26, 2020, 7:04 PM

          @sdetweil glad the test file was helpful - and thanks again for looking into this!

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Alvinger
            last edited by Nov 27, 2020, 3:02 PM

            @Alvinger i looked at your code… it fixes the results, but not the cause… I will look at resolving the cause the cause wastes storage and cycles

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Nov 27, 2020, 3:24 PM Reply Quote 0
            • A Offline
              Alvinger @sdetweil
              last edited by Nov 27, 2020, 3:24 PM

              @sdetweil It fixes the result while also retaining backward compatibility. From my viewpoint the cause is that calendarfetcher.js not only fetches but also filters. It should just fetch and let calendar.js do the filtering. But that would require substantial changes to both files. My “fix” is just a few lines of code.
              But I am all for fixing the cause!

              S 1 Reply Last reply Nov 27, 2020, 3:32 PM Reply Quote 0
              • S Offline
                sdetweil @Alvinger
                last edited by Nov 27, 2020, 3:32 PM

                @Alvinger yeh, I agree on the ‘right’ fix, but don’t want to rewrite the whole thing…

                the ‘cause’ is that the rule.between(from date/time is set to yesterday (when NOT looking for pastEvents)
                so rrule dutifully returns events that could occur yesterday or before now today… .
                if not pastEvetns, from should be NOW…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Nov 27, 2020, 3:39 PM Reply Quote 0
                • A Offline
                  Alvinger @sdetweil
                  last edited by Nov 27, 2020, 3:39 PM

                  @sdetweil Aah, missed that one. But you still have to address the issue with calendarfetcher returning “only” maximumEntries even if broadcastPastEvents is set.

                  S 1 Reply Last reply Nov 27, 2020, 3:42 PM Reply Quote 0
                  • S Offline
                    sdetweil @Alvinger
                    last edited by Nov 27, 2020, 3:42 PM

                    @Alvinger yes, i like your solution there

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 2 / 3
                    2 / 3
                    • First post
                      17/21
                      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