Feature: Add configured max irradiation to live data api
This commit is contained in:
parent
7d90937d0f
commit
1df8285833
@ -147,6 +147,7 @@ void WebApiWsLiveClass::generateJsonResponse(JsonVariant& root)
|
|||||||
addField(chanTypeObj, i, inv, t, c, FLD_EFF);
|
addField(chanTypeObj, i, inv, t, c, FLD_EFF);
|
||||||
if (t == TYPE_DC && inv->Statistics()->getStringMaxPower(c) > 0) {
|
if (t == TYPE_DC && inv->Statistics()->getStringMaxPower(c) > 0) {
|
||||||
addField(chanTypeObj, i, inv, t, c, FLD_IRR);
|
addField(chanTypeObj, i, inv, t, c, FLD_IRR);
|
||||||
|
chanTypeObj[String(c)][inv->Statistics()->getChannelFieldName(t, c, FLD_IRR)]["max"] = inv->Statistics()->getStringMaxPower(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user