[arm-allstar] Intruder check script

Doug Crompton wa3dsp at gmail.com
Wed Aug 15 01:44:35 EDT 2018


Attached is a example script that will get you started with an intruder
check of your repeater or whatever you want to check.

Let me know if this works for you. You need to configure a few things but
as it sits it uses Pi GPIO bit 25 (pin 37)

Do   gpio readall   at the Linux prompt to see all the bits and states, pin
numbers, etc.  Use the wPi column as the bit number. Leave it at 25 if you
are not using it for something else. DO NOT apply power to the pins. Pins
are 3.3V levels.  It would not be a bad idea to add a small value resistor
(1K or so) in series and a .1 cap to ground on the switch end for added
protection.

When the script starts it alerts that the system is activated by voice. If
the defined pin is pulled low for 4 seconds it gives an alert. It then
checks for the alert clearing and again says the system is activated. It
will continue to do this until the script is stopped. The script would
normally be run in the background at boot. It could be put at the end of
/etc/rc.local and would be entered like this assuming you put it  in
/usr/local/sbin It also logs to /tmp/security-log.txt like this:

Wed Aug 15 01:12:52 EDT 2018 - Repeater Security Activated
Wed Aug 15 01:13:04 EDT 2018 - Repeater Security Alert

/usr/local/sbin/intruder_check.sh &

You need to make this script executable on your server -

chmod 750 intruder_check.sh

Eventually I will add support for the USB FOB.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20180815/d5cd8da6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intruder_check.sh
Type: application/x-shellscript
Size: 2534 bytes
Desc: not available
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20180815/d5cd8da6/attachment-0001.bin>


More information about the arm-allstar mailing list