Browse Source

Merge branch 'master' into web_panel

tags/1.5
Nico 3 years ago
committed by GitHub
parent
commit
d57311a3f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions
  1. +2
    -2
      receive.sh
  2. +4
    -1
      receive_meteor.sh
  3. +4
    -2
      schedule_iss.sh

+ 2
- 2
receive.sh View File

@@ -68,8 +68,8 @@ sqlite3 /home/pi/raspberry-noaa/panel.db "update predict_passes set is_active =

if [ "$DELETE_AUDIO" = true ]; then
log "Deleting audio files" "INFO"
rm "${RAMFS_AUDIO}/audio/${3}.wav"
rm "${RAMFS_AUDIO}/audio/${3}.wav"
else
log "Moving audio files out to the SD card" "INFO"
mv "${RAMFS_AUDIO}/audio/${3}.wav" "${NOAA_OUTPUT}/audio/${3}.wav"
mv "${RAMFS_AUDIO}/audio/${3}.wav" "${NOAA_OUTPUT}/audio/${3}.wav"
fi

+ 4
- 1
receive_meteor.sh View File

@@ -49,6 +49,8 @@ if [ "$DELETE_AUDIO" = true ]; then
else
log "Moving audio files out to the SD card" "INFO"
mv "${RAMFS_AUDIO}/audio/${3}.wav" "${NOAA_OUTPUT}/audio/${3}.wav"
rm "${METEOR_OUTPUT}/audio/${3}.wav"
rm "${RAMFS_AUDIO}/audio/${3}.wav"
fi

log "Decoding in progress (QPSK to BMP)" "INFO"
@@ -60,7 +62,8 @@ if [ -f "${METEOR_OUTPUT}/${3}.dec" ]; then

if [ "${SUN_ELEV}" -lt "${SUN_MIN_ELEV}" ]; then
log "I got a successful ${3}.dec file. Decoding APID 68" "INFO"
medet_arm "${METEOR_OUTPUT}/${3}.dec" "${NOAA_OUTPUT}/images/${3}-122" -r 68 -g 68 -b 68 -d

medet_arm "${METEOR_OUTPUT}/${3}.dec" "${NOAA_OUTPUT}/images/${3}-122" -r 68 -g 68 -b 68 -d
/usr/bin/convert $FLIP -negate "${NOAA_OUTPUT}/images/${3}-122.bmp" "${NOAA_OUTPUT}/images/${3}-122.bmp"
else
log "I got a successful ${3}.dec file. Creating false color image" "INFO"


+ 4
- 2
schedule_iss.sh View File

@@ -3,8 +3,10 @@
## debug
# set -x

. ~/.noaa.conf
. "${NOAA_HOME}"/common.sh
## import common lib
. "$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh"

SAT_MIN_ELEV=10

PREDICTION_START=$(/usr/bin/predict -t "${NOAA_HOME}"/predict/amateur.tle -p "${1}" | head -1)


Loading…
Cancel
Save