Here are my results:
First I manually changed the numeric value to select different weather images and they all worked and displayed as expected when the WiFi part of the code was commented out in setup();
This was the serial monitor output:
Building in debug mode
Serial Monitor Output WITHOUT WiFi code in setup(); i.e. COMMENTED OUT
--- Terminal on COM3 | 115200 8-N-1
--- Available filters and text transformations: debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
#0 0x40080400 in _init at ??:?
entry 0x400805e4
LVGL Library Version: 9.5.0
Not connected to Wi-Fi
Not connected to Wi-Fi
Building in debug mode
Serial Monitor Output WITH WiFi code in setup();
// Connect to Wi-Fi
WiFi.begin(ssid, password);
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
This is the actual serial monitor output:
--- Terminal on COM3 | 115200 8-N-1
--- Available filters and text transformations: debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
#0 0x40080400 in _init at ??:?
entry 0x400805e4
LVGL Library Version: 9.5.0
Connecting.
Connected to Wi-Fi network with IP Address: ***.***.*.***
Request information:
{"latitude":53.5,"longitude":-2.5,"generationtime_ms":0.22220611572265625,"utc_offset_seconds":0,"timezone":"GMT","timezone_abbreviation":"GMT","elevation":46.0,"current_units":{"time":"iso8601","interval":"seconds","temperature_2m":"°C","relative_humidity_2m":"%","is_day":"","precipitation":"mm","rain":"mm","weather_code":"wmo code"},"current":{"time":"2026-06-28T07:00","interval":900,"temperature_2m":17.9,"relative_humidity_2m":74,"is_day":1,"precipitation":0.00,"rain":0.00,"weather_code":3}}
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4008a003 PS : 0x00060130 A0 : 0x8012a2e7 A1 : 0x3ffb1e40
#0 0x4008a003 in memmove at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/string/memmove.c:75
A2 : 0x3ffc7c3c A3 : 0x00000000 A4 : 0x00000001 A5 : 0x3ffbdb8c
#0 0x3ffc7c3c in ?? at src/main.cpp:44
A6 : 0x00000019 A7 : 0x1fffffff A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000001 A11 : 0x3ffb206c A12 : 0x00000190 A13 : 0x0000000a
A14 : 0x00000000 A15 : 0x0000007b SAR : 0x0000001d EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4008ab69 LEND : 0x4008ab79 LCOUNT : 0xfffffffc
Backtrace: 0x4008a000:0x3ffb1e40 0x4012a2e4:0x3ffb1e60 0x4012a40a:0x3ffb1e80 0x400d6515:0x3ffb1ea0 0x400d8469:0x3ffb21d0 0x400d8973:0x3ffb2220 0x4012c50e:0x3ffb2290
#0 0x4008a000 in memmove at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/string/memmove.c:66
#1 0x4012a2e4 in String::move(String&) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:237
#2 0x4012a40a in String::operator=(String&&) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:277
#3 0x400d6515 in get_weather_data() at src/main.cpp:108 (discriminator 7)
#4 0x400d8469 in lv_create_main_gui() at src/main.cpp:286
#5 0x400d8973 in setup() at src/main.cpp:377
#6 0x4012c50e in loopTask(void*) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
ELF file SHA256: 763b8b2545f022e3
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
#0 0x40080400 in _init at ??:?
entry 0x400805e4
LVGL Library Version: 9.5.0
Connecting..
Connected to Wi-Fi network with IP Address: ***.***.*.***
Request information:
{"latitude":53.5,"longitude":-2.5,"generationtime_ms":0.29456615447998047,"utc_offset_seconds":0,"timezone":"GMT","timezone_abbreviation":"GMT","elevation":46.0,"current_units":{"time":"iso8601","interval":"seconds","temperature_2m":"°C","relative_humidity_2m":"%","is_day":"","precipitation":"mm","rain":"mm","weather_code":"wmo code"},"current":{"time":"2026-06-28T07:00","interval":900,"temperature_2m":17.9,"relative_humidity_2m":74,"is_day":1,"precipitation":0.00,"rain":0.00,"weather_code":3}}
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4008a003 PS : 0x00060130 A0 : 0x8012a2e7 A1 : 0x3ffb1e40
#0 0x4008a003 in memmove at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/string/memmove.c:75
A2 : 0x3ffc7c3c A3 : 0x00000000 A4 : 0x00000001 A5 : 0x3ffb1d50
#0 0x3ffc7c3c in ?? at src/main.cpp:44
A6 : 0x00000001 A7 : 0x3ffb0320 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000001 A11 : 0x00000001 A12 : 0x80000020 A13 : 0x00000007
A14 : 0x00000005 A15 : 0x00000001 SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4008ab69 LEND : 0x4008ab79 LCOUNT : 0xfffffffc
Backtrace: 0x4008a000:0x3ffb1e40 0x4012a2e4:0x3ffb1e60 0x4012a40a:0x3ffb1e80 0x400d6515:0x3ffb1ea0 0x400d8469:0x3ffb21d0 0x400d8973:0x3ffb2220 0x4012c50e:0x3ffb2290
#0 0x4008a000 in memmove at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/string/memmove.c:66
#1 0x4012a2e4 in String::move(String&) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:237
#2 0x4012a40a in String::operator=(String&&) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:277
#3 0x400d6515 in get_weather_data() at src/main.cpp:108 (discriminator 7)
#4 0x400d8469 in lv_create_main_gui() at src/main.cpp:286
#5 0x400d8973 in setup() at src/main.cpp:377
#6 0x4012c50e in loopTask(void*) at C:/Users/derek/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42
ELF file SHA256: 763b8b2545f022e3
Rebooting...
ets Jul 29 2019 12:21:46
Result is a flashing screen with image 65 (Rain Heavy Intensity…usual for NW England!) as board reboots.