randomBrainstormer / MMM-GoogleCalendar

Google Calendar for MagicMirror²
MIT License
73 stars 46 forks source link

Broadcast PAST Events #20

Closed CurlyQ12391 closed 2 years ago

CurlyQ12391 commented 2 years ago

Hello,

would it be possible to include a "broadcastPastEvents" in the default config? I use MMM-CalendarExt3 to pull calendar events from your MMM-GoogleCalendar. However, I've noticed that the events disappear from my monthly calendar view as their time is passed. This works fine for the list view but is annoying in a calendar view since I am left with a pretty blank calendar.

randomBrainstormer commented 2 years ago

Hi @CurlyQ12391 , I tried adding this option but unfortunately couldn't a find a simple way to get past days events from Google Apis, seems only present/future events are supported.

CurlyQ12391 commented 2 years ago

Dang, well I really appreciate you attempting it.

btastic commented 1 year ago

I solved this by adding a "pastDays" property, and using it in the timeMin property when requesting calendar events:

https://gist.github.com/btastic/41f91fc4c688d05657cfc09274eb155a