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.

    Temporary disable modules

    Scheduled Pinned Locked Moved Feature Requests
    12 Posts 8 Posters 12.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.
    • KirAsh4K Offline
      KirAsh4 Moderator
      last edited by

      I don’t remove config sections … I comment them out … If I’m going to edit that file to change a flag, it’s just as easy to add a /* ... */ tag around the specific section. :)

      A Life? Cool! Where can I download one of those from?

      paviroP 1 Reply Last reply Reply Quote 3
      • paviroP Offline
        paviro @KirAsh4
        last edited by

        @KirAsh4 this does work inside a dictionary? Didn’t know that still I think an option would be cleaner @MichMich?

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        KirAsh4K 1 Reply Last reply Reply Quote 0
        • KirAsh4K Offline
          KirAsh4 Moderator @paviro
          last edited by

          > opens nearby dictionary, flips to ‘politics’, grabs red pen and writes /* ... */ around definition <

          YEP! Still works! :)

          I wasn’t referring to the actual module files. I’m talking simply editing the config.js file and comment the specific module’s config section out.

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 1
          • MichMichM Offline
            MichMich
            last edited by

            Its just a js file. So you can use /* */. That’s what I do! :)

            1 Reply Last reply Reply Quote 1
            • R Offline
              roramirez Core Contributors
              last edited by

              Seem a good idea add the disabled option. In case is your write the config from other app or external system can be more cleaner add the config option instaed of commented block

              Anyway, I pushed a PR for this :) https://github.com/MichMich/MagicMirror/pull/498

              Easy module development with MagicMirror Module Template

              1 Reply Last reply Reply Quote 0
              • MitchfarinoM Offline
                Mitchfarino Module Developer
                last edited by

                Couldn’t you just hide it with the RemoteControl?

                [card:Jopyth/MMM-Remote-Control]

                J 1 Reply Last reply Reply Quote 1
                • J Offline
                  Jopyth Moderator @Mitchfarino
                  last edited by Jopyth

                  @Mitchfarino This could be an option, however it only visually looks the same.

                  If for example a module temporarily does not work for some reason (blocks the start of the mirror), hiding it with the Remote-Control would not help.

                  What you probably wanted to say is: This should also be added to the Remote Control module. ;) And I would like to include this option in the GUI for the config there. And there is a big advantage in a config option to disable a module (versus commenting out), since this leaves the values readable from other JS code, i.e. the Remote Control module.

                  Helpful sticky: How to troubleshoot

                  MitchfarinoM 1 Reply Last reply Reply Quote 2
                  • MitchfarinoM Offline
                    Mitchfarino Module Developer @Jopyth
                    last edited by

                    @Jopyth Yeah, that’s exactly what I meant 😉

                    You just worded it a bit better!

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tyrelex78 @paviro
                      last edited by Tyrelex78

                      @paviro, thank you very much, this works.
                      disabled: true,

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