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 105.7k 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.
    • johnnyboyJ Offline
      johnnyboy
      last edited by johnnyboy

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • S Offline
        STEFF92
        last edited by

        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 ;)

        JayJ johnnyboyJ 2 Replies Last reply Reply Quote 0
        • JayJ Offline
          Jay @STEFF92
          last edited by

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

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            STEFF92 @Jay
            last edited by

            @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
            • pjkoelemanP Offline
              pjkoeleman
              last edited by

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

              S 1 Reply Last reply Reply Quote 0
              • johnnyboyJ Offline
                johnnyboy @Jopyth
                last edited by johnnyboy

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • johnnyboyJ Offline
                  johnnyboy @STEFF92
                  last edited by johnnyboy

                  This post is deleted!
                  johnnyboyJ 1 Reply Last reply Reply Quote 0
                  • johnnyboyJ Offline
                    johnnyboy @johnnyboy
                    last edited by johnnyboy

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      STEFF92 @pjkoeleman
                      last edited by

                      @pjkoeleman Doesnt work :(

                      johnnyboyJ pjkoelemanP 2 Replies Last reply Reply Quote 0
                      • johnnyboyJ Offline
                        johnnyboy @STEFF92
                        last edited by johnnyboy

                        This post is deleted!
                        S 1 Reply Last reply Reply Quote 0
                        • pjkoelemanP Offline
                          pjkoeleman @STEFF92
                          last edited by

                          @STEFF92
                          What is not working;

                          • Do you still have the problem with the config.sys, when post your config.sys here.
                          • Is the PIR not switching off you screen?
                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            STEFF92 @johnnyboy
                            last edited by

                            @johnnyboy But it doesnt matter as long as i use the gpio that belongs to this pin or am i wrong?

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              STEFF92 @pjkoeleman
                              last edited by

                              @pjkoeleman when i want to start the magic mirror it says that i should create a correct config.js file. But the only thing i added in my config.js file (which runs without the following lines) is:

                                             {
                              			module: 'MMM-PIR-Sensor',
                              			config: {
                              				sensorPIN: 23,
                                                              powerSaving: true,
                                                              relayPIN: none,
                                                              relayOnState: 1,
                              			}
                              		},
                              
                              johnnyboyJ 1 Reply Last reply Reply Quote 0
                              • johnnyboyJ Offline
                                johnnyboy @STEFF92
                                last edited by johnnyboy

                                This post is deleted!
                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  STEFF92 @johnnyboy
                                  last edited by

                                  @johnnyboy yes i tried it like this :

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

                                  But it dosent work. Same problem as before.

                                  johnnyboyJ strawberry 3.141S 2 Replies Last reply Reply Quote 0
                                  • johnnyboyJ Offline
                                    johnnyboy @STEFF92
                                    last edited by johnnyboy

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @STEFF92
                                      last edited by

                                      @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 Reply Quote 1
                                      • S Offline
                                        STEFF92 @strawberry 3.141
                                        last edited by

                                        @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?

                                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                        • strawberry 3.141S Offline
                                          strawberry 3.141 Project Sponsor Module Developer @STEFF92
                                          last edited by

                                          @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

                                            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!

                                            yawnsY 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • 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