Files
get_gps_position/send_beacon_aprs_lora.sh
2025-01-31 14:29:21 +01:00

24 lines
493 B
Bash
Executable File

#!/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_lora
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