From 1df82858338a2cdf1f4f2c8d4e17bc59e7fb247f Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 4 Sep 2023 19:53:33 +0200 Subject: [PATCH] Feature: Add configured max irradiation to live data api --- src/WebApi_ws_live.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebApi_ws_live.cpp b/src/WebApi_ws_live.cpp index 14859a4e..7224de84 100644 --- a/src/WebApi_ws_live.cpp +++ b/src/WebApi_ws_live.cpp @@ -147,6 +147,7 @@ void WebApiWsLiveClass::generateJsonResponse(JsonVariant& root) addField(chanTypeObj, i, inv, t, c, FLD_EFF); if (t == TYPE_DC && inv->Statistics()->getStringMaxPower(c) > 0) { addField(chanTypeObj, i, inv, t, c, FLD_IRR); + chanTypeObj[String(c)][inv->Statistics()->getChannelFieldName(t, c, FLD_IRR)]["max"] = inv->Statistics()->getStringMaxPower(c); } } }