• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

(2.1.0) Calendar will broadcast events.

Scheduled Pinned Locked Moved Upcoming Features
9 Posts 5 Posters 6.1k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    MichMich Admin
    last edited by MichMich Oct 14, 2016, 3:50 PM Oct 14, 2016, 1:27 PM

    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, location and geo.

    Since this feature is still in the develop branch, it’s not final and might change. Suggestions are welcome.

    1 Reply Last reply Reply Quote 1
    • J Offline
      jer78
      last edited by Jan 26, 2018, 6:59 PM

      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

      M A 2 Replies Last reply Jan 26, 2018, 9:36 PM Reply Quote 1
      • M Offline
        Mykle1 Project Sponsor Module Developer @jer78
        last edited by Jan 26, 2018, 9:36 PM

        @jer78

        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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • J Offline
          jer78
          last edited by Jan 26, 2018, 9:47 PM

          My question was how do I pass along a variable from Calendar to another module. I’m trying to find what the format is.

          M 1 Reply Last reply Jan 26, 2018, 9:59 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @jer78
            last edited by Jan 26, 2018, 9:59 PM

            @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. :-/

            https://github.com/MichMich/MagicMirror/tree/master/modules

            Create a working config
            How to add modules

            J 1 Reply Last reply Jan 26, 2018, 10:15 PM Reply Quote 0
            • N Offline
              ninjabreadman
              last edited by Jan 26, 2018, 10:08 PM

              @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.

              Problem with config or JavaScript? Copy/paste it into JSHint.
              Check out the detailed walkthroughs on install, config, modules, etc.

              J 1 Reply Last reply Jan 26, 2018, 10:17 PM Reply Quote 2
              • J Offline
                jer78 @Mykle1
                last edited by Jan 26, 2018, 10:15 PM

                @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. :-/

                https://github.com/MichMich/MagicMirror/tree/master/modules

                Someone woke up on the wrong side of the bed! Geez! What a hostile community. Nice to feel welcome for my first post!

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jer78 @ninjabreadman
                  last edited by Jan 26, 2018, 10:17 PM

                  @ninjabreadman Awesome! Thanks for pointing me in the right direction. Cheers!

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    ATibbs @jer78
                    last edited by Apr 10, 2018, 9:51 PM

                    @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.

                    https://forum.magicmirror.builders/post/38213

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy