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.
    • 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
                • O Offline
                  OliWer
                  last edited by

                  Thanks for your help =)
                  I was not able to get MMM-PIR-Sensor running, even with your steps listed above. As it is deprecated I did what @karsten13 suggested and used another PIR (MMM-PIR). It had the same issue first, but using magicmirror-rebuild from https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?page=1 I was able to got the PIR working again.
                  So again: Thanks for trying to help and your suggestions!

                  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