Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Weather in your terminal
Shell
Branch: master

useless var

latest commit a1ab220f4f
@l-r authored
Failed to load latest commit information.
README.md problem with github's https
cities added cities + countries within repo
countries added cities + countries within repo
weather.sh useless var

README.md

weather.sh

weather.sh is a small bash script that outputs weather data for a city directly in your terminal. It uses wget. sed and awk mostly. Weather data comes from weather.com.

  • Author : Laurier Rochon
  • Website : pwd.io

Installation

wget --quiet http://raw.github.com/l-r/weather.sh/master/weather.sh && \
chmod +x weather.sh && \
alias weather=./weather.sh

Valid usage examples

Basic syntax : weather city_name (state/province) country_code

For names containing spaces, enclose in double quotes ("")

  • weather montreal qc ca
  • weather amsterdam nl
  • weather "new york"
  • weather "san jose" ca us
  • weather "cape town" ZA

If all goes well, response will be as follows :

  • It's currently -17°C (°F), in Cape Town ZA.

If multiple options are available for the given input, such choices will appear :

Did you mean:
1) 'New York, NY, US'       5) 'New York,  MX'
2) 'West New York, NJ, US'   6) 'New York, I9, GB'
3) 'New York Mills, MN, US'  7) None, make a new search
4) 'New York Mills, NY, US'
#? 
Something went wrong with that request. Please try again.