[arm-allstar] Power fail script
Luc Drolet VE2LUQ
ldrolet at cgocable.ca
Sun Oct 21 08:50:10 EDT 2018
Hello DOUG,
WOW, very nice job for this script
WOW, THANK YOU, I'm very happy with this script and I know there will be other people too who will use it
I'm going to test this week before going to my sites to put this into operation, "bench test"
Thank you
73’s
Luc
VE2LUQ
> Le 20 oct. 2018 à 22:55, Doug Crompton via ARM-allstar <arm-allstar at hamvoip.org> a écrit :
>
> Attached is a power fail check script using the Pi GPIO. By default it assumes bit 24, pin 35 of the Pi. This bit is pulled low to indicate a power failure. This could be achieved by a SPDT relay or a clean 3V (no more!) source powered from the mains. Of course to use this the Pi must be powered from a source independent of the mains.
>
> The script has a timer set to 30 seconds before it assumes a power fail. It sends a "power fail set" message at start and after a power failure is over. When a power failure is happening it says "power failure" on the air locally every 5 minutes.
>
> Times and GPIO bits are changeable in the script.
>
> The script, after checking, is run in the background and uses an interrupt requiring scant resources.
>
> Copy this script to your server and make it executable - chmod 750 power_fail_check.sh
>
> 73 Doug
> WA3DSP
> http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>
>
>
> <power_fail_check.sh>_______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list