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.

    PIR-Sensor - put your mirror to sleep if not used

    Scheduled Pinned Locked Moved Troubleshooting
    126 Posts 37 Posters 235.5k Views 20 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.
    • KirAsh4K Offline
      KirAsh4 Moderator
      last edited by

      Errr, in your package.json you have a reference to Wunderlist module in the description.

      A Life? Cool! Where can I download one of those from?

      paviroP 1 Reply Last reply Reply Quote 1
      • paviroP Offline
        paviro @KirAsh4
        last edited by

        @KirAsh4 Fixed thanks :)

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        1 Reply Last reply Reply Quote 0
        • pugslyP Offline
          pugsly
          last edited by

          I don’t have the sensor yet, but installed the module and put the entry into my config.js and when I start mm I get a white screen. Is that normal because I do not have the sensor hooked up yet?

          paviroP 1 Reply Last reply Reply Quote 0
          • EoFE Offline
            EoF
            last edited by

            This is awesome! I will definitely be using this when I get my mirror built.

            1 Reply Last reply Reply Quote 0
            • paviroP Offline
              paviro @pugsly
              last edited by

              @pugsly I am busy this weekend but I will check next week, for the time being check your web inspector for any errors and make sure there is no mistake in your formatting of the config.js file!

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              1 Reply Last reply Reply Quote 0
              • P Offline
                PtrBld Module Developer
                last edited by

                @pugsly: Are you using Node v6? I had the same issue this weekend.

                1 Reply Last reply Reply Quote 0
                • I Offline
                  incubik
                  last edited by paviro

                  Hi! Im having the same issue as @pugsly. I do already have the PIR sensor connected but once I launch the MagicMirror the screen goes white.

                  This is what I have in the config.js:

                  {
                  module: "MMM-PIR-Sensor',
                  config: {
                  sensorPIN: '2'
                  }
                  }
                  

                  Any thoughts? Thx!

                  1 Reply Last reply Reply Quote 0
                  • I Offline
                    incubik
                    last edited by paviro

                    There was a type on my message… sorry. This is what I have done:

                    {
                    module: 'MMM-PIR-Sensor’,
                    config: {
                    sensorPIN: ‘2’
                    }
                    }
                    

                    Note from admin: Please use Markdown on code snippets so it is easier to read!

                    paviroP 1 Reply Last reply Reply Quote 0
                    • paviroP Offline
                      paviro @incubik
                      last edited by

                      @incubik have you checked your Web inspector?

                      We're all stories in the end. Just make it a good one, eh?

                      – The Doctor

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        incubik
                        last edited by

                        I have Raspbian install so Im using Epiphany. Does this browser has a web inspector? if so, where? Thx

                        paviroP 1 Reply Last reply Reply Quote 0
                        • pugslyP Offline
                          pugsly
                          last edited by

                          I got my sensor and hooked it up, same problem.

                          Yes, I am using node version 6.0. When I did the install that’s the version that was installed, I think the install script now installs an older version?

                          1 Reply Last reply Reply Quote 0
                          • BangeeB Offline
                            Bangee Module Developer
                            last edited by Bangee

                            I’ve tried to use PIN 26. In my electron errorlog, there was this msg:

                            [Error: digitalRead: IsInt32(arguments['pin']) === false]
                            

                            So I went back to PIN 22 and now my mirror starts again. :-)

                            EDIT:

                            New idea -> Try without ’ ';

                            {
                            module: 'MMM-PIR-Sensor’,
                            config: {
                            sensorPIN: 2 ,
                            }
                            }
                            
                            1 Reply Last reply Reply Quote 2
                            • paviroP Offline
                              paviro @incubik
                              last edited by paviro

                              @incubik I don’t use that browser, Google it :)
                              @pugsly Node v6 is not supported at the moment.
                              @Bangee yes, the pin has to be an int :) @incubik you also made that mistake!

                              We're all stories in the end. Just make it a good one, eh?

                              – The Doctor

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                incubik
                                last edited by

                                Ok, I will!

                                Maybe it is a hardware problem? I’ve connected the PIR-sensor this way, is this correct?
                                https://www.raspberrypi.org/learning/physical-computing-guide/connect-pir/

                                paviroP 1 Reply Last reply Reply Quote 0
                                • paviroP Offline
                                  paviro @incubik
                                  last edited by

                                  @incubik Looks fine, the hardware does not influence the module behavior tough, you could also run it without something connected.

                                  We're all stories in the end. Just make it a good one, eh?

                                  – The Doctor

                                  1 Reply Last reply Reply Quote 0
                                  • I Offline
                                    incubik
                                    last edited by

                                    Ok, so if it doesn’t support v6, how can @Bangee made it work? I guess I should:

                                    1. Uninstall NodeJS v6 and install v5
                                      or
                                    2. Delete the Sensor Module for now

                                    ??

                                    1 Reply Last reply Reply Quote 0
                                    • paviroP Offline
                                      paviro
                                      last edited by

                                      When I checked it did not work, maybe the dependencies were updated since then. If not install v5 :)

                                      We're all stories in the end. Just make it a good one, eh?

                                      – The Doctor

                                      1 Reply Last reply Reply Quote 0
                                      • BangeeB Offline
                                        Bangee Module Developer
                                        last edited by

                                        This PDF shows how to adjust your PIR Sensor.

                                        https://cdn.openimpulse.com/blog/wp-content/uploads/wpsc/downloadables/DYP-ME003_PIR_Sensor_Module_Datasheet.pdf

                                        Today, i don’t know why but after a few minutes the monitor turns off, but then it reactivates again without any motion in front of the mirror. Any sugestions?

                                        paviroP 1 Reply Last reply Reply Quote 0
                                        • paviroP Offline
                                          paviro @Bangee
                                          last edited by

                                          @Bangee you can always try to add some logging to the code console.log("something") to see where it is triggered and if the script is the cause or something else :)

                                          We're all stories in the end. Just make it a good one, eh?

                                          – The Doctor

                                          1 Reply Last reply Reply Quote 0
                                          • BangeeB Offline
                                            Bangee Module Developer
                                            last edited by

                                            This is all 10 seconds. But there is noone in front of the mirror… :-(

                                            meteoblueForecast received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor
                                            logger.js (Zeile 20)
                                            newsfeed received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor
                                            logger.js (Zeile 20)
                                            clock received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor
                                            logger.js (Zeile 20)
                                            calendar received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor
                                            logger.js (Zeile 20)
                                            swisstransport received a module notification: USER_PRESENCE from sender: MMM-PIR-Sensor
                                            logger.js (Zeile 20)
                                            ....
                                            
                                            paviroP 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
                                            • 5
                                            • 6
                                            • 7
                                            • 1 / 7
                                            • 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