From 2c8c49c75d8432bf34d29c1fe52db3d3295dbb8b Mon Sep 17 00:00:00 2001 From: you69man Date: Tue, 5 Dec 2023 18:51:04 +0100 Subject: [PATCH] fix decimal places for temperature value (issue #1251) --- src/web/html/visualization.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web/html/visualization.html b/src/web/html/visualization.html index d4ac1557..bff8b4e3 100644 --- a/src/web/html/visualization.html +++ b/src/web/html/visualization.html @@ -108,7 +108,6 @@ if(0 != obj.max_pwr) pwrLimit += ", " + Math.round(obj.max_pwr * obj.power_limit_read / 100) + "W"; } - return ml("div", {class: "row mt-2"}, ml("div", {class: "col"}, [ ml("div", {class: "p-2 " + clh}, @@ -123,7 +122,7 @@ ml("div", {class: "col a-c"}, ml("span", { class: "pointer", onclick: function() { getAjax("/api/inverter/alarm/" + obj.id, parseIvAlarm); }}, ("Alarms: " + obj.alarm_cnt))), - ml("div", {class: "col a-r mx-2 mx-md-1"}, String(obj.ch[0][5]) + t.innerText) + ml("div", {class: "col a-r mx-2 mx-md-1"}, String(obj.ch[0][5].toFixed(1)) + t.innerText) ]) ), ml("div", {class: "p-2 " + clbg}, [