- Python PySide6 GUI program using requests, OpenWeatherMap API, OpenWeatherMap Air Pollution API, and Nominatim from geopy.
- Includes current weather and AQI (Air Quality Index).
- The ui was built (and a lot of time was saved) using QT Designer.
- Air Quality Index is a separate API call from the OpenWeatherMap Air Pollution API.
- The lat and long retrieved from OpenWeatherMap is reverse geocoded from the name of the location using Nominatim from geopy.
- The reverse geocoding from geopy confirms that we have the weather for the right city.
- JSON sample response files used to build the program are in the json_response_files folder.
- A batch file is included for nuitka building to a Windows exe (nuitka_gui.bat)
- Install nuitka: pip install nuitka
I used the following book to get started with PySide6:
Create GUI Applications with Python & Qt6 (The hands-on guide to making apps with Python)
by Martin Fitzpatrick
- To run the program, go to openweathermap.org. Get a free API key.
- Edit weather_utils.py. Put in your OpenWeatherMap API key.
- 08/22/2021: Initial commit
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright (c) 2022 William A Loring