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 218.2k 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.
    • 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 Admin @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 Admin @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 Admin @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
                        • 1
                        • 2
                        • 9
                        • 10
                        • 11
                        • 12
                        • 13
                        • 12 / 13
                        • 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