Skip to main content

A simple weather tool.

Project description

pwy

A simple weather tool.


Table of Contents

Features

  • ASCII art
  • Display weather information
    • The name of the location.
    • Temperature (and what the temperature feels like).
    • Weather and weahter description.
    • Wind pressure, humidity, wind direction, and wind speed.
    • Time and timezone of the location.

Dependencies

  • OpenWeatherMap API key
  • Python 3.8
    • requests

Installation

Pip install

Unix-like | Windows

pip 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.

pip install .

Configuration

Unix-like | Windows

Before you can use pwy, you need to configure your OWM API key first. After you're through, the pwyrc (~/.config/pwyrc for Unix-like and .pwyrc for Windows) config file, containing your OWM API key will be generated. Get your OWM key by signing up.

  • After creating your OWM API key you have to wait a couple of minutes for your API key to activate.
  • This only applies to Unix-like users: If you just install pwy version 1.4.3, please delete the .pwyrc in your home director. Configure pwy with your OWM API key.
pwy --config XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Usage

Unix-like | Windows

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

pip install --upgrade pwy

Changelog

View Changelog.

Credits

License

This program is provided under the GPL-3.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pwy-1.4.4-py3-none-any.whl (22.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page