Read the statement by Michael Teeuw here.
(2.1.0) Calendar will broadcast events.
-
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_EVENTS
notification, with a payload which is an array of calendar events objects with the following attributes:title
,startDate
,endDate
,fullDayEvent
,location
andgeo
.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 itsreceiveNotification
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 thelocation
orgeo
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.
-
@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.