This is yet another OpenWeatherMap app for UNO R4 WiFi and ESP32.
Inspired by the cool screen design of OpenWeahter by Bodmer, the creator of TFT_eSPI, I migrated it for my UNO R4 WiFi.
- moononournation/Arduino_GFX v1.6.5
| Package | Version |
|---|---|
| Board Platform | Arduino UNO R4 Boards by Arduino 1.5.3 |
| NTP Client | NTPClient 3.2.1 |
| HTTP Client (optional) | ArduinoHttpClient 0.6.1 |
| Package | Version |
|---|---|
| Board Platform | esp32 by Espressif Systems 3.3.8 |
-
Open
config.hand and configure the following:Item Configuration Parameters OpenWeather API LANGUAGE,LATITUDEandLONGITUDETimezone TIMEZONE_OFFSET(for UNO R4 WiFi) orTIMEZONE_STRING(for ESP32)Screen Rotation TFT_ROTATION(0,2: portrait / 1,3: landscape)SPI GPIO pins TFT_DC,TFT_MISO,TFT_MOSI, ... -
Create your
secrets.hfor WiFi credential and OpenWeather API key:#define SECRET_SSID "***** Your SSID *****" #define SECRET_PASS "***** Your password *****" #define API_KEY "***** your OpenWeather key *****"
-
Open
gfx.cppand modify the Arduino_GFX code to suit your LCD device:#if defined(ARDUINO_UNOR4_WIFI) Arduino_DataBus *bus = new Arduino_HWSPI(TFT_DC, TFT_CS); Arduino_GFX *tft = new Arduino_ILI9341(bus, TFT_RST); #else // ESP32 Arduino_DataBus *bus = new Arduino_HWSPI(TFT_DC, TFT_CS, TFT_SCLK, TFT_MOSI, TFT_MISO); Arduino_GFX *tft = new Arduino_ILI9341(bus, TFT_RST); #endif #define SPI_FREQ 40000000 // or 80000000
-
Experimental Feature
Symbol Default USE_SECURE_CLIENTtrueUSE_HTTP_CLIENTfalseDESERIALIZATION_TYPETYPE_RAW_STREAM
- Fix the day of the week from 21:00 through midnight.
- Display progress on the opening splash screen.
- Make weather icons multi-colorizing.
- Verify Daylight Saving Time operation.
- Supress debug printing to the Serial Monitor.
I would like to express my gratitude to the creators of these cool icon fonts:
- kickstandapps/WeatherIcons licensed under the SIL OPEN FONT LICENSE Version 1.1.
- erikflowers/weather-icons licensed under the SIL OPEN FONT LICENSE Version 1.1.
