• 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.

[MMM-PIR-Sensor] Install failing

Scheduled Pinned Locked Moved Troubleshooting
75 Posts 19 Posters 88.1k Views 18 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.
  • J Offline
    johnnyboy @STEFF92
    last edited by johnnyboy May 11, 2017, 6:53 PM Mar 22, 2017, 10:06 PM

    This post is deleted!
    1 Reply Last reply Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @STEFF92
      last edited by Mar 23, 2017, 11:34 AM

      @STEFF92 none is not a valid js value either use

      {
        module: 'MMM-PIR-Sensor',
        config: {
          sensorPIN: 23,
          powerSaving: true,
          relayPIN: false,
          relayOnState: 1
        }
      },
      

      or like this, because relayPIN is set to false by default

      {
        module: 'MMM-PIR-Sensor',
        config: {
          sensorPIN: 23,
          powerSaving: true,
          relayOnState: 1
        }
      },
      

      Please create a github issue if you need help, so I can keep track

      S 1 Reply Last reply Mar 23, 2017, 12:39 PM Reply Quote 1
      • S Offline
        STEFF92 @strawberry 3.141
        last edited by Mar 23, 2017, 12:39 PM

        @strawberry-3.141 Thanks, now the config file and the magic mirror surface are running but there is no response from the sensor. i have moved the potentiometer but the screen doesnt turn off. Do you know any possible mistake i could have made?

        S 1 Reply Last reply Mar 23, 2017, 12:46 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @STEFF92
          last edited by Mar 23, 2017, 12:46 PM

          @STEFF92 I guess you might defined the wrong pin number according on your setup you use gpio23 which is pin 16 in this diagram https://forum.magicmirror.builders/uploads/files/1485851152518-raspberry-pi-15b.jpg, but I never did something with the gpio of the pi

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 1
          • O Offline
            Oliver_Tooth
            last edited by May 7, 2017, 5:07 PM

            Hi all,

            I’ve been trying to instal this module, but i’m bumping into the issue of needing node module 53, as it was compiled with 48. I’ve been at this all day and i’m really struggling. Can anyone offer any advice? Thanks in advance!

            Y 1 Reply Last reply May 7, 2017, 5:53 PM Reply Quote 0
            • Y Offline
              yawns Moderator @Oliver_Tooth
              last edited by May 7, 2017, 5:53 PM

              @Oliver_Tooth
              Please search this forum for “version mismatch”. I’m on my smartphone right now, otherwise I would post the command necessary.
              You need to rebuild the module with a special command providing the version info related to your system

              O 1 Reply Last reply May 7, 2017, 7:11 PM Reply Quote 0
              • O Offline
                Oliver_Tooth @yawns
                last edited by May 7, 2017, 7:11 PM

                @yawns Cheers for this. I’ve had a quick browse but i’m struggling to find anything that works. If your able to post the command whenever you’re able to i’d really appreciate it! thanks.

                Y 2 Replies Last reply May 7, 2017, 7:12 PM Reply Quote 0
                • Y Offline
                  yawns Moderator @Oliver_Tooth
                  last edited by May 7, 2017, 7:12 PM

                  @Oliver_Tooth
                  Sure, tomorrow morning

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    yawns Moderator @Oliver_Tooth
                    last edited by May 8, 2017, 7:46 AM

                    @Oliver_Tooth

                    all right …

                    Open a terminal and do this:

                    cd ~/MagicMirror
                    npm list | grep electron
                    

                    You will see something like this:

                    ├─┬ electron-prebuilt@1.4.5
                    │ ├─┬ electron-download@3.0.1
                    npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-yamllint@0.2.0
                    

                    Note the version of electron, in this case it is 1.4.5, if it is different for you please replace the version accordingly.
                    Afterwards run this:

                    cd modules/MMM-PIR-Sensor
                    npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50
                    

                    Now the module should not throw a version mismatch error any more.

                    O 2 Replies Last reply May 8, 2017, 5:56 PM Reply Quote 0
                    • O Offline
                      Oliver_Tooth @yawns
                      last edited by May 8, 2017, 5:56 PM

                      @yawns Hi! my prebuilt version was slightly different, so i changed that in the target= field, does the abi= number need to be 53, not 50? I’ve tried it as 50 and it’s still throwing the error.

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