weather: naming the member varables as the keywords from json request

So it's easier to add some new stuff as i think.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 34e4240873
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-22 (Fri, 22 Mar 2019)

Origin message was:
------------------
- weather: naming the member varables as the keywords from json request

So it's easier to add some new stuff as i think.


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-03-22 14:25:15 +01:00
parent c24e9ffcc4
commit 1f99f18dce
3 changed files with 50 additions and 39 deletions

View File

@@ -1029,16 +1029,16 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
int forecast = 1; // days for forecast
std::string wtemp = CWeather::getInstance()->getActTemp();
std::string wtemp = CWeather::getInstance()->getCurrentTemperature();
for (int i = 0; i < 1 + forecast; i++)
wtemp += "\n" + CWeather::getInstance()->getForecastTemp(i);
wtemp += "\n" + CWeather::getInstance()->getForecastTemperatureMax(i);
if (m_wtemp.compare(wtemp))
{
WriteFile(WEATHER_TEMP, wtemp);
m_wtemp = wtemp;
}
std::string wicon = CWeather::getInstance()->getActIcon();
std::string wicon = CWeather::getInstance()->getCurrentIcon();
for (int i = 0; i < 1 + forecast; i++)
wicon += "\n" + CWeather::getInstance()->getForecastIcon(i);
if (m_wicon.compare(wicon))