Skip to content

Latest commit

ย 

History

History
64 lines (40 loc) ยท 1.19 KB

File metadata and controls

64 lines (40 loc) ยท 1.19 KB

๐ŸŒค๏ธ 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:

pip install requests pillow

๐Ÿ”‘ Setup API Key

  1. Go to OpenWeatherMap and create a free account.
  2. Get your API key.
  3. Open main.py and replace:
API_KEY = "your_openweathermap_api_key"

with your actual API key.


โ–ถ๏ธ Run the App

python main.py

๐Ÿ“ธ Screenshot

App Screenshot


๐Ÿ™Œ Author

Made with โค๏ธ by Mostafa Baghi