https://github.com/mostafabaghi/python-weather-app
🌤️ Python Weather App — A beautiful and responsive desktop weather application built with Python that fetches real-time weather data for a default location (e.g., Iraq/Karbala) and displays it with a clean, graphical interface.
https://github.com/mostafabaghi/python-weather-app
api-integration climate desktop-app graphical-interface gui karbala location-based offline-ui openweathermap python real-time-weather tkinter weather weather-app weather-forecast
Last synced: 29 days ago
JSON representation
🌤️ Python Weather App — A beautiful and responsive desktop weather application built with Python that fetches real-time weather data for a default location (e.g., Iraq/Karbala) and displays it with a clean, graphical interface.
- Host: GitHub
- URL: https://github.com/mostafabaghi/python-weather-app
- Owner: mostafabaghi
- License: mit
- Created: 2025-06-06T22:23:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-06T22:33:19.000Z (about 1 year ago)
- Last Synced: 2025-06-06T23:27:21.273Z (about 1 year ago)
- Topics: api-integration, climate, desktop-app, graphical-interface, gui, karbala, location-based, offline-ui, openweathermap, python, real-time-weather, tkinter, weather, weather-app, weather-forecast
- Language: Python
- Homepage: https://mostafabaghi.com/
- Size: 137 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌤️ Python Weather App
A simple and beautiful desktop weather application built with Python and Tkinter.
It fetches real-time weather data from **OpenWeatherMap** for a default location (🇮🇶 Karbala, Iraq) and presents it with a clean and graphical user interface.
---
## ✨ Features
- 📍 Default weather info for Karbala, Iraq
- 🌡️ Real-time temperature and description
- 🌄 Weather icons (auto-loaded from OpenWeatherMap)
- 🔄 Refresh button to update data instantly
- 🎨 Clean, minimal, and responsive UI
- ✅ No database required — works out of the box
---
## 🛠️ Requirements
- Python 3.x
- `requests` module
- `Pillow` module (for image processing)
Install dependencies:
```bash
pip install requests pillow
```
---
## 🔑 Setup API Key
1. Go to [OpenWeatherMap](https://openweathermap.org/api) and create a free account.
2. Get your API key.
3. Open `main.py` and replace:
```python
API_KEY = "your_openweathermap_api_key"
```
with your actual API key.
---
## ▶️ Run the App
```bash
python main.py
```
---
## 📸 Screenshot

---
## 🙌 Author
Made with ❤️ by [Mostafa Baghi](https://github.com/mostafabaghi)