Weather CLI App With Python 3.9
A CLI App to retrieve weather from a given city.
Configuration:
Add your own openweather API key in secrets.ini.
Usage:
python3 weather.py [-h] [-i] [-l [LANGUAGE]] city
positional arguments:
city enter the city name
optional arguments:
-h, --help show this help message and exit
-i, --imperial display the weather in imperial units
-l [LANGUAGE], --language [LANGUAGE] two letters abbreviation of language to be display
Possible languages:
af Afrikaans
al Albanian
ar Arabic
az Azerbaijani
bg Bulgarian
ca Catalan
cz Czech
da Danish
de German
el Greek
en English
eu Basque
fa Persian (Farsi)
fi Finnish
fr French
gl Galician
he Hebrew
hi Hindi
hr Croatian
hu Hungarian
id Indonesian
it Italian
ja Japanese
kr Korean
la Latvian
lt Lithuanian
mk Macedonian
no Norwegian
nl Dutch
pl Polish
pt Portuguese
pt_br Português Brasil
ro Romanian
ru Russian
sv, se Swedish
sk Slovak
sl Slovenian
sp, es Spanish
sr Serbian
th Thai
tr Turkish
ua, uk Ukrainian
vi Vietnamese
zh_cn Chinese Simplified
zh_tw Chinese Traditional
zu Zulu