Table of Contents
Features
- ASCII art
- Display weather information
- The name of the location.
- Temperature (and what the temperature feels like).
- Weather and weather description.
- Wind pressure, humidity, wind direction, and wind speed.
- Time and timezone of the location.
Dependencies
- OpenWeatherMap API key
- Python 3.8
- requests
- rich
- Internet connection
Installation
Pip install
Unix-like | Windows
pip3 install pwy
Manual/Git install
Unix-like | Windows
Download the latest pwy package here and uncompress it. Go to pwy directory.
cd pwy
Install pwy.
pip3 install .
Configuration
Unix-like | Windows
Before you can use pwy, you need to configure pwy. Run the command below and fill the required files, these fields are for the OWM API key, location, unit, and language.
pwy
After you're through, the pwy.json
(~/.config/pwy.json
for Unix-like and pwy.json
for Windows) config file, containing your OWM API key, location, unit, and language, will be generated.
Get your OWM key by signing up.
If you want to edit your pwy configuration.
pwy --config
Usage
Unix-like | Windows
To display weather in your current city (from pwy.json).
pwy
To display weather in your current city.
pwy tokyo
You can also specify what country you are in by.
pwy tokyo,jp
To display weather with specific unit of measurement. By default the unit is Metric system.
pwy tokyo --unit imperial
To display weather with specific language.
pwy tokyo --lang ja
To display help information.
pwy --help
Update
Unix-like | Windows
pip3 install --upgrade pwy
Changelog
View Changelog.
Credits
- pwy Contributors
- OpenWeatherMap - API
- wego - ASCII art
License
This program is provided under the GPL-3.0 License.