https://github.com/aziezahmed/openweathermap-cli
A command line application for displaying weather details, written in Python.
https://github.com/aziezahmed/openweathermap-cli
command-line-app openweathermap-api python weather
Last synced: 4 months ago
JSON representation
A command line application for displaying weather details, written in Python.
- Host: GitHub
- URL: https://github.com/aziezahmed/openweathermap-cli
- Owner: aziezahmed
- Created: 2017-01-04T14:54:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-07T18:26:09.000Z (almost 5 years ago)
- Last Synced: 2025-10-27T07:05:26.469Z (7 months ago)
- Topics: command-line-app, openweathermap-api, python, weather
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
openweathermap-cli
==================
|PyPI version|
*A command line application for displaying weather details, written in Python.*
Getting Started
---------------
Prerequisites
~~~~~~~~~~~~~
- `Python`_
Installing
~~~~~~~~~~
Openweathermap-cli is on `PyPi`_ so it can be installed with pip.
.. code-block:: bash
$ pip install openweathermap-cli
To upgrade use the -U flag.
.. code-block:: bash
$ pip install -U openweathermap-cli
Adding your API key
~~~~~~~~~~~~~~~~~~~
To begin you will need to add your API key. If you do not have an API key you can get one free from `Open Weather Map`_.
.. code-block:: bash
$ weather api YOUR00API00KEY00GOES00HERE
Using openweathermap-cli
~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
Usage:
weather
weather week
weather -h | --help
weather --version
Get today's weather forecast
.. code-block:: bash
$ weather
Get the week's weather forecast
.. code-block:: bash
$ weather week
Example
~~~~~~~
Get today's weather details
.. code-block:: bash
$ weather
+-----------------------+------------+
| City of Westminster | |
|-----------------------+------------|
| Temperature | 10.45 |
| Temp Max | 12.0 |
| Temp Min | 9.0 |
| Summary | Rain |
| Detail | light rain |
| Sunrise | 07:05:26 |
| Sunset | 17:23:52 |
+-----------------------+------------+
Built With
----------
- `skele-cli`_
- `Open Weather Map`_
Authors
-------
- `Aziez Ahmed Chawdhary`_
License
-------
This project is licensed under the MIT License
.. _Open Weather Map: http://openweathermap.org/
.. _Python: https://www.python.org
.. _PyPi: https://pypi.python.org/pypi
.. _skele-cli: https://github.com/rdegges/skele-cli
.. _Aziez Ahmed Chawdhary: https://github.com/aziezahmed
.. |PyPI version| image:: https://img.shields.io/pypi/v/openweathermap-cli.svg
:target: https://pypi.python.org/pypi/openweathermap-cli