MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    electron-rebuild and MagicMirror v2.18 (and more)

    Development
    13
    35
    3086
    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
      sdetweil @selyjohns last edited by

      @selyjohns correct.

      the author of the magicmirror rebuild tool said he will not fix it for this module.

      as the module is in archived status

      Sam

      Create a working config
      How to add modules

      wishmaster270 1 Reply Last reply Reply Quote 1
      • wishmaster270
        wishmaster270 Module Developer @sdetweil last edited by

        @sdetweil

        I generally suggest the same as bugsoutnet…The best way would be to use one of the other PIR modules.
        But i also found an solution which worked in my setup. I used the sdetweil script to install the current version of MagicMirror.
        In the module directory of MMM-PIR-Sensor you need to delete package-lock.json and the node_modules folder:

        rm -rf ~/MagicMirror/modules/MMM-PIR-Sensor/node_modules
        rm -rf ~/MagicMirror/modules/MMM-PIR-Sensor/package-lock.json
        

        Then you need to replace the whole content of package.json file with the following one that uses the MagicMirror-rebuild library of bugsounet…

        {
          "name": "Magic-Mirror-Module-PIR-Sensor",
          "version": "1.1.0",
          "description": "PIR motion sensor module for the Magic Mirror.",
          "repository": {
            "type": "git",
            "url": "git+https://github.com/paviro/MMM-PIR-Sensor"
          },
          "keywords": [
            "magic mirror",
            "smart mirror",
            "PIR-Sensor",
            "module",
            "motion"
          ],
          "author": "Paul-Vincent Roll",
          "contributors": "https://github.com/paviro/MMM-PIR-Sensor/graphs/contributors",
          "license": "MIT",
          "bugs": {
            "url": "https://github.com/paviro/MMM-PIR-Sensor/issues"
          },
          "homepage": "https://github.com/paviro/MMM-PIR-Sensor#readme",
          "scripts": {
        	  "postinstall": "node_modules/.bin/MagicMirror-rebuild"
          },
          "dependencies": {
            "onoff": "latest",
            "magicmirror-rebuild": "latest"
          }
        }
        

        Then you need to run npm install

        npm install
        
        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @wishmaster270 last edited by

          @wishmaster270 did u try the upgrade script?

          it does delete both file and folder and then npm install

          Sam

          Create a working config
          How to add modules

          wishmaster270 1 Reply Last reply Reply Quote 0
          • wishmaster270
            wishmaster270 Module Developer @sdetweil last edited by

            @sdetweil Hi, i did a fresh install and added the module manually. I do not use MMM-PIR-Sensor but some other users had the same problem with MMM-Gestures (which i do not use either). Did a clean install of MagicMirror on a development Pi with your script and added modules manually.

            1 Reply Last reply Reply Quote 1
            • Referenced by  karsten13 karsten13 
            • Referenced by  karsten13 karsten13 
            • Referenced by  O OliWer 
            • R
              Rags last edited by

              Awesome. It really works. I had the same issue and it was really frustrating, until i stumbled upon this solution. Great my PIR-sensor module was revived. I just followed the steps mentioned and voila…it has come back to life. Thanks a ton, it is selfless gentlemen like yourself who keep this world going. Kudos.

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