Skip to content

Instantly share code, notes, and snippets.

@pallas
Last active October 29, 2020 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pallas/5c67878b146bcca4fdfe17c502217548 to your computer and use it in GitHub Desktop.
Save pallas/5c67878b146bcca4fdfe17c502217548 to your computer and use it in GitHub Desktop.
RTL-SDR -> DIREWOLF -> APRS
#!/bin/bash
# SPDX-License-Identifier: Unlicense
# Author: Derrick Lyndon Pallas <derrick@pallas.us>
for arg in "$@"; do
shift
case "$arg" in
# default = 144.390M
--iss|--ariss|--aprsat) FREQUENCY=145.825M ;;
--nz|--newzealand) FREQUENCY=144.575M ;;
--tw|--taiwan) FREQUENCY=144.640M ;;
--jp|--japan) FREQUENCY=144.660M ;;
--za|--southafrica) FREQUENCY=144.800M ;;
--eu|--europe) FREQUENCY=144.800M ;;
--ru|--russia) FREQUENCY=144.800M ;;
--ar|--argentina) FREQUENCY=144.930M ;;
--uy|--uruguay) FREQUENCY=144.930M ;;
--au|--australia) FREQUENCY=145.175M ;;
--br|--brazil) FREQUENCY=145.570M ;;
*) set -- "$@" "$arg" ;;
esac
done
sudo true &&
sudo nice -n -5 rtl_fm -p 3 -f ${FREQUENCY:-144.390M} -s 44.1k "$@" |
nice -n 5 direwolf -T '%FT%TZ' -c /proc/self/fd/3 3<<-EOF
ADEVICE stdin null
CHANNEL 0
MYCALL N0CALL-10
IGSERVER noam.aprs2.net:14580
IGLOGIN N0CALL-10 12345
PBEACON SENDTO=IG DELAY=0:30 EVERY=60:00 SYMBOL="igate" OVERLAY=R LAT=37.780000N LONG=122.420000W
AGWPORT 0
KISSPORT 0
EOF
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment