Преглед изворни кода

Setup bias-tee during install

tags/v1.2
Nico Rey пре 4 година
родитељ
комит
e9fc9282d2
4 измењених фајлова са 12 додато и 2 уклоњено
  1. +9
    -0
      install.sh
  2. +1
    -1
      receive.sh
  3. +1
    -1
      receive_meteor.sh
  4. +1
    -0
      templates/noaa.conf

+ 9
- 0
install.sh Прегледај датотеку

@@ -195,6 +195,15 @@ sudo chmod 777 /var/ramfs
set -e

success "Install (almost) done!"

read -rp "Do you want to enable bias-tee? (y/N)"
if [[ $REPLY =~ ^[Yy]$ ]]; then
sed -i -e "s/enable_bias_tee/-T/g" "$HOME/.noaa.conf"
log_done "Bias-tee is enabled!"
else
sed -i -e "s/enable_bias_tee//g" "$HOME/.noaa.conf"
fi

echo "
It's time to configure your ground station
You'll be asked for your latitude and longitude


+ 1
- 1
receive.sh Прегледај датотеку

@@ -25,7 +25,7 @@ fi
# $6 = Time to capture
# $7 = Satellite max elevation

timeout "${6}" /usr/local/bin/rtl_fm -f "${2}"M -s 60k -g 50 -p 55 -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${NOAA_AUDIO}/audio/${3}.wav" rate 11025
timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k -g 50 -p 55 -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${NOAA_AUDIO}/audio/${3}.wav" rate 11025

if [ ! -d "{NOAA_OUTPUT}/image/${FOLDER_DATE}" ]; then
mkdir -m 775 -p "${NOAA_OUTPUT}/image/${FOLDER_DATE}"


+ 1
- 1
receive_meteor.sh Прегледај датотеку

@@ -29,7 +29,7 @@ fi
# $7 = Satellite max elevation

log "Starting rtl_fm record" "INFO"
timeout "${6}" /usr/local/bin/rtl_fm -M raw -f "${2}"M -s 288k -g 48 -p 1 | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${METEOR_OUTPUT}/audio/${3}.wav" rate 96k
timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -M raw -f "${2}"M -s 288k -g 48 -p 1 | sox -t raw -r 288k -c 2 -b 16 -e s - -t wav "${METEOR_OUTPUT}/audio/${3}.wav" rate 96k

log "Normalization in progress" "INFO"
sox "${METEOR_OUTPUT}/audio/${3}.wav" "${METEOR_OUTPUT}/${3}.wav" gain -n


+ 1
- 0
templates/noaa.conf Прегледај датотеку

@@ -8,3 +8,4 @@ SUN_MIN_ELEV=10
LOG_LEVEL=DEBUG
LAT=change_latitude
LON=change_longitude
BIAS_TEE="enable_bias_tee"

Loading…
Откажи
Сачувај