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.

    Universal-PIR - ‘GPIOcommand exited with error'

    Scheduled Pinned Locked Moved Solved Troubleshooting
    3 Posts 2 Posters 180 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.
    • K Offline
      Klinge
      last edited by

      After completely reinstalling my MMM, the MMM-Universal PIR module no longer works for

      I get the error message

      GPIOcommand exited with error
      

      My configuration is as follows

      {
          module: "MMM-Universal-Pir",
          position: "top_right",
          config: {
          gpioCommand: "gpiomon -r -b gpiochip0 17",
          onCommand: "wlr-randr --output HDMI-A-1 --on --transform 90",
          offCommand: "wlr-randr --output HDMI-A-1 --off",
          deactivateDelay: 180 * 1000,
          }
                                     },
      

      The cables are connected with the sixth pin and the first and third pins on the other line.

      I tried the solution in the here on the bottom but unfortunately I cannot found a compose.yaml.

      It would be great, if you can help me.

      Thank you in advance.
      Klinge

      karsten13K 1 Reply Last reply Reply Quote 0
      • karsten13K Offline
        karsten13 @Klinge
        last edited by

        @Klinge

        from the module README.md:

        Please test the used commands first outside of MagicMirror². If they not work from a terminal it makes no sense to use them inside this module.

        So what is the output if you run gpiomon -r -b gpiochip0 17 on your machine?

        And provide the version with gpiomon -v

        K 1 Reply Last reply Reply Quote 1
        • K Offline
          Klinge @karsten13
          last edited by

          @karsten13 Thank you for your advice.

          To my shame, I must admit that I did not read the readme.md file.

          Yes, after reinstalling I am using Trixie and I have to use the gpiomon V2

          So with

          gpiomon -e rising -c 0 17"
          

          it works

          Thank you again

          1 Reply Last reply Reply Quote 0
          • K Klinge has marked this topic as solved on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 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