Skip to content

A command line application for displaying weather details, written in Python.

Notifications You must be signed in to change notification settings

aziezahmed/openweathermap-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openweathermap-cli

PyPI version

A command line application for displaying weather details, written in Python.

Getting Started

Prerequisites

Installing

Openweathermap-cli is on PyPi so it can be installed with pip.

$ pip install openweathermap-cli

To upgrade use the -U flag.

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

$ weather api YOUR00API00KEY00GOES00HERE

Using openweathermap-cli

Usage:
  weather
  weather week
  weather -h | --help
  weather --version

Get today's weather forecast

$ weather

Get the week's weather forecast

$ weather week

Example

Get today's weather details

$ 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

Authors

License

This project is licensed under the MIT License

About

A command line application for displaying weather details, written in Python.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages