Skip to content
Snippets Groups Projects
Commit 34d8584c authored by Dennis Eisold's avatar Dennis Eisold
Browse files

forecast is delivered to frontend

parent cd87ff41
No related branches found
No related tags found
No related merge requests found
......@@ -70,11 +70,7 @@ public:
jObj["sensors"][i++] = temp;
}
/*for (size_t i = 0; i < a.size(); ++i) {
std::cout << a[i];
}*/
/*for (int i = 0; i < vecForecast.size(); i++) {
for (int i = 0; i < vecForecast.size(); i++) {
jObj["forecast"][i]["plz"] = vecForecast[i].plz;
jObj["forecast"][i]["lngCode"] = vecForecast[i].lngCode;
jObj["forecast"][i]["sunrise"] = vecForecast[i].sunrise;
......@@ -95,7 +91,7 @@ public:
jObj["forecast"][i]["snow3h"] = vecForecast[i].snow3h;
jObj["forecast"][i]["icons"] = vecForecast[i].icons;
jObj["forecast"][i]["from"] = vecForecast[i].from;
}*/
}
jObj["current"]["plz"] = sWeather.plz;
jObj["current"]["lngCode"] = sWeather.lngCode;
jObj["current"]["sunrise"] = sWeather.sunrise;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment