Pārlūkot izejas kodu

Removed obvious error

pull/131/head
Pascal pirms 3 gadiem
vecāks
revīzija
f3dbc2aa60
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      receive_meteor.sh
  2. +2
    -0
      schedule_meteor.sh

+ 1
- 1
receive_meteor.sh Parādīt failu

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

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


Notiek ielāde…
Atcelt
Saglabāt