• 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.

MMM-NewPIR only works if i plug/unplug the cable, but not without

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 504 Views 2 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.
  • F Offline
    feigi
    last edited by May 2, 2020, 3:46 PM

    Hello everyone,

    My MagicMirror is working properly and now i am looking into the last detail, introducing a PIR Sensor for Motion Detection and safe energy on the Monitor if not needed.

    Now i configured the Module like this:

    {
    module: ‘MMM-NewPIR’,
    position: ‘top_left’,
    config: {
    useSensor: true,
    sensorPin: 23,
    reverseValue: false,
    delay: 20* 60 * 1000,
    turnOffDisplay: true,
    ecoMode: false,
    governor: “”,
    text: “Auto Turn Off Screen:”,
    counter: true,
    rpi4: false,
    debug: false
    }
    },

    The Time is running, after the entered time, the screen is getting turned off. That works properly. But the timer is actually only being reseted, when i unplug the cable on either the sensor or the raspberry pi.

    I only have one Sensor, i cannot exchange the Sensor.

    If i would enable debug to true, where would i find the output?

    Thank you very much for your support!

    Cheers,
    roman

    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User
      last edited by May 2, 2020, 4:58 PM

      hi, what is your rpi type ?

      1 Reply Last reply Reply Quote 0
      • F Offline
        feigi
        last edited by feigi May 2, 2020, 6:28 PM May 2, 2020, 6:27 PM

        Hi there,

        Thanks for your quick answer.

        I do have a Raspberry Pi 3 Model B+

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by May 2, 2020, 8:45 PM

          ok, if you enable debug mode

          you have 2 solutions:

          1. manual start by npm start command in the ~MagicMirror directory
          2. if you use pm2 program. you can see log with pm2 log command

          note: if you MM is launched by pm2 don’t forget to stop it (pm2 stop 0) , if you launch MM in with npm start

          1 Reply Last reply Reply Quote 0
          • F Offline
            feigi
            last edited by May 4, 2020, 7:06 PM

            Hi there,

            The Sensor now works like a charm. But actually i am not sure what i changed, but since i enabled (and now again disabled) the Debug, it recognices every movement like intended.

            The Debug actually helped to see when it detects a movement, so that was indeed helpful.

            Thank you very much for the quick support!

            Best Regards,
            Roman

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              5/5
              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