MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED Pir sensor

    Troubleshooting
    8
    27
    1442
    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.
    • T
      tanvir586 last edited by

      Is there any working pir sensor exists? Pir sensor light is not working for me

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @tanvir586 last edited by

        @tanvir586 what is not working?

        lite is the one that was updated most recently

        Sam

        Create a working config
        How to add modules

        T 1 Reply Last reply Reply Quote 0
        • T
          tanvir586 @sdetweil last edited by

          @sdetweil I put the countdown for 1 min. but when the countdown start it goes to 54 then it go back to 1 min again.

          my config is
          {
          module: “MMM-PIR-Sensor-Lite”,
          position: “top_right”,
          config: {
          sensorPin: 2, // GPIO pin
          }
          }

          and the .js is
          defaults: {
          sensorPin: 0, // GPIO pin
          commandType: ‘xrandr’, // Type of command used
          title: “Automatic Standby”,
          rotation: ‘normal’,
          deactivateDelay: 1 * 60 * 1000, // 15 minutes
          updateInterval: 1000, // 1 second
          animationSpeed: 1000, // 1 second
          showCountDown: true,
          showDetection: true,
          hoursLabel: ‘h’,
          minutesLabel: ‘m’,
          secondsLabel: ‘s’,
          },

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @tanvir586 last edited by

            @tanvir586 said in Pir sensor:

            and the .js is

            never edit the module js file

            all config goes in config.js

            I don’t know the module

            does the PIR work outside MM?

            Sam

            Create a working config
            How to add modules

            T 1 Reply Last reply Reply Quote 1
            • T
              tanvir586 @sdetweil last edited by

              @sdetweil it work like https://github.com/paviro/MMM-PIR-Sensor
              mmm-pir-sensor is not working anymore that’s why I wanted to use the light one. but this one is not working looks like

              S M 2 Replies Last reply Reply Quote 0
              • S
                sdetweil @tanvir586 last edited by sdetweil

                @tanvir586 no, my question was , if u test the PIR connection/setup outside of MM does it work

                using a python script?

                I undertstand how it is SUPPOSED to work , and have tested modules on one of my systems before, but don’t
                use PIR daily

                Sam

                Create a working config
                How to add modules

                T 1 Reply Last reply Reply Quote 0
                • T
                  tanvir586 @sdetweil last edited by

                  @sdetweil Hi mate. Sorry I don’t know how to do that. I’m not a programming person. I’m copy past person actually 🤣

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sdetweil @tanvir586 last edited by

                    @tanvir586 https://projects.raspberrypi.org/en/projects/parent-detector/3

                    Sam

                    Create a working config
                    How to add modules

                    T 1 Reply Last reply Reply Quote 0
                    • pugsly
                      pugsly last edited by pugsly

                      This is what I use to put my monitor to sleep using a PIR sensor. I have a 3D printed case for the sensor that hangs under the mirror itself. The sensor does not have anything to do with the magic mirror software at all, in fact it just puts the monitor to sleep when no one is in the area.

                      https://github.com/cowboysdude/Pir-Sensor

                      S T 2 Replies Last reply Reply Quote 0
                      • S
                        sdetweil @pugsly last edited by

                        @pugsly right, just trying to help w the debug. lots of things can go wrong, so, it’s best to start at the beginning before getting MM involved.

                        Sam

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy