Advertisement
nighthoodie

usradar

Nov 26th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. # display current us radar
  3. ###########
  4.  
  5. #
  6. ##########
  7. # wget  http://www.gnu.org/software/wget/
  8. # tiv   https://github.com/radare/tiv
  9.  
  10. #
  11. ##########
  12. term_width="48"
  13. radarURL="http://images.intellicast.com/WxImages/Radar/usa.gif"
  14. #radarURL="http://radar.weather.gov/Conus/Loop/NatLoop.gif"
  15. clear="/usr/bin/clear"
  16. cd="/usr/bin/cd"
  17. mktemp="/usr/bin/mktemp"
  18. wget="/opt/local/bin/wget"
  19. tiv="/opt/local/bin/tiv"
  20. rm="/bin/rm"
  21.  
  22. #
  23. ###########
  24. clear
  25. cd $(mktemp -d -t usradarim)
  26. wget -v "$radarURL"
  27. tiv -c -s $term_width *.gif
  28. cd ..
  29. rm -rf usradarim*
  30. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement