node red gpio

How to control GPIOs from node-red running on torizon in a docker-container? Following the tutorial (https://developer.toradex.com/knowledge-base/libgpiod#tab-torizon-500) works well, but from within node-red I didn’t succeed. Can somebody help me?

Greetings @rubmay07,

I don’t really have any expertise with node-red so I can’t provide too many details. There’s a getting started guide for node-red and docker here: https://nodered.org/docs/getting-started/docker

In there, there’s a section on GPIO usage but it’s a bit specific to the Raspberry PI, but it may still be a useful reference. The only other advice I can offer is make sure you’re passing the GPIO devices into the container properly, and whatever user is trying to access them in the container has the right permissions for access.

Best Regards,
Jeremias