Pārlūkot izejas kodu

Merge branch 'master' into web_panel

tags/1.5
Nico pirms 4 gadiem
committed by GitHub
vecāks
revīzija
d57311a3f5
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
3 mainītis faili ar 10 papildinājumiem un 5 dzēšanām
  1. +2
    -2
      receive.sh
  2. +4
    -1
      receive_meteor.sh
  3. +4
    -2
      schedule_iss.sh

+ 2
- 2
receive.sh Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt