• 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 87.9k 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.
  • 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
      • O Offline
        Oliver_Tooth @yawns
        last edited by May 10, 2017, 7:03 PM

        @yawns I’ve been reading up further on this, and i’ve found that version 53 doesn’t actually exist yet, and 51 is currently the latest. Have you any idea how i’d get this to work with this information? thanks.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thoimi
          last edited by May 11, 2017, 2:20 PM

          hi there,

          finally i had the time to work / finish my magic mirror.
          Just the PIR-Sensor-Plugin doesn’t work… After I updated the MM to 2.1.1 I did a fresh install of the script which worked without an error. Yay!

          BUT the script is not turning off my monitor… I connected the sensor to GPIO04 / BCM07 and tried to change the SensorPin-Number (from 4 to 7)

          I put the sensor in a black box so the display should shut down after starting Magic Mirror, right?

          1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238
            last edited by Richard238 May 18, 2017, 4:58 PM May 18, 2017, 4:36 PM

            Hmmmm, black screen, and nothing on a browser at http://192.168.n.nn:8080/ either.

            		module: 'MMM-PIR-Sensor',
            		config: {
            		sensorPIN: 22,
                            powerSaving: true,
                            relayPIN: false,
                            powerSavingDelay: 0,
                            relayOnState: 1
            			// See 'Configuration options' for more information.
            		}
            	},
            
            1 Reply Last reply Reply Quote 0
            • P Offline
              pepemujica
              last edited by Jun 7, 2017, 12:39 PM

              Do I need anything else than the raspi, cable and pir sensor?
              An arduino for example?

              Kind regards

              Y 1 Reply Last reply Jun 8, 2017, 9:35 AM Reply Quote 0
              • Y Offline
                yawns Moderator @pepemujica
                last edited by Jun 8, 2017, 9:35 AM

                @pepemujica
                No. You can connect the PIR sensor to the GPIO pins of your raspberry (make sure your wiring is proper) and work with the PIR sensor after installing the specific libraries

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