mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-18 05:35:25 +00:00
Show current export price in export gauge
This commit is contained in:
@@ -516,6 +516,7 @@ void AmsWebServer::dataJson() {
|
||||
}
|
||||
|
||||
float price = ea->getPriceForHour(PRICE_DIRECTION_IMPORT, 0);
|
||||
float exportPrice = ea->getPriceForHour(PRICE_DIRECTION_EXPORT, 0);
|
||||
|
||||
String peaks = "";
|
||||
for(uint8_t i = 1; i <= ea->getConfig()->hours; i++) {
|
||||
@@ -569,6 +570,7 @@ void AmsWebServer::dataJson() {
|
||||
mqttStatus,
|
||||
mqttHandler == NULL ? 0 : (int) mqttHandler->lastError(),
|
||||
price == PRICE_NO_VALUE ? "null" : String(price, 2).c_str(),
|
||||
exportPrice == PRICE_NO_VALUE ? "null" : String(exportPrice, 2).c_str(),
|
||||
meterState->getMeterType(),
|
||||
distributionSystem,
|
||||
ea->getMonthMax(),
|
||||
|
||||
Reference in New Issue
Block a user