|
@@ -30,7 +30,7 @@ fi |
|
|
# $6 = Time to capture |
|
|
# $6 = Time to capture |
|
|
# $7 = Satellite max elevation |
|
|
# $7 = Satellite max elevation |
|
|
|
|
|
|
|
|
log "Starting rtl_fm record" "INFO" |
|
|
|
|
|
|
|
|
log "Starting rtl_fm record for $1 at $2 to $3 at epoch $5" "INFO" |
|
|
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 |
|
|
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 |
|
|
if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then |
|
@@ -41,7 +41,7 @@ else |
|
|
daylight="false" |
|
|
daylight="false" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
log "Bulding pass map wxtoimg " "INFO" |
|
|
|
|
|
|
|
|
log "Bulding pass map wxtoimg" "INFO" |
|
|
/usr/local/bin/wxmap -T "${1}" -H "${4}" -p 0 -l 0 -o "${PASS_START}" "${NOAA_HOME}/map/${3}-map.png" |
|
|
/usr/local/bin/wxmap -T "${1}" -H "${4}" -p 0 -l 0 -o "${PASS_START}" "${NOAA_HOME}/map/${3}-map.png" |
|
|
for i in $ENHANCEMENTS; do |
|
|
for i in $ENHANCEMENTS; do |
|
|
log "Decoding image" "INFO" |
|
|
log "Decoding image" "INFO" |
|
@@ -50,7 +50,7 @@ for i in $ENHANCEMENTS; do |
|
|
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-$i.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-$i.jpg" |
|
|
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-$i.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-$i.jpg" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
log "Building noaa-apt maps" |
|
|
|
|
|
|
|
|
log "Building noaa-apt maps" DEBUG |
|
|
noaa-apt "${RAMFS_AUDIO}/audio/${3}.wav" -R auto -m yes -o "${NOAA_OUTPUT}/images/${3}-noaa-apt.png" |
|
|
noaa-apt "${RAMFS_AUDIO}/audio/${3}.wav" -R auto -m yes -o "${NOAA_OUTPUT}/images/${3}-noaa-apt.png" |
|
|
/usr/bin/convert -quality 98 -format jpg "${NOAA_OUTPUT}/images/${3}-noaa-apt.png" -undercolor black -fill yellow -pointsize 18 -annotate +20+20 "${1} $i ${START_DATE} Elev: $7°" "${NOAA_OUTPUT}/images/${3}-noaa-apt.jpg" |
|
|
/usr/bin/convert -quality 98 -format jpg "${NOAA_OUTPUT}/images/${3}-noaa-apt.png" -undercolor black -fill yellow -pointsize 18 -annotate +20+20 "${1} $i ${START_DATE} Elev: $7°" "${NOAA_OUTPUT}/images/${3}-noaa-apt.jpg" |
|
|
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-noaa-apt.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-noaa-apt.jpg" |
|
|
/usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-noaa-apt.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-noaa-apt.jpg" |
|
|