diff --git a/src/WebApi_powerlimiter.cpp b/src/WebApi_powerlimiter.cpp index 295bf9ed3..75657bb8f 100644 --- a/src/WebApi_powerlimiter.cpp +++ b/src/WebApi_powerlimiter.cpp @@ -65,7 +65,7 @@ void WebApiPowerLimiterClass::onMetaData(AsyncWebServerRequest* request) obj["poll_enable_night"] = config.Inverter[i].Poll_Enable_Night; obj["command_enable"] = config.Inverter[i].Command_Enable; obj["command_enable_night"] = config.Inverter[i].Command_Enable_Night; - + obj["max_power"] = inv->DevInfo()->getMaxPower(); // okay if zero/unknown obj["type"] = inv->typeName(); auto channels = inv->Statistics()->getChannelsByType(TYPE_DC); obj["channels"] = channels.size(); diff --git a/webapp/src/types/PowerLimiterConfig.ts b/webapp/src/types/PowerLimiterConfig.ts index 1903eba63..a2189ec50 100644 --- a/webapp/src/types/PowerLimiterConfig.ts +++ b/webapp/src/types/PowerLimiterConfig.ts @@ -6,6 +6,7 @@ export interface PowerLimiterInverterInfo { poll_enable_night: boolean; command_enable: boolean; command_enable_night: boolean; + max_power: number; type: string; channels: number; } diff --git a/webapp/src/views/PowerLimiterAdminView.vue b/webapp/src/views/PowerLimiterAdminView.vue index 02fb6f70e..5e0402ca5 100644 --- a/webapp/src/views/PowerLimiterAdminView.vue +++ b/webapp/src/views/PowerLimiterAdminView.vue @@ -53,7 +53,7 @@ /> -