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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @jer78
      last edited by

      @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 Reply Quote 0
      • N Offline
        ninjabreadman
        last edited by

        @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 Reply Quote 2
        • J Offline
          jer78 @Mykle1
          last edited by

          @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

            @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

              @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
                OSZAR »