From 34d8584c56f3f91b1faf11849dd0a5718eb1cbcd Mon Sep 17 00:00:00 2001
From: "de@itstall.de" <de@itstall.de>
Date: Wed, 29 Jan 2020 20:53:58 +0100
Subject: [PATCH] forecast is delivered to frontend

---
 dbSqlite.h | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dbSqlite.h b/dbSqlite.h
index b4435b4..6bb7667 100644
--- a/dbSqlite.h
+++ b/dbSqlite.h
@@ -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;
-- 
GitLab