Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    Is there a way to temporarily disable a module?

    General Discussion
    6
    27
    1607
    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.
    • T
      teitlebot last edited by

      I installed MMM PIR Sensor and I installed MMM-ModuleScheduler thinking I can disable the PIR function at certain times. I see now that while you can control show and hide of modules you dont have the option to turn them off. Was wondering if there was a way to disable a module somehow?

      justjim1220 1 Reply Last reply Reply Quote 0
      • justjim1220
        justjim1220 Module Developer @teitlebot last edited by justjim1220

        @teitlebot add disabled: true, to the modules in your config.js file

        for example:

        {
        	disabled: true,
        	module: "MMM-KitchenTimer",       
        	position: "top_center",
        	config: {
        		volume: 1
        	}
        },
        

        change it to false to re-enable the module…

        S 1 Reply Last reply Reply Quote 1
        • S
          sdetweil @justjim1220 last edited by

          @justjim1220 he meant on the fly, while MM is running

          T 1 Reply Last reply Reply Quote 1
          • T
            teitlebot @sdetweil last edited by

            @sdetweil that’s right.
            I’m going to guess there is no way to do it.

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @teitlebot last edited by

              @teitlebot why is hide not enough?

              T 1 Reply Last reply Reply Quote 0
              • T
                teitlebot @sdetweil last edited by

                @sdetweil Because im trying to have the PIR sensor not turn off the screen during certain times. Hiding the module doesnt stop it from working.

                S 1 Reply Last reply Reply Quote 0
                • S
                  sdetweil @teitlebot last edited by

                  @teitlebot sorry, do not understand…

                  those are two different things…

                  i hide modules to make my screen sleep… (can’t power off tv)…

                  you could extend the PIR module to ignore the sensor during the time u want it to stay on

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    teitlebot @sdetweil last edited by

                    @sdetweil how would I extend the module? I’m not really a coder but I can follow a guide.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @teitlebot last edited by

                      @teitlebot you would have to add some code the check the current time against a stat/stop time you would add to the configuration.

                      1 Reply Last reply Reply Quote 0
                      • B
                        BigDanT last edited by BigDanT

                        Hi,

                        Did anyone find a solution to this ?

                        I’m looking to use a PIR so that if it detects motion it “Deactivates” the “MMM-PlexSlideshow” module.

                        Then when it doesnt detect motion it will reactivate the “MMM-PlexSlideshow” module to create a digital picture frame when someone doesnt step in front of the mirror.

                        Cheers

                        D

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