Siren Timeout
Closed this issue · 2 comments
G'day,
I am currently building a raspberry pi alarm system and have chosen alertr for my base, it will have RFID for user access control, etc
My first question was, as I am duplicating an alarm system id like an external siren to sound for 2 minutes, and then a strobe to stay on until the system is next deactivated.
Is there any way to set a timeout that switches the gpio pin off after a set amount of time
Regards,
Phillip Savage
Hi,
at the moment there is no such timeout option. However, it should be easily addable. I will take a look at the weekend for this option and how to place it best.
If you want to take a look before that, you can look at the code in the alert.py
of the alertClientRaspberryPi. The class RaspberryPiGPIOAlert
handles everything.
I just pushed the code. Now the Raspberry Pi alert client has the gpioResetStateTime
option which configures the time in seconds after which the GPIO pin is set back to the normal state.
Cheers,
sqall