diff --git a/src/WebApi_ws_live.cpp b/src/WebApi_ws_live.cpp index cc5e0bf..91dc62c 100644 --- a/src/WebApi_ws_live.cpp +++ b/src/WebApi_ws_live.cpp @@ -102,6 +102,12 @@ void WebApiWsLiveClass::generateJsonResponse(JsonVariant& root) // Loop all channels for (uint8_t c = 0; c <= inv->Statistics()->getChannelCount(); c++) { + if (c > 0) { + INVERTER_CONFIG_T* inv_cfg = Configuration.getInverterConfig(inv->serial()); + if (inv_cfg != nullptr) { + invObject[String(c)][F("name")]["u"] = inv_cfg->channel[c - 1].Name; + } + } addField(invObject, i, inv, c, FLD_PAC); addField(invObject, i, inv, c, FLD_UAC); addField(invObject, i, inv, c, FLD_IAC); diff --git a/webapp/src/components/InverterChannelInfo.vue b/webapp/src/components/InverterChannelInfo.vue index e1144da..dc27791 100644 --- a/webapp/src/components/InverterChannelInfo.vue +++ b/webapp/src/components/InverterChannelInfo.vue @@ -1,6 +1,9 @@