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.
37 lines
768 B
37 lines
768 B
#!/bin/bash
|
|
|
|
# stay DELAY seconds on every band
|
|
DELAY="300"
|
|
|
|
# local rigctld, can be running dummy rig!
|
|
PARAMETERS="-m 2"
|
|
BANDS=(14074000 21074000 28074000)
|
|
|
|
# enable gqrx intergration
|
|
GQRX="1"
|
|
GQRX_PARAMETERS="-m 2 -r localhost:7356"
|
|
GQRX_BANDS=(139074000 146000740 153000740)
|
|
|
|
# find rigctl binary
|
|
RIGCTL=$(which rigctl)
|
|
|
|
# wait for full minute
|
|
echo "wait for full minute.."
|
|
sleep $(((60 - $(date +%s) % 60)-1))
|
|
|
|
# start switching
|
|
let len=${#BANDS[*]}-1
|
|
while true ; do
|
|
for i in $(seq 0 $len); do
|
|
date
|
|
echo "switching local rigctl to ${BANDS[$i]}"
|
|
$RIGCTL $PARAMETERS F ${BANDS[$i]}
|
|
|
|
if [ "$GQRX" = "1" ]; then
|
|
echo "switching gqrx to ${GQRX_BANDS[$i]}"
|
|
$RIGCTL $GQRX_PARAMETERS F ${GQRX_BANDS[$i]}
|
|
fi
|
|
sleep $DELAY
|
|
done
|
|
done
|
|
|
|
|