i have Rpi conected to alarm. There is HIGH at alarm output when motion sensors are activated. So signal from alarm is changing often.
I need to run script always, when at GPIO input is 30 minutes LOW continuously. (If in building is nobody)
I am new in Python. My idea is to save current time to file and then compare it. But i think it is not the best solution. any ideas please?