Create aprs_in.py to read aprs from direwolf

beta-dw-tx
Alan Johnston 2 years ago committed by GitHub
parent 14398e4eb1
commit bd8f311f0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,20 @@
import sys
from os import system
for line in sys.stdin:
if '^c' == line.rstrip():
break
# print(line)
if (line.find("MODE=a")) > 0:
system("echo 'APRS Mode!!'")
mode = 'a'
change_mode = True
if (line.find("MODE=f")) > 0:
system("echo 'FSK Mode!!'")
if (line.find("MODE=b")) > 0:
system("echo 'BPSK Mode!!'")
if (line.find("MODE=s")) > 0:
system("echo 'SSTV Mode!!'")
if (line.find("MODE=m")) > 0:
system("echo 'CW Mode!!'")
print("Done")
Loading…
Cancel
Save

Powered by TurnKey Linux.