MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Hide a module while still having it work

    Troubleshooting
    3
    7
    3483
    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.
    • D
      DevilRev last edited by

      Hi,

      I want to hide my voice control module completely from the screen but still have it reacting and sending notifications to other modules, can anyone tell me how can I achieve this?

      Thanks in advance!
      DevilRev

      J 1 Reply Last reply Reply Quote 0
      • P
        plumcraft last edited by

        Interested about it too.

        @DevilRev : How are you going to know which mode is active ?

        1 Reply Last reply Reply Quote 0
        • J
          Jopyth Moderator @DevilRev last edited by Jopyth

          @DevilRev Remove the position: bottom_left (or whatever position you have) from the config? This works with some modules, which do not try to interact with their own DOM (since it does not exist).

          Helpful sticky: How to troubleshoot

          D 1 Reply Last reply Reply Quote 0
          • D
            DevilRev @Jopyth last edited by

            @Jopyth I did this to one module but every other module after that one in the config does not load at all. I need this for 2 modules and in combination with my other question that you answered.

            I can’t do this manually in the config either, it has to be somewhat controllable so I guess my plan can not work out.

            J 1 Reply Last reply Reply Quote 0
            • J
              Jopyth Moderator @DevilRev last edited by Jopyth

              @DevilRev Well if that does not work you could use my Remote Control, hide the module in question, and save the hidden status. The module will then be hidden directly after each startup.

              Also it allows you to easily display the module again when needed, so it is quite controllable. 😉

              Helpful sticky: How to troubleshoot

              D 1 Reply Last reply Reply Quote 0
              • D
                DevilRev @Jopyth last edited by

                @Jopyth Yep I already used your module and do really like it but I thought I might be able to just build the status ‘hidden’ into the module instead doing it with another one.

                I’ll probably do it the way you suggested but I can’t even use it without the possibility of deactivating and activating a module completely from another one.

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jopyth Moderator @DevilRev last edited by

                  @DevilRev You can also do that, just add the line

                  this.hide(0);
                  

                  to the module start up section. However you will need to stash (or commit) these changes later on when you want to update the module.

                  Helpful sticky: How to troubleshoot

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy