[arm-allstar] Intruder check script

Angelo Glorioso n5uxt at hotmail.com
Fri Aug 17 11:57:46 EDT 2018


Hello Doug,

 I want to thank you so much for the fast work you did. I am sorry this email is late.


73 de Angelo


On 8/15/2018 12:44 AM, "Doug Crompton via arm-allstar" wrote:
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




_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org<mailto: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