How to check the weather right from your terminal with Python

Today I want to show you how to check the weather from your terminal. For this purpose, we are going to use cli-weather, a lightweight command-line app to get fast weather data right on the command line.

cli-weather is a command-line app to get insta…


This content originally appeared on DEV Community and was authored by Stokry

Today I want to show you how to check the weather from your terminal. For this purpose, we are going to use cli-weather, a lightweight command-line app to get fast weather data right on the command line.

cli-weather is a command-line app to get instant real-time weather data by city name or postal code from any corner on earth right on the command line.

With cli-weather app you can retrieve current weather observations from over 45,000 live weather stations using WeatherBIT API, and highly localized weather forecasts for any point on the globe using the world's most trusted weather models such as GFS 13km, ECMWF, DWD 6.5km ICON-Europe, and NOAA 3km HRRR.!

Installation

cli-weather requires pip python package manager to install.

pip install cli-weather

Basic Usage

cli-weather command [-h] [-a] [-d] [-f] [-c COUNTRY] [-u {M,S,I}] city_nmae/postal_cod

This is our example:

enter image description here

Sweet, isn't it? :-)

Thank you all.


This content originally appeared on DEV Community and was authored by Stokry


Print Share Comment Cite Upload Translate Updates
APA

Stokry | Sciencx (2021-05-31T10:58:07+00:00) How to check the weather right from your terminal with Python. Retrieved from https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/

MLA
" » How to check the weather right from your terminal with Python." Stokry | Sciencx - Monday May 31, 2021, https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/
HARVARD
Stokry | Sciencx Monday May 31, 2021 » How to check the weather right from your terminal with Python., viewed ,<https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/>
VANCOUVER
Stokry | Sciencx - » How to check the weather right from your terminal with Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/
CHICAGO
" » How to check the weather right from your terminal with Python." Stokry | Sciencx - Accessed . https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/
IEEE
" » How to check the weather right from your terminal with Python." Stokry | Sciencx [Online]. Available: https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/. [Accessed: ]
rf:citation
» How to check the weather right from your terminal with Python | Stokry | Sciencx | https://www.scien.cx/2021/05/31/how-to-check-the-weather-right-from-your-terminal-with-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.