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.

    Issue with PIR Sensor after upgrade to 2.19

    Scheduled Pinned Locked Moved Solved Troubleshooting
    12 Posts 4 Posters 2.2k Views 4 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.
    • S Offline
      sdetweil @OliWer
      last edited by sdetweil

      @OliWer try this

      cd ~/MagicMirror
      npm install node-abi
      

      then npm install in the module folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      O 1 Reply Last reply Reply Quote 0
      • O Offline
        OliWer @sdetweil
        last edited by

        @sdetweil
        I did now, but same issue =(

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

          @OliWer ok, erase the mode_modules folder in the module folder and the package-lock.json file

          and redo npm install

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          O 1 Reply Last reply Reply Quote 0
          • O Offline
            OliWer @sdetweil
            last edited by

            @sdetweil
            Same…

            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
            
            > Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall
            > node_modules/.bin/electron-rebuild -e ../../node_modules/electron
            
            ⠋ Searching dependency tree
            An unhandled error occurred inside electron-rebuild
            Could not detect abi for version 17.2.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
            
            Error: Could not detect abi for version 17.2.0 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
                at Object.getAbi (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-abi/index.js:36:9)
                at new Rebuilder (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:126:48)
                at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
                at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
                at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:124:33
                at Generator.next (<anonymous>)
                at fulfilled (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:6:58)
            npm ERR! code 255
            npm ERR! path /home/pi/MagicMirror/modules/MMM-PIR-Sensor
            npm ERR! command failed
            npm ERR! command sh -c node_modules/.bin/electron-rebuild -e ../../node_modules/electron
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/pi/.npm/_logs/2022-04-07T15_08_23_853Z-debug-0.log
            
            karsten13K S 2 Replies Last reply Reply Quote 0
            • karsten13K Offline
              karsten13 @OliWer
              last edited by

              @OliWer

              already discussed here

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

                @OliWer ok, 2 more steps.

                ok, we are executing electron rebuild from the module folderm, it can’t find the important info about electron in the base folder… SO

                cd ~/MagicMirror
                npm install electron-rebuild --save
                

                then cd to the module folder again and then

                ~/MagicMirror/node_modules/.bin/electron-rebuild
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @karsten13 yeh, he just said he wasn’t gonna fix his tool…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  karsten13K 1 Reply Last reply Reply Quote 0
                  • karsten13K Offline
                    karsten13 @sdetweil
                    last edited by

                    @sdetweil AFAIS someone got it running https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more/32?page=4# but don’t know if it works

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

                      @karsten13 magicmirror-rebuild does not work for this module…and won’t be fixed
                      (as the module is ‘archived’)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      karsten13K 1 Reply Last reply Reply Quote 0
                      • karsten13K Offline
                        karsten13 @sdetweil
                        last edited by

                        @sdetweil

                        yes, MMM-PIR-Sensor is deprecated so its better to use another module which is still maintained.

                        I got MMM-PIR-Sensor installed with this workaround:

                        Change dependencies section in package.json to

                          "dependencies": {
                            "onoff": "latest",
                            "magicmirror-rebuild": "latest"
                          }
                        

                        Run npm install which will fail.

                        Edit node_modules/epoll/binding.gyp and insert the following in line 2 (after the first {):

                          "variables": {
                            "openssl_fips" : "0"
                          },
                        

                        Run npm install again.

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