Just reread this. I also use the try/except to turn off any device I need if it's been set.take the temperature reading, turn on or turn off a 5v relay
Code:
# Exit Routine - Get here if an error if 'relay' in locals(): relay.off() # Don't leave lights on print(log_time("Except/Debug")+"Lights turned off") return
Statistics: Posted by DS256 — Wed Jul 17, 2024 2:36 pm