Display efficiency measuremnt for Huawei AC charger in % in web interface
This commit is contained in:
parent
b833d5ab52
commit
b159c31258
@ -50,7 +50,7 @@ void WebApiHuaweiClass::getJsonData(JsonObject& root) {
|
|||||||
root[F("input_temp")]["u"] = "°C";
|
root[F("input_temp")]["u"] = "°C";
|
||||||
root[F("output_temp")]["v"] = rp->output_temp;
|
root[F("output_temp")]["v"] = rp->output_temp;
|
||||||
root[F("output_temp")]["u"] = "°C";
|
root[F("output_temp")]["u"] = "°C";
|
||||||
root[F("efficiency")]["v"] = rp->efficiency;
|
root[F("efficiency")]["v"] = rp->efficiency * 100;
|
||||||
root[F("efficiency")]["u"] = "%";
|
root[F("efficiency")]["u"] = "%";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,7 +96,7 @@ void WebApiWsHuaweiLiveClass::generateJsonResponse(JsonVariant& root)
|
|||||||
root[F("input_temp")]["u"] = "°C";
|
root[F("input_temp")]["u"] = "°C";
|
||||||
root[F("output_temp")]["v"] = rp->output_temp;
|
root[F("output_temp")]["v"] = rp->output_temp;
|
||||||
root[F("output_temp")]["u"] = "°C";
|
root[F("output_temp")]["u"] = "°C";
|
||||||
root[F("efficiency")]["v"] = rp->efficiency;
|
root[F("efficiency")]["v"] = rp->efficiency * 100;
|
||||||
root[F("efficiency")]["u"] = "%";
|
root[F("efficiency")]["u"] = "%";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,7 +70,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">{{ $t('huawei.efficiency') }}</th>
|
<th scope="row">{{ $t('huawei.efficiency') }}</th>
|
||||||
<td style="text-align: right">{{ huaweiData.efficiency.v.toFixed(3) }}</td>
|
<td style="text-align: right">{{ huaweiData.efficiency.v.toFixed(1) }}</td>
|
||||||
<td>{{ huaweiData.efficiency.u }}</td>
|
<td>{{ huaweiData.efficiency.u }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user