Skip to content

This is a weather shell script for you to check weather's info of any city you want.

License

Notifications You must be signed in to change notification settings

Tu-Zhenzhao/homebrew-weather_zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Script in zsh

Description

Weather_zsh is a Shell Script for displaying the current weather conditions in terminal.

Demo

Weather data from the openweathermap weather API

Requirements

Check the list below before you run weather_zsh:

  • Few commands in terminal curl, date
  • jq

Installation

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

Usage

Synopsis

weather [-n Name_of_Location]
	[-z ZIP_Code]
	[-d City_ID]
	[-f 1~5]
	[-v]
	[-h]

Options

-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

API

Weather_zsh is using OpenWeatherMap free api. You can simply sign up on OpenWeatherMap to get a free api of weather.

api_key:b50d1dba4625702a06311efea7a4ca0c

License

Weather_zsh is licensed by MIT Licence

Author

Weather_zsh is developed by Zhenzhao Tu.

About

This is a weather shell script for you to check weather's info of any city you want.

Resources

License

Stars

Watchers

Forks

Packages

No packages published