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 218.2k 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.
    • paviroP Offline
      paviro Admin @joerod
      last edited by

      @joerod That’s all? Not a failure of my plugin. Any more logs?

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

      – The Doctor

      J 1 Reply Last reply Reply Quote 0
      • T Offline
        Try2Fly
        last edited by

        For people who are not confortable with programming this, or need to buy a pir sensor anyway

        You can also buy a pir with motionsensor like this

        1 Reply Last reply Reply Quote 0
        • J Offline
          joerod @paviro
          last edited by paviro

          @paviro

              9 verbose stack Error: magicmirror@2.0.0 start: `electron js/electron.js`
              9 verbose stack Exit status 1
              9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214$
              9 verbose stack     at emitTwo (events.js:87:13)
              9 verbose stack     at EventEmitter.emit (events.js:172:7)
              9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
              9 verbose stack     at emitTwo (events.js:87:13)
              9 verbose stack     at ChildProcess.emit (events.js:172:7)
              9 verbose stack     at maybeClose (internal/child_process.js:817:16)
              9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
          

          I’ve tested my PIR sensor with a Python script to make sure I’m using the proper GPIO and its functioning as it should. I do see 1 & 0 when I move near the sensor so I don’t think its the hardware.

          I’d love to use this module, I was going to do it in python but since you have it in JS I figured why not use that.

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

            @joerod please use Markdown on code snippets so it is easier to read! :) have you installed all the dependencies (also for the mirror itself?)
            @MichMich any idea?

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

            – The Doctor

            J 1 Reply Last reply Reply Quote 0
            • MichMichM Offline
              MichMich Admin
              last edited by

              Sorry, no clue. :(

              1 Reply Last reply Reply Quote 0
              • J Offline
                joerod @paviro
                last edited by

                @paviro I had to downgrade to node 5.0.0, I confirmed its that version of node. After the downgrade I removed the PIR module and did a git clone and then npm install in the folder. Still the same thing, is there a specific version of node 5 I should be using or a specific version of npm?

                I’m running it from
                /home/pi/MagicMirror/modules/MMM-PIR-Sensor

                paviroP 1 Reply Last reply Reply Quote 0
                • MichMichM Offline
                  MichMich Admin
                  last edited by

                  Could you try it with node serveronly ?

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

                    @joerod also do npm install on the mm folder or install the whole thing from scratch :)

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

                    – The Doctor

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      DirkS @paviro
                      last edited by

                      @paviro as a feedback: i used the latest MMM branch and yours and it is working fine with my PIR sensor on a rpi2. I didn’t had to downgrade anything to node 5 (and i also don’t know what it is :D ) Thanks for your work. It is so great that the mirror is starting if a presence is detected!!

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

                        @DirkS glad to hear! :)

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

                        – The Doctor

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