From 7853e6c1777e6ed87af6a1ca2a47337dfcd3dfab Mon Sep 17 00:00:00 2001 From: Pascal Date: Mon, 1 Feb 2021 11:18:43 +0100 Subject: [PATCH] auto-removing intermediate noaa-apt file --- receive.sh | 2 +- schedule.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/receive.sh b/receive.sh index 0b27d25..809b3ce 100755 --- a/receive.sh +++ b/receive.sh @@ -55,7 +55,7 @@ noaa-apt "${RAMFS_AUDIO}/audio/${3}.wav" -R auto -m yes -o "${NOAA_OUTPUT}/image /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" - +rm "${NOAA_OUTPUT}/images/${3}-noaa-apt.png" rm "${NOAA_HOME}/map/${3}-map.png" if [ "${SUN_ELEV}" -gt "${SUN_MIN_ELEV}" ]; then diff --git a/schedule.sh b/schedule.sh index b031bd0..63c7d75 100755 --- a/schedule.sh +++ b/schedule.sh @@ -10,6 +10,8 @@ fi . "$HOME/.noaa.conf" . "$NOAA_HOME/common.sh" +log "Scheduling new passes" INFO + wget -qr http://www.celestrak.com/NORAD/elements/weather.txt -O "${NOAA_HOME}"/predict/weather.txt wget -qr http://www.celestrak.com/NORAD/elements/amateur.txt -O "${NOAA_HOME}"/predict/amateur.txt grep "NOAA 15" "${NOAA_HOME}"/predict/weather.txt -A 2 > "${NOAA_HOME}"/predict/weather.tle