Преглед на файлове

Merge pull request #19 from reynico/enable_biastee

Setup bias-tee during install
tags/v1.2
Nico преди 4 години
committed by GitHub
родител
ревизия
bd88c23c44
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 4 файла, в които са добавени 13 реда и са изтрити 3 реда
  1. +9
    -0
      install.sh
  2. +1
    -1
      receive.sh
  3. +1
    -1
      receive_meteor.sh
  4. +2
    -1
      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


+ 2
- 1
templates/noaa.conf Целия файл

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

Зареждане…
Отказ
Запис