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.

    Notification between modules

    Scheduled Pinned Locked Moved Solved Development
    10 Posts 4 Posters 3.1k Views 4 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @idoodler
      last edited by

      @idoodler he’s using arrow functions =>, therefore he stays in the same scope.

      Please create a github issue if you need help, so I can keep track

      idoodlerI 1 Reply Last reply Reply Quote 1
      • idoodlerI Offline
        idoodler Module Developer @strawberry 3.141
        last edited by

        @strawberry-3-141 Thanks, again what learned:)

        1 Reply Last reply Reply Quote 1
        • S Do not disturb
          sdetweil @grasshopper001
          last edited by

          @grasshopper001 nice work.

          One comment to think about. You should not call updateDom() if you do NOT have changed content to present

          This wastes cpu cycles, raising heat. And maybe preventing some other module from displaying properly.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 1
          • G Offline
            grasshopper001 @sdetweil
            last edited by

            @sdetweil Thanks! I’ve rewritten my code according to your comment.

            1 Reply Last reply Reply Quote 0
            • G Offline
              grasshopper001 @idoodler
              last edited by

              @idoodler thanks for the help.The console part in the dev tool does help a lot!

              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