Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
-
Ok, I will!
Maybe it is a hardware problem? I’ve connected the PIR-sensor this way, is this correct?
https://www.raspberrypi.org/learning/physical-computing-guide/connect-pir/ -
@incubik Looks fine, the hardware does not influence the module behavior tough, you could also run it without something connected.
-
Ok, so if it doesn’t support v6, how can @Bangee made it work? I guess I should:
- Uninstall NodeJS v6 and install v5
or - Delete the Sensor Module for now
??
- Uninstall NodeJS v6 and install v5
-
When I checked it did not work, maybe the dependencies were updated since then. If not install v5 :)
-
This PDF shows how to adjust your PIR Sensor.
Today, i don’t know why but after a few minutes the monitor turns off, but then it reactivates again without any motion in front of the mirror. Any sugestions?
-
@Bangee you can always try to add some logging to the code
console.log("something")to see where it is triggered and if the script is the cause or something else :) -
This is all 10 seconds. But there is noone in front of the mirror… :-(
meteoblueForecast received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor logger.js (Zeile 20) newsfeed received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor logger.js (Zeile 20) clock received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor logger.js (Zeile 20) calendar received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor logger.js (Zeile 20) swisstransport received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor logger.js (Zeile 20) .... -
@Bangee Wait! That’s just all modules logging they received the notification, thats probably the same message over and over again logged by different modules.
-
@paviro will there be any chance to log what information the sensor is returning?
I’m not sure why my screen is alway going on and off, but i’ll get nervous… -
@Bangee Sure in the
node_helper.jsfind the commentDetected movementand addconsole.log()so that it looks like the following:gpio.wiringPiISR(this.config.sensorPIN, gpio.INT_EDGE_BOTH, function(delta) { console.log(gpio.digitalRead(self.config.sensorPIN)) .... } -
@paviro I dug out a junk-box PIR sensor. Everything is installed and no white-screen problems, but this sensor only puts out an “on” signal for about a second after motion is detected. Any way to make the mirror stay awake for some time (say 2-5 minutes) with that timer being reset on any motion signal? Then if nobody is in front of the mirror for awhile it goes off. Currently mine flickers off and on, not the ideal behavior.
-
@jrleeman you should be able to change that by modifying the PIR-Sensor mine has the possibility to exactly adjust that :)
-
For the record: node 6.1.0 is supported.
-
@MichMich is it? Not sure I think one dependencies of THIS plugin does not support it, yet :/
-
@paviro ah sorry. Throught you were talking about mm2 in general.
-
@paviro i’ve added the console.log as you described, but there is no log output in firebug. where can I check this log elsewhere?
-
@Bangee it is node output! You have to check the log of the backend :)
-
@paviro sorry, i’m still a node noob… how can I check this? ;-)
-
@Bangee how do you start your mirror?
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