Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need help with setting up gpio in octoprint docker #270

Open
EnteSuesssauer15 opened this issue Sep 21, 2023 · 1 comment
Open

need help with setting up gpio in octoprint docker #270

EnteSuesssauer15 opened this issue Sep 21, 2023 · 1 comment

Comments

@EnteSuesssauer15
Copy link

My octoprint install is running inside a docker container and recently I've built a relay into my psu to switch it on and off but when typing kn the correct gpio pin it doesn't do anything, homebridge inside a docker container works without any problems and can switch the relay

@garismaatti
Copy link

Not sure if helps in your case, but managed to get my setup working by:

  1. Installing also https://github.com/kantlivelong/OctoPrint-PSUControl-RPiGPIO plugin
  2. Giving docker container access to GPIO pins by mounting '/dev/gpiomem' device similar to example $ docker run --device /dev/gpiomem -d whatever (from https://stackoverflow.com/a/48234752)
  3. Setting PSU control to use RPi-GPIO plugin
  4. Setting RPi-GPIO plugin to control correct pin on raspberry pi3

And I highly recommend to follow your octoprint container logs while debuging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants