Read the statement by Michael Teeuw here.
MMM-EyeCandy shown when USER_PRESENCE
-
Searching for a while, how i can hide modules when PIR doesnt detect movement. So i used the voice control part from EyeCandy modul.
I’m new in MagicMirror, is it correct like this:notificationReceived: function(notification, payload) { if (payload === false) { this.hide(); } else if (notification === 'USER_PRESENCE') { this.show(2000); } },
this.show means how long the eyecandy is shown?
-
@thedk said in MMM-EyeCandy shown when USER_PRESENCE:
this.show means how long the eyecandy is shown?
this.show(2000);
means the transition from hidden to shown is 2000ms, or 2 seconds…Now, in order to hide all modules “when the PIR doesn’t detect any movement”, you could try something like this within the PIR module
notificationReceived: function(notification, payload) { if (payload === false) { MM.getModules().enumerate((module) => { module.hide(2000); }); } else if (notification === 'USER_PRESENCE') { MM.getModules().enumerate((module) => { module.show(2000); }); },
Something like that.
-
Thanks for that.
To hide all modules i an other problem. I have a discussion about that, when the screen goes off to save energy.
I wanr to use this code just for eyecandy an maybe newsfeed cause of the high Temperatur of the Pi when its always running. -
Is it possible to add a duration how long the eyecandy is shown?
Rest works fine. -
@thedk said in MMM-EyeCandy shown when USER_PRESENCE:
Is it possible to add a duration how long the eyecandy is shown?
I’ll take a look at it when I get a chance. In the meantime, you could use something like this https://github.com/ianperrin/MMM-ModuleScheduler to accomplish that. Or, there are a few voice modules that can hide or show modules upon command.
-
With the Sheduler it wouldnt work, i guess.
I just want to show the eyecandy when PIR detects movement for some seconds. Maybe it isnt that complicated and just a little command? -
Hi all,
I’m looking for something similar than the main thread request.
I need to switch between 2 gif images on notification sent by other module.
Eg : On notification 1 , diplay gif one , on notification 2 display Gif 2 .
I can’t find how to achieve this…
@Mykle1 Do you still make developement on this module ? If yes would it be possible to implement some notification consideration in your module to handle multiple custom images ?
Thank you !Ejay
-
That is really not the purpose of this module. It was designed to simply show animations. Perhaps one of the image modules would be better suited to your needs. I will look into this when I am not so busy.