diff --git a/receive_noaa.sh b/receive_noaa.sh index 211d9bd..7c647d1 100755 --- a/receive_noaa.sh +++ b/receive_noaa.sh @@ -31,6 +31,7 @@ fi # $7 = Satellite max elevation log "Starting rtl_fm record for $1 at $2 to $3 at epoch $5" "INFO" +log "timeout ${6} /usr/local/bin/rtl_fm ${BIAS_TEE} -f ${2}M -s 60k $GAIN -p $PPM_ERROR -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - ${RAMFS_AUDIO}/audio/${3}.wav rate 11025" DEBUG timeout "${6}" /usr/local/bin/rtl_fm ${BIAS_TEE} -f "${2}"M -s 60k $GAIN -p $PPM_ERROR -E wav -E deemp -F 9 - | /usr/bin/sox -t raw -e signed -c 1 -b 16 -r 60000 - "${RAMFS_AUDIO}/audio/${3}.wav" rate 11025 if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then diff --git a/schedule_sat.sh b/schedule_sat.sh index e4fed13..2d69e5f 100755 --- a/schedule_sat.sh +++ b/schedule_sat.sh @@ -32,7 +32,7 @@ log "Looking for passes of $1" INFO PREDICTION_START=$(predict -t "${NOAA_HOME}"/predict/weather.tle -p "${1}" | head -1) PREDICTION_END=$(predict -t "${NOAA_HOME}"/predict/weather.tle -p "${1}" | tail -1) -[ -z "$PREDICTION_START" ] && log "predict did not return any values!" ERROR +[ -z "$PREDICTION_START" ] && log "predict did not return any values for $1!" ERROR var2=$(echo "${PREDICTION_END}" | cut -d " " -f 1)