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.

    Hide a module while still having it work

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 3 Posters 4.5k Views 3 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.
    • J Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy