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.

    Need "correct" version of node-libgpiod ....

    Scheduled Pinned Locked Moved Solved Troubleshooting
    22 Posts 3 Posters 2.5k 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.
    • R Offline
      rkorell @sdetweil
      last edited by

      @sdetweil Dear Sam,
      just FYI: I’ve just identified that my main problem is NOT the version mismatch but a major change in node-libgpiod’s handling of GPIO-ressources.
      This was the main reason for mal-function of PIR sensor detection. “Version” was a side effect, not root-cause.
      I’m nearly done with this and it seems that it will work as intended…

      Thanks again for your support!

      Regards,
      Ralf

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @rkorell
        last edited by

        @rkorell awesome. yes gpio changes are a pain!!

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 2 Replies Last reply Reply Quote 0
        • R Offline
          rkorell @sdetweil
          last edited by

          @sdetweil yes, indeed …

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            schlomm @rkorell
            last edited by

            @rkorell Do have any any resources for your current development? I’m also stucking at a similar problem handling GPIO for buttons using a Raspberry Pi 5.
            Do you have a Github Repository?

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              rkorell @schlomm
              last edited by rkorell

              @schlomm I’m absolute beginner …
              Had HEAVILY used AI to get this done and have recycled a LOT.

              GPIO part is from old (discontinued) module MMM-Pir from Bugsounet.
              This is reflected in pirLib.js - sliightly modified for my purposes.

              I do have a repository - pushed literally minutes ago …
              Feel free to have a look.

              Buttons should work with some modification. Essentiall for my purposes I simply query state of a single GPIO pin - to which a PIR sensor is connected. Code must be enhanced to handle more than one pin - if you are talking about “butons” - which signals plural…

              As mentioned such modification should be doable with AI as well.

              [ EDIT : My system is a raspi5 / bookworm as well - this is main reason for some difficulties. Some procedures simply doesn’t work anymore with new libraries and I had to change implementation…]

              Good luck!
              Warm regards,
              Ralf

              1 Reply Last reply Reply Quote 0
              • R Offline
                rkorell @sdetweil
                last edited by

                @sdetweil Dear Sam,
                I was able to get this done - to my big surprise …
                As announced, I just have pushed it to git and will post a corresponding message tomorrow.
                Do I get it right that it is recommended to edit the modules page as well?
                And the 3rd Party Modules page then will populate by itself, right?
                Thanks!

                Warmest regards,
                Ralf

                S 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @rkorell
                  last edited by

                  @rkorell yes, you edit the wiki page, and then the 3rd party list will pick up those changes on the next refresh (once a day)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  R 1 Reply Last reply Reply Quote 1
                  • R rkorell has marked this topic as solved on
                  • R Offline
                    rkorell @sdetweil
                    last edited by

                    @sdetweil thx!

                    S 1 Reply Last reply Reply Quote 1
                    • S Offline
                      schlomm @rkorell
                      last edited by

                      @rkorell Thanks for publishing your great module. I already use it and hell yeah - it’s great :)
                      I was also able to make the needed modification to my “Buttons”-module using the node-libgpiod package. Main reason why it was not working was the missing postinstall script.

                      Thanks and “schöne Grüße” :)

                      R 1 Reply Last reply Reply Quote 1
                      • R Offline
                        rkorell @schlomm
                        last edited by

                        @schlomm
                        This is really cool.
                        Awesome that it works as designed…
                        (Was a little bit afraid that especially postinstall will fail and module doesn‘t work as expected…)
                        So thanks for (first !) confirmation for working module!

                        Warmest regards,
                        Ralf

                        • Schöne Grüße zurück - danke für‘s Kompliment und Danke für‘s „externe“ Testen! :-)
                        1 Reply Last reply Reply Quote 0

                        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
                        • 2
                        • 2 / 2
                        • 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