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 700 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.
    • S Offline
      sdetweil @rkorell
      last edited by sdetweil

      @rkorell

      so, if, in the module folder you do

      npm rebuild
      

      it will fix the version to the standalone node engine

      if you do

      electron-rebuild
      

      it should fix the version to the electron embedded node engine

      if the engine is the same, only one of those is required

      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 OK; thanks.
        I will stop to handle these mismatches.
        Will try to get the MM-Module runnable .
        Console/terminal runs with node may not be necessary …
        Thanks anyway for your kind support!
        Ralf

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