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 693 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 @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 Offline
          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
          • 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
                • 1
                • 2
                • 3
                • 3 / 3
                • 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