mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
add forecast weekdays to timestamp
Origin commit data
------------------
Branch: ni/coolstream
Commit: c5302966ba
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-28 (Thu, 28 Mar 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user