Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

50 Zeilen
1.3 KiB

  1. #!/bin/sh
  2. ## debug
  3. #set -x
  4. . ~/.noaa.conf
  5. ## sane checks
  6. if [ ! -d ${NOAA_HOME} ]; then
  7. mkdir -p ${NOAA_HOME}
  8. fi
  9. if [ ! -d ${NOAA_HOME}/audio/ ]; then
  10. mkdir -p ${NOAA_HOME}/audio/
  11. fi
  12. if [ ! -d ${NOAA_HOME}/image/ ]; then
  13. mkdir -p ${NOAA_HOME}/image/
  14. fi
  15. if [ ! -d ${NOAA_HOME}/map/ ]; then
  16. mkdir -p ${NOAA_HOME}/map/
  17. fi
  18. if [ ! -d ${NOAA_HOME}/predict/ ]; then
  19. mkdir -p ${NOAA_HOME}/predict/
  20. fi
  21. if pgrep "rtl_fm" > /dev/null
  22. then
  23. exit 1
  24. fi
  25. # $1 = Satellite Name
  26. # $2 = Frequency
  27. # $3 = FileName base
  28. # $4 = TLE File
  29. # $5 = EPOC start time
  30. # $6 = Time to capture
  31. START_DATE=$(date '+%d-%m-%Y %H:%M')
  32. timeout "${6}" rtl_fm -f "${2}"M -s 60k -g 50 -p 55 -E wav -E deemp -F 9 - | sox -t raw -e signed -c 1 -b 16 -r 60000 - ${NOAA_HOME}/audio/"${3}".wav rate 11025
  33. PASS_START=$("$5" + 90)
  34. /usr/local/bin/wxmap -T "${1}" -H "${4}" -p 0 -l 0 -o "${PASS_START}" ${NOAA_HOME}/map/"${3}"-map.png
  35. for i in ZA MCIR MCIR-precip MSA MSA-precip HVC-precip HVCT-precip HVC HVCT; do
  36. /usr/local/bin/wxtoimg -o -m ${NOAA_HOME}/map/"${3}"-map.png -e $i ${NOAA_HOME}/audio/"${3}".wav ${NOAA_HOME}/image/"${3}"-$i.png
  37. /usr/bin/convert ${NOAA_HOME}/image/"${3}"-$i.png -undercolor black -fill yellow -pointsize 18 -annotate +20+20 "$1 $START_DATE" ${NOAA_HOME}/image/"${3}"-$i.png
  38. done