• 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 193.5k 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.
  • 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
          • D Offline
            desq @cowboysdude
            last edited by Jul 1, 2016, 8:42 AM

            @cowboysdude mh… I really would like to stick with paviros module.
            “USER_PRESENCE” (PIR Sensor) seems to work, but my Relay does not change it´s state.
            @paviro can you confirm, that your PIR module doesn´t work with node 6.22?

            If so I must switch to that python-script-hell.

            1 Reply Last reply Reply Quote 1
            • P Offline
              paviro Admin
              last edited by paviro Jul 1, 2016, 9:27 PM Jul 1, 2016, 9:24 PM

              @desq sorry no idea :D haven’t touched it in a while since I am pretty busy at the moment (finished school, now moving to a new city at the other side of the country). Could be possible that my dependencies work with v6 now but I still need to update it and change some stuff once I have the time :)
              What exactly do you mean by duration? A delay? My PIR-Sensor can do that in hardware thats why I haven’t implemented it.

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

              – The Doctor

              W 1 Reply Last reply Jul 9, 2016, 7:28 AM Reply Quote 0
              • X Offline
                xdker
                last edited by Jul 2, 2016, 4:26 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • W Offline
                  Wilco89 @paviro
                  last edited by Jul 9, 2016, 7:28 AM

                  @paviro got a complete White screen and no posibility to use vnc. Got there the Same White screen and no option to open terminal anybody a solution so i can disable the module?

                  K 1 Reply Last reply Jul 9, 2016, 7:45 AM Reply Quote 0
                  • K Offline
                    KirAsh4 Moderator @Wilco89
                    last edited by Jul 9, 2016, 7:45 AM

                    @Wilco89, use SSH to log into it, user 'pi', password 'raspberry' unless you changed it to something else. Edit the config file, reboot the rpi.

                    A Life? Cool! Where can I download one of those from?

                    W 1 Reply Last reply Jul 9, 2016, 10:02 AM Reply Quote 0
                    • W Offline
                      Wilco89 @KirAsh4
                      last edited by Jul 9, 2016, 10:02 AM

                      @KirAsh4 didn’t think about that. Oops

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 10 / 13
                      10 / 13
                      • First post
                        95/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