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.

    Is there a way to temporarily disable a module?

    Scheduled Pinned Locked Moved General Discussion
    27 Posts 6 Posters 11.0k 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.
    • T Offline
      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 Offline
        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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          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 Offline
            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.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              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
              • S Offline
                sdetweil @BigDanT
                last edited by

                @BigDanT i have not seen such a thing…

                also, most of the image displaying modules display in the background ‘under’ the other modules,
                you appear to want it ABOVE the other modules, hiding them… not seen any capable of doing that

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @sdetweil
                  last edited by

                  @BigDanT it might not be too hard…

                  the PIR type modules send a notification 'USER_PRESENCE true/false when a user is detected or not

                  so, if u can change the image handler module to position:‘foreground’, and add a tiny bit of code,

                  in the notificationRecieved function add a handler for the user_presence message, if true, this.hide() (allow other module content to show thru)
                  otherwise this.show() (hide everything behind)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @BigDanT I tried moving MMM-ImagesPhotos to the fullscreen_above position, and it hides all the content behind, but… on each image transition it exposes the stuff behind… so it will be a bit more involved to make a module out front that does what u want.

                    sorry, there was an intentional delay between pics… removing that keeps the stuff hidden behind, so it might work

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RIKKO14
                      last edited by

                      @teitlebot
                      I am not a coder but if you comment you config.js like this the module doen’t work :

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

                      but
                      but this may not be the answer you want…

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

                        @RIKKO14 said in Is there a way to temporarily disable a module?:

                        disabled: true,

                        you don’t need any comments if you have

                        disabled: true, 
                        

                        you can’t disable a module WHILE it is running… you could ‘hide’ it

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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