• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

PIR-Sensor - put your mirror to sleep if not used

Scheduled Pinned Locked Moved Troubleshooting
126 Posts 37 Posters 196.6k Views 20 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.
  • P Offline
    paviro Admin @Bangee
    last edited by May 12, 2016, 7:49 PM

    @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.

    We're all stories in the end. Just make it a good one, eh?

    – The Doctor

    1 Reply Last reply Reply Quote 0
    • B Offline
      Bangee Module Developer
      last edited by May 12, 2016, 8:12 PM

      @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…

      P 1 Reply Last reply May 12, 2016, 8:13 PM Reply Quote 0
      • P Offline
        paviro Admin @Bangee
        last edited by paviro May 12, 2016, 8:17 PM May 12, 2016, 8:13 PM

        @Bangee Sure in the node_helper.js find the comment Detected movement and add console.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))
                ....
        }
        

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        B 1 Reply Last reply May 13, 2016, 6:18 AM Reply Quote 0
        • J Offline
          jrleeman @paviro
          last edited by May 13, 2016, 3:09 AM

          @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.

          P 1 Reply Last reply May 13, 2016, 4:16 AM Reply Quote 0
          • P Offline
            paviro Admin @jrleeman
            last edited by May 13, 2016, 4:16 AM

            @jrleeman you should be able to change that by modifying the PIR-Sensor mine has the possibility to exactly adjust that :)

            We're all stories in the end. Just make it a good one, eh?

            – The Doctor

            J 1 Reply Last reply May 13, 2016, 12:40 PM Reply Quote 0
            • M Offline
              MichMich Admin
              last edited by May 13, 2016, 5:41 AM

              For the record: node 6.1.0 is supported.

              P 1 Reply Last reply May 13, 2016, 5:42 AM Reply Quote 0
              • P Offline
                paviro Admin @MichMich
                last edited by May 13, 2016, 5:42 AM

                @MichMich is it? Not sure I think one dependencies of THIS plugin does not support it, yet :/

                We're all stories in the end. Just make it a good one, eh?

                – The Doctor

                M 1 Reply Last reply May 13, 2016, 5:43 AM Reply Quote 0
                • M Offline
                  MichMich Admin @paviro
                  last edited by May 13, 2016, 5:43 AM

                  @paviro ah sorry. Throught you were talking about mm2 in general.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bangee Module Developer @paviro
                    last edited by May 13, 2016, 6:18 AM

                    @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?

                    P 1 Reply Last reply May 13, 2016, 7:01 AM Reply Quote 0
                    • P Offline
                      paviro Admin @Bangee
                      last edited by May 13, 2016, 7:01 AM

                      @Bangee it is node output! You have to check the log of the backend :)

                      We're all stories in the end. Just make it a good one, eh?

                      – The Doctor

                      B 1 Reply Last reply May 13, 2016, 7:03 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 12
                      • 13
                      • 3 / 13
                      3 / 13
                      • First post
                        25/126
                        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