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 not work after v2.25

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 4.4k Views 3 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.
    • J Offline
      JoeFranz @sdetweil
      last edited by

      @sdetweil I renamed the folder and reinstalled the module, this is the result:

      pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      npm WARN deprecated electron-rebuild@1.11.0: Please use @electron/rebuild moving forward.  There is no API change, just a package name change
      npm ERR! code 7
      npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
      npm ERR! command failed
      npm ERR! command sh -c node-gyp rebuild
      npm ERR! gyp info it worked if it ends with ok
      npm ERR! gyp info using node-gyp@6.1.0
      npm ERR! gyp info using node@20.8.0 | linux | arm
      npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
      npm ERR! gyp ERR! UNCAUGHT EXCEPTION 
      npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#<Object>'
      npm ERR! gyp ERR! stack     at createConfigFile (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:118:21)
      npm ERR! gyp ERR! stack     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/configure.js:85:9
      npm ERR! gyp ERR! stack     at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/mkdirp/index.js:30:20
      npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:189:23)
      npm ERR! gyp ERR! System Linux 6.1.21-v7+
      npm ERR! gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild"
      npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
      npm ERR! gyp ERR! node -v v20.8.0
      npm ERR! gyp ERR! node-gyp -v v6.1.0
      npm ERR! gyp ERR! This is a bug in `node-gyp`.
      npm ERR! gyp ERR! Try to update node-gyp and file an Issue if it does not help:
      npm ERR! gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
      
      npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2023-10-03T13_57_09_313Z-debug-0.log
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @JoeFranz
        last edited by sdetweil

        @JoeFranz said in MMM-PIR-Sensor not work after v2.25:

        “/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp” “rebuild”

        no… still using the wrong MMM-PIR-Sensor distro

        delete the one you have and do

        cd ~/MagicMirror/modules
        git clone 
        https://github.com/sdetweil/MMM-PIR-Sensor.git
        cd MMM-PIR-Sensor
        npm install
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JoeFranz @sdetweil
          last edited by

          @sdetweil ok, that worked now, my mistake :-(
          I also made updates for the pi, unfortunately I now also have the latest firmware version: 82f3750a65fadae9a38077e3c2e217ad158c8d54 from March 2023. I’ve had that before, so the monitor on the pi doesn’t go into standby. I now need to downgrade the firmware to version 5.10 (b976c54917e240630c05a9b383010f1492bc61b4). When I try with “sudo rpi-update b976c54917e240630c05a9b383010f1492bc61b4” it says that the firmware is already up to date.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @JoeFranz
            last edited by

            @JoeFranz sorry on the firmware, don’t know how to downgrade firmware

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              JoeFranz @sdetweil
              last edited by

              @sdetweil Ok, I managed it :-)
              Now everything is working again as it was before the update, thank you again :-)

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