I have a big fan in my shop that I can control via a quick and dirty Flask API i wrote that runs on the pi that controls my fan.
I have a web app on my main server (also Flask) that I use to control it.
Is it possible to, create a delay before changing the GPIO.output from HIGH to LOW?
Use-case: I want to set an auto-power off after a specified amount of time (that can be changed but for example, 3 hours). So I can set it and forget it? It doubles as an air cleaner (its a woodshop, so the air gets dusty).
I know with Python there are about 1001 ways to do anything but curious about your thoughts here.