• 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 195.3k 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.
  • K Offline
    Knox @trividar
    last edited by Jun 3, 2016, 3:46 PM

    @trividar from the earlier comments make sure you set your sensorPIN to an integer. (no quotes)

    config.js:

    {
    		module: 'MMM-PIR-Sensor',
    		config: {
    		               sensorPIN: 22,
    			       powerSaving: true
    		}
    	},
    
    1 Reply Last reply Reply Quote 0
    • T Offline
      trividar
      last edited by Jun 3, 2016, 10:47 PM

      @Knox thank you for your help. I try it, but I get the same error… I’m a noob and I realy don’t know what i do wrong…;o( Here is a foto of my error…

      0_1464993890155_78f7b8c2-23a3-4342-ad75-84aa3c27a2ed.jpg

      Have someone an idea what i do wrong?

      THX a lot…

      1 Reply Last reply Reply Quote 0
      • M Offline
        MichMich Admin
        last edited by Jun 4, 2016, 6:33 PM

        As you can see it says it misses the module “wiring-pi” in the error part.

        Try running npm install wiring-pi

        Let me know if that solves the issue.

        1 Reply Last reply Reply Quote 1
        • C Offline
          cowboysdude Module Developer
          last edited by Jun 11, 2016, 5:59 PM

          Even rolling back to node js V5 still results in a white screen. I realize people are saying that it’s a config issue but I’ve tried every combination there is and no go. I read the instructions and followed every letter and still no go.

          I was using the monitor_on.sh and monitor_off.sh files from a different one but I cannot seem to get the pir.py file to work…

          The problem with being new to all of this is that there is so much mis-information out there that you can literally spend hours doing the wrong things…

          I was going to use the @reboot method to run the pir.py but have no way of knowing if it’s even loading because either I have a bad sensor or it’s just not working… it does show up in the crontab but not working…

          On another note honestly I try not getting frustrated because this is fun for me to try and figure out…

          BUT suggestions on how to get the pir.py to run on boot up?

          Huge Thanks for ALL the hard work from everyone!! PS I’ve attached a copy of the pir.py and all files for anyone to take a look at and/or use…

          This is the last thing I need to do to make this all work correctly and I can hang it :)0_1465667815133_PIR.zip

          Thanks again!!!

          C 1 Reply Last reply Jun 11, 2016, 6:07 PM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @cowboysdude
            last edited by Jun 11, 2016, 6:07 PM

            @cowboysdude OHHHHHHHHHH and how the heck do you really make the screen blank stop? I’ve tried EVERY method I could find online but the screen still blanks… :(

            D 1 Reply Last reply Jun 17, 2016, 5:42 PM Reply Quote 0
            • D Offline
              desq @cowboysdude
              last edited by Jun 17, 2016, 5:42 PM

              @cowboysdude

              I´m getting the same “blank” - white screen as soon as i try to use this module.
              @cowboysdude do you have a solution yet?

              C 1 Reply Last reply Jun 24, 2016, 12:15 PM Reply Quote 0
              • C Offline
                cowboysdude Module Developer @desq
                last edited by Jun 24, 2016, 12:15 PM

                @desq No I don’t. Sorry I went in another direction… I have a pir.py and monitor_on, monitor_off.py… it works! If you’d like the setup I’d be happy to share…

                You just start the pir.py using crontab -e then enter @reboot [point to where your pir.py is]…

                That’s it… simple and it works!

                D 1 Reply Last reply Jun 25, 2016, 7:37 AM Reply Quote 0
                • D Offline
                  desq @cowboysdude
                  last edited by Jun 25, 2016, 7:37 AM

                  @cowboysdude
                  I got it. I installed the latest node. (6.2.1) Pull MMM-PIR from the git Repository und did all the steps Paviro explains on the module page.
                  And suddenly no more the white screen and the “USER_PRESENCE” notification is send every 5-6 sec.

                  @paviro
                  could implement a parameter to set the duration for a monitor shutdown as no USER_PRESENCE is detected?

                  C 1 Reply Last reply Jun 26, 2016, 2:44 PM Reply Quote 1
                  • J Offline
                    Jaghova
                    last edited by Jaghova Jun 26, 2016, 12:47 PM Jun 26, 2016, 12:45 PM

                    A stupid question, where “USER_PRESENCE” notification must appear? in ‘PM2 logs mm’ ??

                    If so, It doesn’t appear in my logs, which means I don’t have the module correctly installed right?

                    But if i check on ‘GPIO readall’ I can see how the IN is activated and also the OUT relay when it detects presence

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @desq
                      last edited by Jun 26, 2016, 2:44 PM

                      @desq I’m not using the mmm-PIR I’m using something else… BUT I do know from reading that it wasn’t working with node V6… you had to roll back to V5.

                      I still had trouble with v5 so I went with something else…

                      D 1 Reply Last reply Jul 1, 2016, 8:42 AM Reply Quote 0
                      • 1
                      • 2
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 9 / 13
                      9 / 13
                      • First post
                        89/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