Read the statement by Michael Teeuw here.
Is there a way to temporarily disable a module?
-
@teitlebot add
disabled: true,to the modules in your config.js filefor example:
{ disabled: true, module: "MMM-KitchenTimer", position: "top_center", config: { volume: 1 } },change it to false to re-enable the module…
-
@justjim1220 he meant on the fly, while MM is running
-
@sdetweil that’s right.
I’m going to guess there is no way to do it. -
@teitlebot why is hide not enough?
-
@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.
-
@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
-
@sdetweil how would I extend the module? I’m not really a coder but I can follow a guide.
-
@teitlebot you would have to add some code the check the current time against a stat/stop time you would add to the configuration.
-
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
-
@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 -
@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) -
@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
-
@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… -
@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
-
ok, sorry…
-
by changing ImagesPhotos and my SleepWake, it does want u described… so it is possible
-
Hi,
I use profiles to implement pages on my mirror. I also modified my screensaver module MMM-Screen-Powersave-Notification to change to a specific profile instead of hiding the modules or shut off the screen. So it should be possible to just configure the behavior you like instead of coding stuff.
Edit: Just saw that the code had been in the development branch and not in the master. Drafted a new release a few minutes ago.
The module also supports changing the timeout during runtime or disable screensave
-
Hi @sdetweil,
That’s not really what I mean, but thanks for the explanation/ investigation.
What I mean is this.
The MMM-Plexslideshow fills the back ground with an image rather than blank/black background.
This means the two way Perspex is not a mirror (as there’s an image rather than black background)
What I want to do is if the pir detects motion to deactivate the “mmm-plexslideshow” whilst the magic mirror is running. Or to select a black/blank background (which ever works)
That way when someone approaches the mirror the slideshow will stop and The mirror shown (due to the black background)
When the pir doesn’t detect someone then the slideshow starts up again.
I hope this makes more sense ??
Cheers
D
-
@BigDanT yes, and I said, (not using your modules) I did that exact thing with my camera based motion sensor module and a full screen image show module… to prove it would work…
-
Hi @sdetweil,
That’s great! Any chance you could point me in the direction of some instructions?
Cheers
D.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login