X-Git-Url: https://git.rvb.name/esp-clock.git/blobdiff_plain/dab14a20e37e760a82b72f50f765caa26fff556e..e6a4483ee334f8a5879b55ecc8da6255ad565d41:/weather.cpp?ds=sidebyside diff --git a/weather.cpp b/weather.cpp index 999f35c..dc11706 100644 --- a/weather.cpp +++ b/weather.cpp @@ -89,6 +89,7 @@ void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState) { Serial.print(F("Ошибка разбора ответа: ")); Serial.println(error.c_str()); Serial.println(weather_json); + reportMessage(F("Ошибка обновления погоды")); return; } weather.clear(); @@ -97,6 +98,7 @@ void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState) { delete current_weather; processTemplates(weatherData,weather_template,weather,255); sendWeather(); + reportMessage(F("Погода обновлена")); scroll(weatherData, !isNight()); } }