diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 4ab4d06..afe8f10 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -640,6 +640,7 @@ weatherData Watchy::getWeatherData(String cityID, String units, String lang, int(responseObject["weather"][0]["id"]); currentWeather.weatherDescription = JSONVar::stringify(responseObject["weather"][0]["main"]); + currentWeather.external = true; // sync NTP during weather API call and use timezone of city gmtOffset = int(responseObject["timezone"]); syncNTP(gmtOffset); @@ -657,6 +658,7 @@ weatherData Watchy::getWeatherData(String cityID, String units, String lang, } currentWeather.temperature = temperature; currentWeather.weatherConditionCode = 800; + currentWeather.external = false; } weatherIntervalCounter = 0; } else { diff --git a/src/Watchy.h b/src/Watchy.h index 77cc5e2..fb90286 100644 --- a/src/Watchy.h +++ b/src/Watchy.h @@ -22,6 +22,7 @@ typedef struct weatherData { int16_t weatherConditionCode; bool isMetric; String weatherDescription; + bool external; } weatherData; typedef struct watchySettings {