Read the statement by Michael Teeuw here.
(2.1.0) Calendar will broadcast events.
-
Starting from MagicMirror² v2.1.0 (currently in develop stage) the default calendar module will broadcast all the events to all other modules with the notification message:
CALENDAR_EVENTS. The event objects are stored in an array and contain the following fields:title,startDate,endDate,fullDayEvent,locationandgeo.Since this feature is still in the
developbranch, it’s not final and might change. Suggestions are welcome. -
Hi, I just started using MM and love it! Thanks for all your hard work! How would I use this to calculate my commute time in a different module? Is there an example? Thank you.
Jeremy
-
There are a few modules that do that although it depends on where you are. Find the one that suits you, if it’s there.
https://github.com/MichMich/MagicMirror/wiki/3rd-Party-Modules
-
My question was how do I pass along a variable from Calendar to another module. I’m trying to find what the format is.
-
@jer78 said in (2.1.0) Calendar will broadcast events.:
My question was how do I pass along a variable from Calendar to another module.
Well, not exactly, young man. :-/
-
@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_EVENTSnotification, with a payload which is an array of calendar events objects with the following attributes:title,startDate,endDate,fullDayEvent,locationandgeo.You can make your own module, or modify an existing one.
MMM-Trafficwill display Google Maps directions to a given destination. You can override itsreceiveNotificationfunction 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 thelocationorgeocoordinates.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.
-
@Mykle1 said in (2.1.0) Calendar will broadcast events.:
@jer78 said in (2.1.0) Calendar will broadcast events.:
My question was how do I pass along a variable from Calendar to another module.
Well, not exactly, young man. :-/
Someone woke up on the wrong side of the bed! Geez! What a hostile community. Nice to feel welcome for my first post!
-
@ninjabreadman Awesome! Thanks for pointing me in the right direction. Cheers!
-
@jer78 If you are still looking to get this configured see this thread here. I had (what I believe to be) the exact same request and I got it working with this.
