Sfoglia il codice sorgente

Removed obvious error

pull/131/head
Pascal 3 anni fa
parent
commit
f3dbc2aa60
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +1
    -1
      receive_meteor.sh
  2. +2
    -0
      schedule_meteor.sh

+ 1
- 1
receive_meteor.sh Vedi File

@@ -95,5 +95,5 @@ if [ -f "${METEOR_OUTPUT}/${3}.dec" ]; then
fi
else
log "Decoding failed, either a bad pass/low SNR or a software problem" "ERROR"
sqlite3 $HOME/raspberry-noaa/panel.db "update predict_passes set is_active = 0 where predict_passes.pass_start = $5);"
sqlite3 $HOME/raspberry-noaa/panel.db "update predict_passes set is_active = 0 where predict_passes.pass_start = $5;"
fi

+ 2
- 0
schedule_meteor.sh Vedi File

@@ -17,6 +17,8 @@ var2=$(echo "${PREDICTION_END}" | cut -d " " -f 1)

MAXELEV=$(predict -t "${NOAA_HOME}"/predict/weather.tle -p "${1}" | awk -v max=0 '{if($5>max){max=$5}}END{print max}')

log "Looking for passes of $1" INFO

while [ "$(date --date="@${var2}" +%D)" = "$(date +%D)" ]; do
log "Pass prediction for $1 in progress" "INFO"
START_TIME=$(echo "$PREDICTION_START" | cut -d " " -f 3-4)


Caricamento…
Annulla
Salva