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:
Sweet, isn't it? :-)
Thank you all.
This content originally appeared on DEV Community and was authored by Stokry
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.