From 13bf3be6f8776ecbbfedb74948e27fa61eef3dfd Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Tue, 20 Oct 2020 10:10:10 -0300 Subject: [PATCH] remove files --- receive_meteor.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/receive_meteor.sh b/receive_meteor.sh index 80f9590..54a013b 100755 --- a/receive_meteor.sh +++ b/receive_meteor.sh @@ -72,6 +72,8 @@ if [ -f "${METEOR_OUTPUT}/${3}.dec" ]; then convert "${NOAA_OUTPUT}/images/${3}-122-rectified.jpg" -channel rgb -normalize -undercolor black -fill yellow -pointsize 60 -annotate +20+40 "${1} ${START_DATE} Elev: $7°" "${NOAA_OUTPUT}/images/${3}-122-rectified.jpg" /usr/bin/convert -thumbnail 300 "${NOAA_OUTPUT}/images/${3}-122-rectified.jpg" "${NOAA_OUTPUT}/images/thumb/${3}-122-rectified.jpg" rm "${NOAA_OUTPUT}/images/${3}-122.bmp" + rm "${METEOR_OUTPUT}/${3}.bmp" + rm "${METEOR_OUTPUT}/${3}.dec" sqlite3 /home/pi/raspberry-noaa/panel.db "insert into decoded_passes (pass_start, file_path, daylight_pass, is_noaa) values ($5,\"$3\", 1,0);" pass_id=$(sqlite3 /home/pi/raspberry-noaa/panel.db "select id from decoded_passes order by id desc limit 1;")