From 67fda7c3956bcfb89afb4e7c03a33ac167d68f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Wed, 6 Nov 2024 21:28:36 +0100 Subject: [PATCH] Added fetch on boot --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ee9cf09..882672d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -317,13 +317,11 @@ void setup(void) { initSystems(); netman.start(); timeClient.begin(); - delay(500); - timeClient.setTimeOffset(3600); + fetchWeatherData(); } void loop() { timeClient.update(); - if (!is_display_off && (millis() - lastWeatherUpdate > weatherUpdateInterval)) { fetchWeatherData(); lastWeatherUpdate = millis();