Added fetch on boot
This commit is contained in:
parent
ddf764b658
commit
67fda7c395
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user