eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
57 stars 18 forks source link

Limiting upcoming events to the end of the day #59

Closed GattoJohnny closed 5 years ago

GattoJohnny commented 5 years ago

Is there a way to limit displaying the upcoming events from the current time to the end of the day? Either hiding past events from 'daily' view, or limiting 'upcoming' view to EOD may help me out.

eouia commented 5 years ago

Somewhat obvious question.(sorry my poor English) Anyway, each view can limit events by “limit:NUMBER”. Especially limit till eod, you need to adjust “calendar.maxDays” to 1, then use it in view.

eouia commented 5 years ago

If you want more than “hiding all past events from view” or “limit number of events”, consider use “MMM-CalendarExt2”. It has more poweful configuration(but needs basic js skill)

GattoJohnny commented 5 years ago

I was aware of limit:NUMBER but it was not the solution. However, maxDays:1 did the trick! Thanks for the excellent and prompt assistance. As long as CalendarExt serves my needs I'll be okay with that. Maybe later I'll give Ext2 a shot. Till then I wish you all the best for the development.

eouia commented 5 years ago

Nice to hear it. I’ll close this.