• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Problem whit MMM-PIE-Sensor modules

Scheduled Pinned Locked Moved Bug Hunt
5 Posts 4 Posters 666 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.
  • M Offline
    mecco86
    last edited by Jan 1, 2022, 11:05 PM

    Hello, and happy new year, After a new update of magic mirror, pir modules don’t work.

    pi@raspberrypi:~ $ cd MagicMirror
    pi@raspberrypi:~/MagicMirror $ npm start

    magicmirror@2.18.0 start /home/pi/MagicMirror
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

    [01.01.2022 23:44.15.704] [LOG] Starting MagicMirror: v2.18.0
    [01.01.2022 23:44.15.712] [LOG] Loading config …
    [01.01.2022 23:44.15.720] [LOG] Loading module helpers …
    [01.01.2022 23:44.15.765] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 83. This version of Node.js requires
    NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
    the module (for instance, using npm rebuild or npm install).
    [01.01.2022 23:44.15.767] [LOG] Loading module helpers …
    [01.01.2022 23:44.15.774] [ERROR] App threw an error during load
    [01.01.2022 23:44.15.776] [ERROR] Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 83. This version of Node.js requires
    NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
    the module (for instance, using npm rebuild or npm install).
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
    at Object.Module._extensions…node (node:internal/modules/cjs/loader:1199:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
    at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31
    [01.01.2022 23:44.15.778] [ERROR] Whoops! There was an uncaught exception…
    [01.01.2022 23:44.15.784] [ERROR] Error: The module ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 83. This version of Node.js requires
    NODE_MODULE_VERSION 99. Please try re-compiling or re-installing
    the module (for instance, using npm rebuild or npm install).
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
    at Object.Module._extensions…node (node:internal/modules/cjs/loader:1199:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
    at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
    code: ‘ERR_DLOPEN_FAILED’
    }
    [01.01.2022 23:44.15.787] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [01.01.2022 23:44.15.788] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [01.01.2022 23:44.16.160] [LOG] Launching application.
    [01.01.2022 23:44.23.203] [LOG] Shutting down server…
    [01.01.2022 23:44.23.209] [ERROR] Whoops! There was an uncaught exception…
    [01.01.2022 23:44.23.216] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
    at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
    at App. (/home/pi/MagicMirror/js/electron.js:139:7)
    at App.emit (node:events:394:28)
    at appMethod (node:electron/js2c/browser_init:69:1830

    S 1 Reply Last reply Jan 1, 2022, 11:34 PM Reply Quote 0
    • S Offline
      sdetweil @mecco86
      last edited by sdetweil Jan 1, 2022, 11:41 PM Jan 1, 2022, 11:34 PM

      @mecco86 in the MMM-PIR-Sensor folder do

      npm rebuild
      

      https://docs.npmjs.com/cli/v7/commands/npm-rebuild

      actually, don’t do that

      that is needed for server only mode
      do

      cd ~/MagicMirror 
      npm install electron-rebuild --save
      cd modules/MMM-PIR-Sensor
      ../../node_modules/bin/electron-rebuild
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      J 1 Reply Last reply Jan 2, 2022, 4:20 PM Reply Quote 0
      • J Offline
        JoeFranz @sdetweil
        last edited by Jan 2, 2022, 4:20 PM

        @sdetweil don’t work here :-(

        /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
        0|MagicMir | at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:112:48)
        0|MagicMir | at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:7:31 {
        0|MagicMir | code: ‘ERR_DLOPEN_FAILED’
        0|MagicMir | }
        0|MagicMir | [02.01.2022 17:15.53.329] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        0|MagicMir | [02.01.2022 17:15.53.332] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
        0|MagicMir | [4288:0102/171555.340330:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
        0|MagicMir | [4321:0102/171555.638445:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
        0|MagicMir | [02.01.2022 17:18.59.907] [ERROR] Whoops! There was an uncaught exception…
        0|MagicMir | [02.01.2022 17:18.59.912] [ERROR] TypeError: Cannot read properties of undefined (reading ‘close’)
        0|MagicMir | at App.stop (/home/pi/MagicMirror/js/app.js:257:14)
        0|MagicMir | at App. (/home/pi/MagicMirror/js/electron.js:139:7)
        0|MagicMir | at App.emit (node:events:394:28)
        0|MagicMir | [02.01.2022 17:18.59.913] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
        0|MagicMir | [02.01.2022 17:18.59.914] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

        B 1 Reply Last reply Jan 2, 2022, 4:37 PM Reply Quote 0
        • B Offline
          bugsounet Banned @JoeFranz
          last edited by Jan 2, 2022, 4:37 PM

          @joefranz : I think, this can help

          Warn: MM v2.18.x needs nodejs v14.x or v16.x :)

          to verify, just try this commands:

          node -v
          
          J 1 Reply Last reply Jan 2, 2022, 4:47 PM Reply Quote 0
          • J Offline
            JoeFranz @bugsounet
            last edited by JoeFranz Jan 2, 2022, 4:55 PM Jan 2, 2022, 4:47 PM

            @bugsounet said in Problem whit MMM-PIE-Sensor modules:

            node -v
            pi@raspberrypi:~/MagicMirror $ node -v
            v16.13.1

            It works now, thank you :-)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              3/5
              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