This is a desktop weather application that I built using Python.
The app shows real-time weather information for cities across Maharashtra using data from OpenWeatherMap, along with a clean UI and dynamic background images that change based on the current weather.
I focused on keeping the project simple, well-structured, and easy to understand while still looking presentable.
- Shows current temperature and weather condition
- Displays “feels like” temperature
- Changes background image based on weather (clear, rain, clouds, fog, etc.)
- Allows selecting Maharashtra cities using a dropdown or manual input
- Fetches real-time data from OpenWeatherMap
- Runs as a desktop application using Tkinter
git clone <your-repo-link>
cd maharashtra-weather-apppip install -r requirements.txtThis project uses a local configuration file that is not tracked by Git.
- Create a new file named
config.pyby copying the example file:
# Windows
copy config.example.py config.py
# macOS / Linux
cp config.example.py config.py- Open config.py and add your OpenWeatherMap API key:
OPENWEATHER_API_KEY = "YOUR_API_KEY_HERE"python main.py- Python 3
- Tkinter for the user interface
- Pillow (PIL) for image handling
- OpenWeatherMap API for weather data
- Threading for smoother UI updates
config.example.pyis included in the repository as a reference template.config.pyis intentionally ignored using.gitignore.- Each user must create their own
config.pywith a valid API key.
A valid API key is required to fetch weather data
Without an API key, the app will run but weather data will not load
Background images are stored locally inside the assets/ folder
The application supports major cities across Maharashtra, including Mumbai, Pune, Nagpur, Nashik, Aurangabad, Kolhapur, Solapur, and more.
Built by Aayush
Weather data provided by OpenWeatherMap


