To use the weather display, plug the QT Py ESP32-S2 into a USB-C cable to power it. After connecting to your SSID / WiFi, the QT Py will make a request to the Open-Meteo API and display the current weather condition sprite and the current temperature.
As the incoming data changes from the API, the displayed sprite and temperature reading will update. Additionally, the sprite will change depending on the time of day as each sprite has a daytime and nighttime version.
Open-Meteo uses latitude and longitude to pinpoint your location's weather. You can update these values to match your location at the top of the code.py file.
You can use Google Maps to find the latitude and longitude of your location. Search your location and then right-click on the map. The latitude and longitude will appear in a pop-up window on the screen.
You can customize the Open-Meteo API request by changing the parameters in the URL. Open-Meteo has documentation and a URL builder to track various pieces of weather data.
Text editor powered by tinymce.