mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
lcd4l: we need the forecast for current day
Origin commit data
------------------
Branch: ni/coolstream
Commit: 19c15755f6
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-23 (Sat, 23 Mar 2019)
Origin message was:
------------------
- lcd4l: we need the forecast for current day
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1041,7 +1041,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
int forecast = CWeather::getInstance()->getForecastSize();
|
int forecast = CWeather::getInstance()->getForecastSize();
|
||||||
|
|
||||||
std::string wtemp = CWeather::getInstance()->getCurrentTemperature();
|
std::string wtemp = CWeather::getInstance()->getCurrentTemperature();
|
||||||
for (int i = 1; i < forecast; i++) // 0 is current day
|
for (int i = 0; i < forecast; i++) // 0 is current day
|
||||||
{
|
{
|
||||||
wtemp += "\n" + CWeather::getInstance()->getForecastTemperatureMin(i);
|
wtemp += "\n" + CWeather::getInstance()->getForecastTemperatureMin(i);
|
||||||
wtemp += "|" + CWeather::getInstance()->getForecastTemperatureMax(i);
|
wtemp += "|" + CWeather::getInstance()->getForecastTemperatureMax(i);
|
||||||
@@ -1054,7 +1054,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
|
|
||||||
std::string wwind = CWeather::getInstance()->getCurrentWindSpeed();
|
std::string wwind = CWeather::getInstance()->getCurrentWindSpeed();
|
||||||
wwind += "|" + CWeather::getInstance()->getCurrentWindBearing();
|
wwind += "|" + CWeather::getInstance()->getCurrentWindBearing();
|
||||||
for (int i = 1; i < forecast; i++) // 0 is current day
|
for (int i = 0; i < forecast; i++) // 0 is current day
|
||||||
{
|
{
|
||||||
wwind += "\n" + CWeather::getInstance()->getForecastWindSpeed(i);
|
wwind += "\n" + CWeather::getInstance()->getForecastWindSpeed(i);
|
||||||
wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i);
|
wwind += "|" + CWeather::getInstance()->getForecastWindBearing(i);
|
||||||
|
Reference in New Issue
Block a user