├── README.md ├── shellbeacon.sh └── shellmessage.sh /README.md: -------------------------------------------------------------------------------- 1 | # Simple-Shell-APRS 2 | Simple Shell APRS Beacon and Message Scripts 3 | 4 | #!/bin/bash 5 | ###### shellbeacon 1.0 A simple SHELL APRS Auto Beacon by WA1GOV 6 | ###### Works with Linux & Windows/Cygwin with netcat package installed 7 | ###### 8 | ## Change the following variables to select your call, password, locaton etc. 9 | 10 | callsign="xxxxxx-xx" # Change this to your callsign-ssid 11 | password="12345" # See http://apps.magicbug.co.uk/passcode/ 12 | position="!4151.29N/07100.40WI" # See position report below 13 | serverHost="newengland.aprs2.net" # See http://www.aprs2.net/APRServe2.txt 14 | comment="shellbeacon 1.0 by WA1GOV" 15 | 16 | serverPort=14580 # Definable Filter Port 17 | delay=1800 # default 30 minutes 18 | address="${callsign}>APRS,TCPIP:" 19 | 20 | # POSITION REPORT: The first character determines the position report format 21 | # !4151.29N/07100.40W- 22 | # A ! indicates that there is no APRS messaging capability 23 | # 24 | # The last character determines the icon to be used 25 | # !4151.29N/07100.40W- 26 | # A dash will display a house icon 27 | # Find your Lat/Long from your mailing address at the link below 28 | # http://stevemorse.org/jcal/latlon.php 29 | # Enter your callsign-ssid on https://aprs.fi/ to check your location 30 | 31 | login="user $callsign pass $password vers ShellBeacon 1.0" 32 | packet="${address}${position}${comment}" 33 | echo "$packet" # prints the packet being sent 34 | echo "${#comment}" # prints the length of the comment part of the packet 35 | 36 | while true 37 | do 38 | #### use here-document to feed packets into netcat 39 | nc -C $serverHost $serverPort -q 10 <<-END 40 | $login 41 | $packet 42 | END 43 | if [ "$1" = "1" ] 44 | then 45 | exit 46 | fi 47 | sleep $delay 48 | done 49 | -------------------------------------------------------------------------------- /shellbeacon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ###### shellbeacon 1.0 A simple SHELL APRS Auto Beacon by WA1GOV 3 | ###### Works with Linux & Windows/Cygwin with netcat package installed 4 | ###### 5 | ## Change the following variables to select your call, password, locaton etc. 6 | 7 | callsign="xxxxxx-xx" # Change this to your callsign-ssid 8 | password="12345" # See http://apps.magicbug.co.uk/passcode/ 9 | position="!4151.29N/07100.40WI" # See position report below 10 | serverHost="rotate.aprs2.net" # See http://www.aprs2.net/APRServe2.txt 11 | comment="shellbeacon 1.0 by WA1GOV" 12 | 13 | serverPort=14580 # Definable Filter Port 14 | delay=1800 # default 30 minutes 15 | address="${callsign}>APRS,TCPIP:" 16 | 17 | # POSITION REPORT: The first character determines the position report format 18 | # !4151.29N/07100.40W- 19 | # A ! indicates that there is no APRS messaging capability 20 | # 21 | # The last character determines the icon to be used 22 | # !4151.29N/07100.40W- 23 | # A dash will display a house icon 24 | # Find your Lat/Long from your mailing address at the link below 25 | # http://stevemorse.org/jcal/latlon.php 26 | # Enter your callsign-ssid on https://aprs.fi/ to check your location 27 | 28 | login="user $callsign pass $password vers ShellBeacon 1.0" 29 | packet="${address}${position}${comment}" 30 | echo "$packet" # prints the packet being sent 31 | echo "${#comment}" # prints the length of the comment part of the packet 32 | 33 | while true 34 | do 35 | #### use here-document to feed packets into netcat 36 | nc -C $serverHost $serverPort -q 10 <<-END 37 | $login 38 | $packet 39 | END 40 | if [ "$1" = "1" ] 41 | then 42 | exit 43 | fi 44 | sleep $delay 45 | done 46 | -------------------------------------------------------------------------------- /shellmessage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ###### shellmessage 1.0 A simple SHELL APRS Messenger by WA1GOV 3 | ###### Works with Linux & Windows/Cygwin with netcat package installed 4 | ###### 5 | if [ -z "$2" ] 6 | then 7 | echo "Usage: $0 < callsign-ssid > < message >" 8 | exit 9 | fi 10 | 11 | ## Change the following variables to select your call, password etc. 12 | 13 | callsign="xxxxxx-xx" # Change this to your callsign-ssid 14 | password="12345" # See http://apps.magicbug.co.uk/passcode/ 15 | serverHost="rotate.aprs2.net" # See http://www.aprs2.net/APRServe2.txt 16 | serverPort=14580 # Definable Filter Port 17 | address="${callsign}>APRS,TCPIP::" 18 | login="user $callsign pass $password vers shellmessage 1.0" 19 | TOCALL="$1" 20 | comment="$2" 21 | 22 | TOCALL=`printf "%-9s" $TOCALL` 23 | packet="${address}${TOCALL}:${comment}" 24 | nc -C $serverHost $serverPort -q 5 <