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

Magic Touch Display

Scheduled Pinned Locked Moved Show your Mirror
15 Posts 5 Posters 4.8k 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.
  • S Away
    sdetweil @Manino
    last edited by Oct 18, 2023, 11:43 AM

    @Manino whatever other module want to control show and hide of modules.

    sendNotification is a broadcast to all other modules. if they understand the notification then they can act on it

    MMM-ModuleController obviously watches for this notification from some other module and then acts to show or hide modules.

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    M 1 Reply Last reply Oct 18, 2023, 12:41 PM Reply Quote 0
    • M Offline
      Manino @sdetweil
      last edited by Oct 18, 2023, 12:41 PM

      @sdetweil Yes, but should I copy paste it into config or what?

      I’m on a very low level of the Magic Mirror, have been here for only a month and I can’t understand were to put the line or lines. I have tried at least 50 different places, in files, cofig, and also the css. I can’t do it right.

      S 1 Reply Last reply Oct 18, 2023, 9:13 PM Reply Quote 0
      • S Away
        sdetweil @Manino
        last edited by Oct 18, 2023, 9:13 PM

        @Manino no. that would go inside another.module where u want to control modules being shown or hidden

        consider a module that has an on/off button, a toggle, default on.

        when you press it, all the other modules should be hidden. when you press it again the modules should be shown

        now, YOU could write and maintain all the code that does the show and hide, OR you could send that notification to some other module that provides that function.

        so, in this button action section of this new module you could paste this code to signal hide and show.

        it doesn’t go anywhere else

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Oct 19, 2023, 9:49 AM Reply Quote 0
        • M Offline
          Manino @sdetweil
          last edited by Oct 19, 2023, 9:49 AM

          @sdetweil And what is another.module?

          I have the MMM-ModuleController, MMM-Calculator, MMM-DrawingBoard. Do you mean someone of those or is it something else? I do understand what is supposed to happen, but can’t figure out HOW to do it with those lines.

          S 1 Reply Last reply Oct 19, 2023, 11:04 AM Reply Quote 0
          • S Away
            sdetweil @Manino
            last edited by Oct 19, 2023, 11:04 AM

            @Manino look at the source for

            https://github.com/Jopyth/MMM-Buttons

            his doc says that this module can send notifications to two other modules

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            2 / 2
            • First post
              12/15
              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