Simple Shell APRS Beacon and Message Scripts
#!/bin/bash
callsign="xxxxxx-xx" # Change this to your callsign-ssid password="12345" # See http://apps.magicbug.co.uk/passcode/ position="!4151.29N/07100.40WI" # See position report below serverHost="newengland.aprs2.net" # See http://www.aprs2.net/APRServe2.txt comment="shellbeacon 1.0 by WA1GOV"
serverPort=14580 # Definable Filter Port delay=1800 # default 30 minutes address="${callsign}>APRS,TCPIP:"
Enter your callsign-ssid on https://aprs.fi/ to check your location
login="user $callsign pass
while true do
nc -C $serverHost $serverPort -q 10 <<-END
$login
$packet
END
if [ "$1" = "1" ]
then
exit
fi
sleep $delay
done