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

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

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-03-22 14:25:15 +01:00
committed by Thilo Graf
parent 68ff0bb553
commit e1ed034a9f
3 changed files with 50 additions and 39 deletions

View File

@@ -1066,16 +1066,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))