A simple command-line tool written in Python that fetches real-time weather data using the MET Norway API and displays a clean 10-hour forecast with colored console output.
🎥 Watch on YouTube starting December 15, 2025 ↗
- 🌍 Automatic city geocoding (OpenStreetMap / Nominatim)
- ☀️ Real-time weather from MET Norway
- 🎨 Colorized temperature output in terminal
- 📅 Local time conversion
- 🔍 10-hour detailed forecast
- 🇵🇱 Polish weather descriptions (symbol translation)
- 🛠 Simple and lightweight — no external packages except
requests
Clone the repository:
git clone https://github.com/<your-account>/python-weather-cli.git
cd python-weather-cliInstall dependencies:
pip install requestsRun the main script:
python main.pyWhen prompted:
- Enter the city name (e.g.
Oslo,Warszawa,London) - Or type
exitto close the program
========================================================
Pogoda dla: Oslo (czas: 2025-12-05 14:00)
--------------------------------------------------------
Aktualnie: 2.3°C Wiatr: 3.1 m/s Czyste niebo
--------------------------------------------------------
Pogoda na nastpne 10 godzin:
Godzina Temperatura Wiatr Opis
--------------------------------------------------------
2025-12-05 15:00 2.1°C 3.0 m/s Czesciowo zachmurzone
...
========================================================This project is licensed under the MIT License.
See the LICENSE file for details.
- Geocoding: OpenStreetMap Nominatim
- Weather data: MET Norway (api.met.no)
Created by Greg — PotegaIT YouTube: @PotegaIT
Proste narzędzie konsolowe napisane w Pythonie, które pobiera aktualne dane pogodowe z API MET Norway i wyświetla czytelną prognozę na 10 godzin wraz z kolorowym formatowaniem temperatury w terminalu.
🎥 Obejrzyj na YouTube już od 15 grudnia 2025 ↗
- 🌍 Automatyczne geokodowanie miast (OpenStreetMap / Nominatim)
- ☀️ Aktualna pogoda z MET Norway
- 🎨 Kolorowe wyświetlanie temperatury w konsoli
- 📅 Konwersja czasu na lokalny
- 🔍 Szczegółowa prognoza na 10 godzin
- 🇵🇱 Polskie opisy pogody (tłumaczenie symboli)
- 🛠 Proste i lekkie — brak zewnętrznych zależności poza requests
Sklonuj repozytorium:
git clone https://github.com/<twoje-konto>/python-weather-cli.git
cd python-weather-cliZainstaluj zależności:
pip install requestsUruchom główny skrypt:
python main.pyPo uruchomieniu:
- Wpisz nazwę miasta (np.
Oslo,Warszawa,London) - Lub wpisz
exit, aby zakończyć działanie programu
========================================================
Pogoda dla: Oslo (czas: 2025-12-05 14:00)
--------------------------------------------------------
Aktualnie: 2.3°C Wiatr: 3.1 m/s Czyste niebo
--------------------------------------------------------
Pogoda na nastpne 10 godzin:
Godzina Temperatura Wiatr Opis
--------------------------------------------------------
2025-12-05 15:00 2.1°C 3.0 m/s Czesciowo zachmurzone
...
========================================================Ten projekt jest udostępniany na licencji MIT.
Szczegóły znajdziesz w pliku LICENSE.
- Geokodowanie: OpenStreetMap Nominatim
- Dane pogodowe: MET Norway (api.met.no)
- Stworzone przez Greg — PotegaIT
- YouTube: @PotegaIT