@jer78 Here is the Readme.md for third party modules, which details the notification system: https://github.com/MichMich/MagicMirror/blob/master/modules/README.md
Your module will receive a CALENDAR_EVENTS
notification, with a payload which is an array of calendar events objects with the following attributes: title
, startDate
, endDate
, fullDayEvent
, location
and geo
.
You can make your own module, or modify an existing one. MMM-Traffic
will display Google Maps directions to a given destination. You can override its receiveNotification
function to (1) sort the payload to find the soonest event, (2) decide if there’s an event in the next 2 hours, and (3) display directions to the destination using the location
or geo
coordinates.
Remember, you’ll need to populate those fields when creating your event entries, and you may also need to provide a hint (e.g. “Colombus, OH”) to Google so it knows which “Olive Garden” or “Municipal Library” you’re looking for.