Skip to content

Commit 61fa30a

Browse files
committed
fix change settings at no history modus
1 parent 0a6af2a commit 61fa30a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

edge/DSMRindex.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ function UpdateDash()
538538
document.getElementById("f3").style.display = "inline-block";
539539
document.getElementById("v3").style.display = "inline-block";
540540
}
541-
gauge3f.options.title.text = TotalAmps.toFixed(2) + " A";
541+
gauge3f.options.title.text = Number(TotalAmps).toFixed(2) + " A";
542542
gauge3f.update();
543543

544544
//update actuele vermogen
@@ -2147,7 +2147,7 @@ function handle_menu_click()
21472147
{
21482148
for(var i in data)
21492149
{
2150-
if (i=="hist") continue;
2150+
if ( (i=="hist") || ( document.getElementById("setFld_"+i) == null) ) continue;
21512151
var fldId = i;
21522152
var newVal = document.getElementById("setFld_"+fldId).value;
21532153
if (data[i].value != newVal)
@@ -2703,7 +2703,14 @@ function handle_menu_click()
27032703
,[ "Fuse", "Wat is de waarde van de hoofdzekering(en)" ]
27042704
,[ "cdn", "Frontend html/css uit de cloud" ]
27052705
,[ "GasAvailable", "Gasmeter beschikbaar? <br>[True = geen check op basis van meterdata]<br>[False = wel checken]"]
2706-
,[ "water", "Watermeter"]
2706+
,[ "water", "Watersensor aanwezig"]
2707+
,[ "water_enabl", "Watersensor aanwezig"]
2708+
,[ "led", "LED aan"]
2709+
,[ "ha_disc_enabl", "HA Auto discovery"]
2710+
,[ "ota_url", "Update url (zonder http://)"]
2711+
,[ "hist", "Metergegevens lokaal opslaan"]
2712+
,[ "auto_update", "Automatisch updaten"]
2713+
,[ "pre40", "SMR 2 & 3 support"]
27072714
];
27082715

27092716
/*

0 commit comments

Comments
 (0)