From f3dbc2aa60b202267605b90c9fd3d8f7a5ec4cfb Mon Sep 17 00:00:00 2001 From: Pascal Date: Tue, 2 Feb 2021 08:59:17 +0100 Subject: [PATCH] Removed obvious error --- receive_meteor.sh | 2 +- schedule_meteor.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/receive_meteor.sh b/receive_meteor.sh index 8129c2f..a2b9a18 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -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 diff --git a/schedule_meteor.sh b/schedule_meteor.sh index 0b24917..31c8e22 100755 --- a/schedule_meteor.sh +++ b/schedule_meteor.sh @@ -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)