MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-PIR-Sensor does not start

    Troubleshooting
    3
    4
    2752
    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.
    • F
      firesgc last edited by

      Hi,

      I have followed the installing guide of MMM-PIR-Sensor, but after I have added the module to the config.js I am getting this error and my mirror stays white:

      App threw an error when running Error: Module did not self-register.
      at Error (native)
      at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20)
      at Object.Module._extensions…node (module.js:568:18)
      at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:158:20)
      at Module.load (module.js:456:32)
      at tryModuleLoad (module.js:415:12)
      at Function.Module._load (module.js:407:3)
      at Module.require (module.js:466:17)
      at require (internal/module.js:20:19)
      at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97)
      Error: Module did not self-register.
      at Error (native)
      at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:158:20)
      at Object.Module._extensions…node (module.js:568:18)
      at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:158:20)
      at Module.load (module.js:456:32)
      at tryModuleLoad (module.js:415:12)
      at Function.Module._load (module.js:407:3)
      at Module.require (module.js:466:17)
      at require (internal/module.js:20:19)
      at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97)

      I have not run “npm install” with sudo right. I have just logged in as user pi, navigate to modules folder, cloned the MMM-PIR-Sensor repository, navigate to the new folder, called “npm install” and added pi to the gpio group. Several other modules (like “localtransport”) are working like intended.

      Thank you very much in advance!
      Cheers

      1 Reply Last reply Reply Quote 0
      • mochman
        mochman Module Developer last edited by mochman

        @firesgc Did the installation go without errors for you?

        If you start magicmirror with sudo and it works, it looks like it’s a permission problem.

        1 Reply Last reply Reply Quote 0
        • F
          firesgc last edited by

          I have tried to start magicmirror with sudo (DISPLAY=:0 gksudo npm start), but I get the same error messages.

          Please take a look at install.log of wiring-pi, but I don’t see any errors there.
          0_1465418837018_install.log

          Thank you!

          J 1 Reply Last reply Reply Quote 0
          • J
            Jaghova @firesgc last edited by

            @firesgc

            I had the same problem as you, and after trying almost everything I found where was the problem.

            To add your user PI to GPIO group, in the module page says to run:
            sudo useradd -g pi gpio
            My RPI always replay me that GPIO group already exists… so nothing happend

            I solve it by running:
            sudo usermod -a -G gpio pi
            In this case pi user is added to gpio group

            I just restarted and it worked.

            Now using the following command:
            gpio readall
            I can see how the Inputs and Outputs change

            I hope it works also for you

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy