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 235.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.
    • cowboysdudeC Offline
      cowboysdude Module Developer
      last edited by

      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!!!

      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer @cowboysdude
        last edited by

        @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 Reply Quote 0
        • D Offline
          desq @cowboysdude
          last edited by

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

          cowboysdudeC 1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer @desq
            last edited by

            @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 Reply Quote 0
            • D Offline
              desq @cowboysdude
              last edited by

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

              cowboysdudeC 1 Reply Last reply Reply Quote 1
              • J Offline
                Jaghova
                last edited by Jaghova

                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
                • cowboysdudeC Offline
                  cowboysdude Module Developer @desq
                  last edited by

                  @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 Reply Quote 0
                  • D Offline
                    desq @cowboysdude
                    last edited by

                    @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
                    • paviroP Offline
                      paviro
                      last edited by paviro

                      @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

                      Wilco89W 1 Reply Last reply Reply Quote 0
                      • X Offline
                        xdker
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • Wilco89W Offline
                          Wilco89 @paviro
                          last edited by

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

                          KirAsh4K 1 Reply Last reply Reply Quote 0
                          • KirAsh4K Offline
                            KirAsh4 Moderator @Wilco89
                            last edited by

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

                            Wilco89W 1 Reply Last reply Reply Quote 0
                            • Wilco89W Offline
                              Wilco89 @KirAsh4
                              last edited by

                              @KirAsh4 didn’t think about that. Oops

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                murattyilmaz
                                last edited by

                                Hello,

                                I’ve installed this module and sensor to my pi but I’m facing an issue.
                                When I start the app, its loading as expected and show everything normally.
                                After 5 sec. my monitor goes to sleep and says me “no signal” even if I shake may hand front of it.
                                Then monitor blink a few times and seems like open but nothing to show or said.
                                After this situation, never comes to live back and can’t close or shut down the app (can’t go back to OS screen). I have to shut the power to reset my pi.

                                Do you have any idea why this happens?

                                S 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  McSorley
                                  last edited by McSorley

                                  Any ETA on when the update will occur for removing the wiring-pi dependency? I wouldn’t like going down to a lower version of Node.js for this to work encase I break the whole thing.

                                  1 Reply Last reply Reply Quote 0
                                  • paviroP Offline
                                    paviro
                                    last edited by paviro

                                    Sorry no :/ I just started a new job/school and I do not currently have a mirror setup :( but it should really not be that hard to do so feel free to just try! You can use onoff there is an example which would not need to be changed much to replace wiring Pi in my code :)
                                    If you succeed please send a pull request!

                                    Edit: If I find some time this evening I will try to do it but you will have to test as again I don’t have a mirror currently.

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

                                    – The Doctor

                                    1 Reply Last reply Reply Quote 1
                                    • paviroP Offline
                                      paviro
                                      last edited by

                                      Double post so you get notified: Done feel free to try :) don’t forget to reinstall the module with npm install!

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

                                      – The Doctor

                                      MitchfarinoM 1 Reply Last reply Reply Quote 0
                                      • MitchfarinoM Offline
                                        Mitchfarino Module Developer @paviro
                                        last edited by Mitchfarino

                                        @paviro So it works with node 6 now?

                                        paviroP 1 Reply Last reply Reply Quote 0
                                        • paviroP Offline
                                          paviro @Mitchfarino
                                          last edited by

                                          @Mitchfarino if it still works at all yes :)

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

                                          – The Doctor

                                          1 Reply Last reply Reply Quote 0
                                          • paviroP Offline
                                            paviro
                                            last edited by

                                            Now it should definitely work :)

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

                                            – The Doctor

                                            1 Reply Last reply Reply Quote 3

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 5 / 7
                                            • First post
                                              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