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

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    27 Posts 8 Posters 6.8k Views 10 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.
    • S Offline
      sdetweil @tanvir586
      last edited by

      @tanvir586 what is not working?

      lite is the one that was updated most recently

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        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 Offline
          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

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Reply Quote 1
          • T Offline
            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 Offline
              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

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                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 Offline
                  sdetweil @tanvir586
                  last edited by

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

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  T 1 Reply Last reply Reply Quote 0
                  • pugslyP Offline
                    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 Offline
                      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

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @pugsly I’ll give it a try tomorrow. Thanks

                        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 Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy