wttr 691 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/bash
  2. case "$1" in
  3. "texas")
  4. LO='Dallas, Texas'
  5. ;;
  6. "joaq")
  7. LO='Spain'
  8. ;;
  9. "ben")
  10. LO='Traverse City'
  11. ;;
  12. "gbmor")
  13. LO='Atlanta'
  14. ;;
  15. "mspe")
  16. LO='Talence, New Aquitaine'
  17. ;;
  18. "jan6")
  19. LO='Tallinn, Estonia'
  20. ;;
  21. "xfnw")
  22. LO='Gaithersburg, Maryland'
  23. ;;
  24. "cmccabe")
  25. LO='McMurdo Station'
  26. ;;
  27. "khuxkm")
  28. LO='Falconer, New York'
  29. ;;
  30. "thecomputergeek")
  31. LO='Whitehouse, Texas'
  32. ;;
  33. "buttsvill")
  34. LO='Missouri'
  35. ;;
  36. "deepend")
  37. LO='Alberta, Canada'
  38. ;;
  39. "ubergeek")
  40. LO='Buffalo, New York'
  41. ;;
  42. "hackintech")
  43. LO="Madison, Wisconsin"
  44. ;;
  45. "kumquat")
  46. LO="Bordeaux, France"
  47. ;;
  48. *)
  49. LO="$1"
  50. esac
  51. curl "http://wttr.in/$LO?m&format=%l:%20%C%20%t%20%h"