Read the statement by Michael Teeuw here.
Need "correct" version of node-libgpiod ....
-
@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 -
@rkorell awesome. yes gpio changes are a pain!!
-
@sdetweil yes, indeed …
-
@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? -
@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 -
@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 -
@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)
-
R rkorell has marked this topic as solved on
-
@sdetweil thx!
-
@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” :)
-
@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! :-)
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