A clean, modern desktop weather application built with PyQt5. This project fetches current weather data and 5-day forecasts using OpenWeatherMap's API. The app also features user authentication and themed GUI elements.
- GUI-based weather search by city name
- Current weather data: temperature, humidity, pressure, etc.
- 5-day forecast data with weather icons
- Dynamic backgrounds based on weather condition
- User login and registration with local database
- Custom icon themes and animations
- Designed for desktop use (Windows / Linux)
- Python 3.7 or higher
- PyQt5
- requests
- Clone the Repository Open your terminal or command prompt and run:
git clone https://github.com/Huerte/weather-forecast-pyqt5.git
cd weather-forecast-pyqt5- Create a Virtual Environment (Optional but recommended)
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows- Install Dependencies
pip install -r requirements.txt- Run the App
Navigate to the
srcdirectory and run:
cd src
python main.py- Use the App
- Start typing a city name to get real-time weather info.
- Sign up and log in to personalize the experience.
- Weather backgrounds and icons change based on the forecast.
- Error messages and loading animations are handled gracefully.
- OpenWeatherMap Current Weather API: https://openweathermap.org/current
- OpenWeatherMap 5 Day / 3 Hour Forecast API: https://openweathermap.org/forecast5
This project is licensed under the MIT License - see the LICENSE file for details.
