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.
23 lines
493 B
23 lines
493 B
#!/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
|
|
|