• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 5.6k 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.
  • T Offline
    tanvir586
    last edited by Oct 6, 2022, 6:10 PM

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

    S 1 Reply Last reply Oct 6, 2022, 6:52 PM Reply Quote 0
    • S Away
      sdetweil @tanvir586
      last edited by Oct 6, 2022, 6:52 PM

      @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 Oct 6, 2022, 7:09 PM Reply Quote 0
      • T Offline
        tanvir586 @sdetweil
        last edited by Oct 6, 2022, 7:09 PM

        @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 Oct 6, 2022, 7:14 PM Reply Quote 0
        • S Away
          sdetweil @tanvir586
          last edited by Oct 6, 2022, 7:14 PM

          @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 Oct 6, 2022, 7:30 PM Reply Quote 1
          • T Offline
            tanvir586 @sdetweil
            last edited by Oct 6, 2022, 7:30 PM

            @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 Oct 6, 2022, 7:31 PM Reply Quote 0
            • S Away
              sdetweil @tanvir586
              last edited by sdetweil Oct 6, 2022, 7:32 PM Oct 6, 2022, 7:31 PM

              @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 Oct 6, 2022, 9:03 PM Reply Quote 0
              • T Offline
                tanvir586 @sdetweil
                last edited by Oct 6, 2022, 9:03 PM

                @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 Oct 6, 2022, 9:18 PM Reply Quote 0
                • S Away
                  sdetweil @tanvir586
                  last edited by Oct 6, 2022, 9:18 PM

                  @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 Oct 6, 2022, 9:46 PM Reply Quote 0
                  • P Offline
                    pugsly
                    last edited by pugsly Oct 6, 2022, 9:32 PM Oct 6, 2022, 9:31 PM

                    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 Oct 6, 2022, 9:41 PM Reply Quote 0
                    • S Away
                      sdetweil @pugsly
                      last edited by Oct 6, 2022, 9:41 PM

                      @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
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        2/27
                        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