@Sean said in MMM-CalendarExt2:
@Thekk
Thanks. I haven’t thought about that method. Now I updated that part in the module.
Excellent! Thanks for integrating the recurring filter.
@Sean said in MMM-CalendarExt2:
@Thekk
Thanks. I haven’t thought about that method. Now I updated that part in the module.
Excellent! Thanks for integrating the recurring filter.
@Sean said in MMM-CalendarExt2:
@Thekk
Hmmm… I think there is no flag about repeated events. I’ll research about it.
For filtering; See this; https://github.com/eouia/MMM-CalendarExt2/wiki/Filtering-and-Sorting
And this also; https://github.com/eouia/MMM-CalendarExt2/wiki/Event-Object
I haven’t seen any mention about that property in the filtering or event-object. I did browse through your parser and didn’t see any mention about repeating objects. I did Google a little further and found this function in (what I gather is) the underlying parser: http://mozilla-comm.github.io/ical.js/api/ICAL.Event.html#isRecurring
Rather proud that I did (eventually) get it to work. I added
// Check if an event is recurring and make a filterable property
ev.isRecurring = ri.isRecurring()
around line 140 in node_helper.js and added the following filter:
filter: (event) => {
if (event.isRecurring) {
return false
} else {
return true
}
},
to remove all recurring items from one of the views.
Thanks for your amazing work. I was wondering if events have a property that marks them as part of a repeating sequence. I would like to filter based on that. I couldn’t find anything about that in the (very complete) documentation.