RTL-SDR -> DIREWOLF -> APRS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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