Skip to content

gibbonsd1/weather.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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 https://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'
#? 

About

Weather in your terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages