The current weather and temperature right from your terminal.
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.
- Download the latest version of wthr from this repository:
git clone https://github.com/Julynx/wthr
cd wthr
- Install the dependencies:
pip3 install geopy cursor requests
- 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.
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.