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

MMM-PIR-Sensor is turning off the screen when it detects user?

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 3 Posters 7.4k Views 3 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.
  • C Offline
    cowboysdude Module Developer @Mar
    last edited by cowboysdude Feb 4, 2017, 6:05 PM Feb 4, 2017, 6:04 PM

    @Mar I kept it really simple on mine… no directories just put the files directly into the root directory… that way didn’t have to figure out paths and such.

    Also this has to match how your’s is setup… in the pir.py file:

    io.setmode(io.BCM)
    SHUTOFF_DELAY = 20  # seconds
    PIR_PIN = 17        # Pin 11 on the board
    
    M 1 Reply Last reply Feb 4, 2017, 6:09 PM Reply Quote 0
    • M Offline
      Mar @cowboysdude
      last edited by Feb 4, 2017, 6:09 PM

      @cowboysdude Great i’ll move it across and keep it simple. And yes my sensor is installed to your default pin. Just so I can get an idea if its working, when would the screen shut off? Is this before MM loads or after?

      C 1 Reply Last reply Feb 4, 2017, 6:11 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer @Mar
        last edited by Feb 4, 2017, 6:11 PM

        @Mar Because it’s not mirror related it will shut off and turn on if the mirror is running or not … :)

        Hang in there it took me a bit to get it working … not being sure how the PIR sensor is setup [should be two screw settings on the sensor one is timing the other is sensitivity]…

        M 1 Reply Last reply Feb 4, 2017, 6:15 PM Reply Quote 0
        • M Offline
          Mar @cowboysdude
          last edited by Mar Feb 4, 2017, 7:23 PM Feb 4, 2017, 6:15 PM

          @cowboysdude Perfect, so I should expect it to shut off by the time the system loads to the prompt.

          Yes it has two sensors, one for sensitivity and the other for how long to send the active signal. Suppose I’ll just play around a bit. Maybe i’ll try find the logs for wherever it tells you when cron jobs have run. Not having any luck so far. i might be doing the cron part wrong, i’ve never played around with cron jobs before.

          Im thinking its the pir.py script as I’ve done the cron job right I think.

          edit: locations of the startup and shutdown script in pir.py need to be updated! Doh!

          1 Reply Last reply Reply Quote 1
          • C Offline
            cowboysdude Module Developer
            last edited by Feb 5, 2017, 3:12 AM

            Yes you should be able to start everything up… then walk away and see what happens… what I did was once the mirror was loaded I took a towel and covered the PIR Sensor… ;) Then once the screen went out I took it off and waved my hand in front of it and it came back on :)

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