add forecast weekdays to timestamp

Origin commit data
------------------
Commit: c5302966ba
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)
This commit is contained in:
vanhofen
2019-03-28 20:51:41 +01:00
parent 27fbc85d15
commit b2fe46f79f

View File

@@ -1031,15 +1031,19 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
m_wcity = wcity;
}
int forecast = CWeather::getInstance()->getForecastSize();
std::string wtimestamp = to_string((int)CWeather::getInstance()->getCurrentTimestamp());
for (int i = 0; i < forecast; i++) // 0 is current day
{
wtimestamp += "\n" + CWeather::getInstance()->getForecastWeekday(i);
}
if (m_wtimestamp.compare(wtimestamp))
{
WriteFile(WEATHER_TIMESTAMP, wtimestamp);
m_wtimestamp = wtimestamp;
}
int forecast = CWeather::getInstance()->getForecastSize();
std::string wtemp = CWeather::getInstance()->getCurrentTemperature();
for (int i = 0; i < forecast; i++) // 0 is current day
{