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 tuning

    Scheduled Pinned Locked Moved Troubleshooting
    40 Posts 7 Posters 33.6k Views 6 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.
    • O Offline
      ostfilinchen @yawns
      last edited by

      @yawns. Is it possible that my Version is 1.4.13?

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        Yes, that is possible. When I had to run this command last time I was using 1.4.0 …
        Just give it a try. Worst case is you have to delete the MMM-PIR-Sensor folder and git clone it again.

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          ostfilinchen @yawns
          last edited by

          @yawns now i get this error

          pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ sudo npm rebuild --runtime=electron --target=1.4.13 --disturl=https://atom.io/download/atom-shell --abi=50

          epoll@0.1.20 install /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
          node-gyp rebuild

          gyp ERR! clean error
          gyp ERR! stack Error: EACCES: permission denied, unlink ‘build/Makefile’
          gyp ERR! System Linux 4.4.38-v7+
          gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
          gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
          gyp ERR! node -v v7.0.0
          gyp ERR! node-gyp -v v3.4.0
          gyp ERR! not ok

          npm ERR! Linux 4.4.38-v7+
          npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “rebuild” “–runtime=electron” “–target=1.4.13” “–disturl=https://atom.io/download/atom-shell” “–abi=50”
          npm ERR! node v7.0.0
          npm ERR! npm v3.10.8
          npm ERR! code ELIFECYCLE
          npm ERR! epoll@0.1.20 install: node-gyp rebuild
          npm ERR! Exit status 1
          npm ERR!
          npm ERR! Failed at the epoll@0.1.20 install script ‘node-gyp rebuild’.
          npm ERR! Make sure you have the latest version of node.js and npm installed.
          npm ERR! If you do, this is most likely a problem with the epoll package,
          npm ERR! not with npm itself.
          npm ERR! Tell the author that this fails on your system:
          npm ERR! node-gyp rebuild
          npm ERR! You can get information on how to open an issue for this project with:
          npm ERR! npm bugs epoll
          npm ERR! Or if that isn’t available, you can get their info via:
          npm ERR! npm owner ls epoll
          npm ERR! There is likely additional logging output above.

          npm ERR! Please include the following file with any support request:
          npm ERR! /home/pi/MagicMirror/modules/MMM-PIR-Sensor/npm-debug.log
          pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $

          1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator
            last edited by

            why are you running it with sudo??

            1 Reply Last reply Reply Quote 0
            • O Offline
              ostfilinchen
              last edited by

              without sudo i get the same error

              1 Reply Last reply Reply Quote 0
              • O Offline
                ostfilinchen
                last edited by

                After a few New Installations now the mm starts and the PIR works.

                1 Reply Last reply Reply Quote 1
                • 1
                • 2
                • 3
                • 4
                • 1 / 4
                • 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