• 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
    Jay
    last edited by Feb 13, 2017, 4:17 PM

    Hey, thanks for advising us how to install the modules, but I´m still struggling to find a solution for me even after updating nodejs and npm to the latest builts…
    Similar error with corrected package.json.

    Unable to find electron-prebuilt's version number, either install it or specify an explicit version
    

    I even tried the npm rebuild @Mar suggested. My last attempt to get this working was updating electron to its newest version but this didn´t help either.
    Is there anything I could further try to install this module correctly?

    M 1 Reply Last reply Feb 15, 2017, 7:55 PM Reply Quote 0
    • M Offline
      Mar @Jay
      last edited by Feb 15, 2017, 7:55 PM

      @Jay I forgot what I did here to fix this issue. But to be honest after I got this working it still wasnt perfect. I ended going the route of a script on startup that controls the PIR sensor and its been perfect since and simple.

      1 Reply Last reply Reply Quote 0
      • F Offline
        fox
        last edited by Feb 15, 2017, 7:56 PM

        did you install the fix? or is this now obsolet?

        Issues With MMM-WatchDog known?

        https://forum.magicmirror.builders/post/29827

        Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

        J 1 Reply Last reply Feb 16, 2017, 9:17 AM Reply Quote 0
        • J Offline
          Jopyth Moderator @fox
          last edited by Jopyth Feb 16, 2017, 9:17 AM Feb 16, 2017, 9:17 AM

          @fox This PR should have fixed the issue (it is merged into the master).

          Are you running MagicMirror 2.1.0? And is your PIR-Module up-to-date? Try updating both (see this and do it in both directories) to the newest version.

          Helpful sticky: How to troubleshoot

          F 1 Reply Last reply Mar 3, 2017, 10:59 AM Reply Quote 1
          • F Offline
            fox @Jopyth
            last edited by Mar 3, 2017, 10:59 AM

            @Jopyth said in [MMM-PIR-Sensor] Install failing:

            @fox This PR should have fixed the issue (it is merged into the master).

            Are you running MagicMirror 2.1.0? And is your PIR-Module up-to-date? Try updating both (see this and do it in both directories) to the newest version.

            I deleted PIR Sensor completely. And made a new installation of this module and it installed without Problems. looks good from now

            Issues With MMM-WatchDog known?

            https://forum.magicmirror.builders/post/29827

            Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

            1 Reply Last reply Reply Quote 1
            • J Offline
              johnnyboy
              last edited by johnnyboy May 11, 2017, 6:49 PM Mar 18, 2017, 5:48 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S Offline
                STEFF92
                last edited by Mar 21, 2017, 4:33 PM

                Hi, i tried to install the module MMM-PIR-Sensor. I did it like its explained here:

                https://github.com/paviro/MMM-PIR-Sensor

                After installing the module i opened the config.js file an added:

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

                The way i connected the sensor is shown in the following picture:

                alt text

                But when i want to start the magic mirror it says that i have to add a correct config.js file.
                What did i wrong? Please help me guys ;)

                J J 2 Replies Last reply Mar 21, 2017, 4:38 PM Reply Quote 0
                • J Offline
                  Jay @STEFF92
                  last edited by Mar 21, 2017, 4:38 PM

                  @STEFF92
                  Did you change the name of the config File from “config.js.sample” to “config.js”?

                  S 1 Reply Last reply Mar 21, 2017, 6:43 PM Reply Quote 0
                  • S Offline
                    STEFF92 @Jay
                    last edited by Mar 21, 2017, 6:43 PM

                    @Jay yes i did. The basic modules like clock or weather are running but when i add the module for the PIR sensor in the config.js file i cant start the magic mirror

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pjkoeleman
                      last edited by Mar 21, 2017, 8:23 PM

                      Delete the ‘,’ in te last line (relayOnState: 1)

                      S 1 Reply Last reply Mar 22, 2017, 6:05 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 5 / 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