Command line weather app
Project description
Weather Command
A command line weather app
Installation
Installation with pipx is recommended.
pipx install weather-command
Alternatively Weather Command can be installed with pip.
pip install weather-command
Useage
First an API key is needed from OpenWeather, A free account is all that
is needed. Once you have your API key create an environment variable named OPEN_WEATHER_API_KEY
that
constains your API key.
export OPEN_WEATHER_API_KEY=your-api-key
To get the weather for a city:
weather-command city seattle
Arguments
- [HOW]: How to get the weather. Accepted values are city and zip. [default: city]
- [CITY_ZIP]: The name of the city or zip code for which the weather should be retrieved. If the first argument is 'city' this should be the name of the city, or if 'zip' it should be the zip code. [required]
Options
- -u, --units: The units to use. Accepted values are metricand imperial. [default: metric]
- -s, --state-code: The name of the state where the city is located.
- -c, --country-code: The country code where the city is located.
- --am-pm: If this flag is set the times will be displayed in 12 hour format, otherwise times will be 24 hour format.
- -t, --temp-only: If this flag is set only tempatures will be displayed.
- --terminal_width: Allows for overriding the default terminal width.
- --install-completion [bash|zsh|fish|powershell|pwsh]: Install completion for the specified shell.
- --show-completion [bash|zsh|fish|powershell|pwsh]: Show completion for the specified shell, to copy it or customize the installation.
- --help: Show this message and exit.
Contributing
Contributions to this project are welcome. If you are interesting in contributing please see our contributing guide
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
weather-command-0.1.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for weather_command-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a265ee0050b3bcfc682a0c58875a7f7daa05d7bd8c93497f4f98deec362948 |
|
MD5 | 24d36c103fa6ef1b6d568c17b2b322b1 |
|
BLAKE2b-256 | 30fa7f3762d4437d77d1a553a123fd16315bd9f7020c971b18817de09dd9d24f |