A sleek, modern desktop weather application built with Python and PyQt5. This app provides real-time weather data, including temperature, humidity, and wind speed, using a beautiful dark-mode interface with smooth gradients and glassmorphism effects.
- Real-time Data: Fetches live weather information from the OpenWeatherMap API.
- Detailed Metrics: Displays temperature (Celsius), humidity (%), and wind speed (m/s).
- Dynamic Icons: Changes weather emojis (βοΈ, βοΈ, π§οΈ, βοΈ, etc.) based on the specific weather condition ID.
- Modern UI: Features a custom CSS-styled interface with a gradient background and hover effects.
- Robust Error Handling: Specific feedback for "City Not Found," connection issues, and invalid API requests.
- Scrollable Content: Responsive layout using
QScrollAreafor a clean look on all screen sizes.
- Clone the repository:
git clone [https://github.com/ali-faraz-py/python-weather-app.git](https://github.com/ali-faraz-py/python-weather-app.git) cd python-weather-app
Install dependencies:
pip install -r requirements.txtRun the application:
python weatherapp.pypython-weather-app/
βββ weatherapp.py # Main Python logic & PyQt5 Layout
βββ weatherapp.css # Custom styling & glassmorphism theme
βββ requirements.txt # Project dependencies
βββ README.md # Project documentation
βββ assets/ # App screenshots and demo GIF
PyQt5 - The GUI framework for the desktop experience.
Requests - For handling API communication.
OpenWeatherMap API - Source for global real-time weather data.
Custom QSS - For the modern "Slate & Sky" theme.
Syed Ali Faraz - https://github.com/ali-faraz-py
If this project helped you learn PyQt5, please give it a β!
