Skip to content

Julynx/wthr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wthr

The current weather and temperature right from your terminal.


Installation

Create an OpenWeatherMap account and get a free API key.
You will be asked for the key the first time you run wthr.

Please note that OpenWeatherMap may take several minutes to activate newly created keys.
They will appear as invalid to wthr during that time.

  1. Download the latest version of wthr from this repository:
git clone https://github.com/Julynx/wthr
cd wthr
  1. Install the dependencies:
pip3 install geopy cursor requests
  1. Run the following commands to install wthr in your /usr/bin/ directory:
sudo chmod +x wthr
sudo cp wthr /usr/bin/

The program can now be ran from a terminal with the wthr command.

Usage

  Displays weather information from openweathermap.

  Usage:           wthr [LOCATION] [OPTIONS] ...
  Example:         wthr Dubai

  --mode=default   Equivalent to ommiting the '--mode' flag,
  -d               shows the current weather for the location.
  --mode=forecast  Displays an 8-day forecast for the location,
  -f               including minimum and maximum temperatures.
  --verbose        Prints debug information whenever an API
  -v               call fails due to a key error.