Reads GPS position from gpds on Linux systems. This program is used in the PE1RXF Reticulum Portable Server from Mees Electronics.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
495 B

5 days ago
#!/bin/bash
POSITION="$(/usr/bin/python /home/marcel/ham/gps/get_position.py)"
INFO="Portable HAM Station"
if [ "$POSITION" != "!0000.00N/00000.00E;" ]; then
# Set arguments for beacon program
args[0]=-d
args[1]="APRX29 $Path"
args[2]=-s
args[3]=aprs_1200bd
args[4]="$POSITION$INFO"
# Send position beacon
/usr/sbin/beacon "${args[@]}"
echo "Position beacon send."
#/usr/sbin/beacon -d "APRX29" -s aprs_lora $BEACON
else
echo "No GPS signal found. Nothing to do."
fi