allsky_dewheater.py for the RPi5 with gpiod instead of GPIO #36
Closed
Adler6907
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for that, Have a look at the dev branch as this has all of the fixes in it for Bookworm and the pi 5, we are aiming to release this in the next week |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I modified
allsky_dewheater.py
slightly so that the heating relay can be switched via a GPIO again.I replaced import
RPi.GPIO as GPIO
with importgpiod
.gpiod
is already preinstalled with bookworm.Changes were made in
allsky_dewheater.py
in the functionsturnHeaterOff
,turnHeaterOn
anddewheater
. Thesetmode
function was no longer necessary.In
allsky_shared.py
the functiongetGPIOPin
is no longer necessary forallsky_dewheater.py
.In the attachment
allsky_dewheater.py
which only needs to be replaced in/opt/allsky/modules [allsky_dewheater.py.txt](https://github.com/AllskyTeam/allsky-modules/files/13694157/allsky_dewheater.py.txt)
Beta Was this translation helpful? Give feedback.
All reactions