1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

more formatters for UI

This commit is contained in:
andreas
2021-11-06 20:57:20 +01:00
parent ecad013d09
commit 1e09112e76
3 changed files with 76 additions and 47 deletions

View File

@@ -405,6 +405,8 @@
formatWind: function(v){let x=parseFloat(v); return x.toFixed(0);},
mtr2nm: function(v){let x=parseFloat(v); return x.toFixed(2);},
kelvinToC: function(v){let x=parseFloat(v); return x.toFixed(0);},
formatFixed0: function(v){let x=parseFloat(v); return x.toFixed(0);},
formatDepth: function(v){let x=parseFloat(v); return x.toFixed(1);},
}
function updateDashboard(data){
for (let n in data){