Quellcode durchsuchen

auto-removing intermediate noaa-apt file

pull/131/head
Pascal vor 3 Jahren
Ursprung
Commit
7853e6c177
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      receive.sh
  2. +2
    -0
      schedule.sh

+ 1
- 1
receive.sh Datei anzeigen

@@ -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


+ 2
- 0
schedule.sh Datei anzeigen

@@ -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


Laden…
Abbrechen
Speichern