Weather_zsh is a Shell Script for displaying the current weather conditions in terminal.
Weather data from the openweathermap
weather API
Check the list below before you run weather_zsh:
- Few commands in terminal
curl
,date
- jq
Using Home-brew to install it is the recommend way if you are using macOS or Linux:
$ brew tap Tu-Zhenzhao/homebrew-weather_zsh
$ brew install homebrew-weather_zsh
Or you can do it manually by cloning the repository. After cloning the repo, you need to go to the directory in terminal and run:
./weather
weather [-n Name_of_Location]
[-z ZIP_Code]
[-d City_ID]
[-f 1~5]
[-v]
[-h]
-f
input how many days you want to do forecast, up to 5 days
-h
reach out for help
-v
check version
-n location
name of the location
-z zip_code
zip code of your address
-d city_id
you are required to find your city id from the website below
Check City ID: City ID
Weather_zsh is using OpenWeatherMap free api. You can simply sign up on OpenWeatherMap to get a free api of weather.
api_key:b50d1dba4625702a06311efea7a4ca0c
Weather_zsh is licensed by MIT Licence
Weather_zsh is developed by Zhenzhao Tu.