Read the statement by Michael Teeuw here.
2.30.0 and MMM-CalendarExt3 missing calendars
-
@sdetweil thank you for supporting the calendar module!
For my specific use case, I don’t display the default calendar module, it’s just used to fetch and broadcast events for CalendarExt3. With this in mind, the idea of a sliding window centered on a date (today in most cases) makes the most sense to me.
Is there a reason why the default for maximumEntries is 10? I had assumed performance but it looks like this is actually what’s used to control the number of events displayed.
-
@redfishbluefish i do not know, been that way since i got here in 2017. i assume it was for the display list.
generally you try to add without breaking old stuff.
i didn’t start working on cal til 21, when our users kept having trouble. same thing as now. mostly work on the event parser
-
-
@sdetweil thanks for the fix! I really appreciate your effort.
Just in case it’s useful for someone else who runs into the same problem, with the fix applied and my calendar configuration that worked in 2.29.0, I see:
[Debug] [Calendar] self update (calendar.js, line 950) [Debug] pushing 18 events to total with room for 10 (calendar.js, line 695) [Debug] events for calendar=10 (calendar.js, line 697) [Debug] pushing 246 events to total with room for 10 (calendar.js, line 695) [Debug] events for calendar=20 (calendar.js, line 697) [Info] sorting events count=20 (calendar.js, line 699) [Info] slicing events total maxcount=10 (calendar.js, line 739)
And when I set a new
maximumEntries
per calendar I get:[Debug] pushing 34 events to total with room for 50 (calendar.js, line 695) [Debug] events for calendar=34 (calendar.js, line 697) [Debug] pushing 295 events to total with room for 500 (calendar.js, line 695) [Debug] events for calendar=329 (calendar.js, line 697) [Info] sorting events count=329 (calendar.js, line 699)
This does result in a different behaviour for users of other calendar modules as of 2.30.0 so might be handy if the authors could update their recommendations in their documentation?
-
-
@redfishbluefish the pushing events for cal
thru to before the last sorting are ONLY used for the UI, not for the broadcastthe broadcast does NOT clip AT ALL with this fix, just like before
IF you don’t have the UI visible(position commented out or not supplied in default cal) , all of this is noise (wasted logging)