#!/bin/bash # $1 = Satellite Name # $2 = Frequency # $3 = FileName base # $4 = TLE File # $5 = EPOC start time # $6 = Time to capture #sudo timeout -s SIGTERM $6 rtl_fm -f ${2}M -s 60k -g 45 -p 55 -E wav -E deemp -F 9 - | sox -t wav - $3.wav rate 11025 timeout -s SIGTERM $6 rtl_fm -f ${2}M -s 60k -g 45 -p 55 -F 9 - | sox -t raw -e signed -c 1 -b 16 -r 60000 - $3.wav rate 11025 PassStart=`expr $5 + 90` if [ -e $3.wav ] then /usr/local/bin/wxmap -T "${1}" -H $4 -p 0 -l 0 -o $PassStart ${3}-map.png /usr/local/bin/wxtoimg -m ${3}-map.png -e ZA $3.wav $3.png rm ${3}-map.png # mv $3.wav /home/pi/Diskbot-Home/Weather\ Images/wav/ # mv $3.raw /home/pi/Diskbot-Home/Weather\ Images/wav/ cp $3.png /home/pi/Diskbot-Home/Weather\ Images/ cp $3.png /home/pi/Diskbot-Home/Weather\ Images/latest.png fi