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-Pir - maybe a small bug

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 230 Views 3 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.
    • C Offline
      chrismills59
      last edited by

      Not sure if I’ve found a small bug or just me not using correctly but when I restart (Ctrl+Q) or reload (Ctrl+R) my running MagicMirror instance, it reports a GPIO busy Error and seems to have 2 countdown timers running which switch back and forth on the screen.

      Activity at the PIR resets one of the timers.

      This is the same if I use “pm2 stop MagicMirror”
      followed by “pm2 start MagicMirror”

      I suspect that the GPIO pin is not being released before restarting???

      If I shutdown, power cycle and restart then everything is fine.

      I’m running a Pi5 with Bookworm

      Thanks for any advice

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

        @chrismills59 you should post that to the module github issue. we dont track bugs here

        also, which MMM-PIR are you using?

        in the module folder do

        git remote -v
        

        to dump out the url of its origin

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • Q Offline
          qats
          last edited by

          I’m having the same issue, and unable to post an issue directly to the repo.

          qats@MirrorPi:~/MagicMirror/modules/MMM-Pir $ git remote -v
          origin	https://github.com/bugsounet/MMM-Pir (fetch)
          origin	https://github.com/bugsounet/MMM-Pir (push)
          

          After a reboot, the module works fine and reacts as expected. If I close that instance of MM for any reason when I start it back up I get these errors:

          [2024-09-19 09:29:34.330] [LOG]   [MMM-Pir] Version: 1.5.4 rev: 240824 
          [2024-09-19 09:29:34.330] [LOG]   [MMM-Pir] [LIB] [PIR] Mode 2 Selected (gpiozero) 
          [2024-09-19 09:29:34.342] [LOG]   [MMM-Pir] [LIB] [PIR] Started! 
          [2024-09-19 09:29:34.343] [LOG]   [MMM-Pir] [LIB] [SCREEN] Mode 4: HDMI CEC 
          [2024-09-19 09:29:34.361] [LOG]   [MMM-Pir] Started! 
          [2024-09-19 09:29:34.700] [ERROR] [MMM-Pir] [LIB] [PIR]  Error: 'GPIO busy' 
          [2024-09-19 09:29:34.739] [INFO]  Newsfeed-Fetcher: Broadcasting 10 items. 
          [2024-09-19 09:29:34.877] [WARN]  [MMM-Pir] [LIB] [PIR] [PYTHON] The exit code was: 0 
          [2024-09-19 09:29:34.878] [WARN]  [MMM-Pir] [LIB] [PIR] [PYTHON] The exit signal was: null 
          

          The module will successfully turn off the display when the timer is reached, but there’s no way to turn it back on as it’s not able to manage the GPIO pin to detect a signal.

          I’m running a Pi 5 with Debian 12

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

            @qats @bugsounet can you help here

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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