diff --git a/web/app.js b/web/app.js index 569bb14..9cc9d14 100644 --- a/web/app.js +++ b/web/app.js @@ -32,6 +32,7 @@ let initialPowerSync = true; let initialSpeedSync = true; let initialHeatrateSync = true; let initialTempSollSync = true; +let initialPotTempSync = true; let ambientTemp = null; let warpFactor = 1.0; @@ -702,6 +703,10 @@ function onSystemChanged(msg) { if (document.activeElement !== document.getElementById('ambient-temp')) { document.getElementById('ambient-temp').value = msg.AmbientTemp; } + if (initialPotTempSync) { + document.getElementById('pot-temp').value = msg.AmbientTemp; + initialPotTempSync = false; + } updateEnvStatusLine(); } if ('WarpFactor' in msg) { @@ -755,6 +760,7 @@ function connect() { initialSpeedSync = true; initialHeatrateSync = true; initialTempSollSync = true; + initialPotTempSync = true; setConnected(true); for (const channel of CHANNELS) { ws.send(JSON.stringify({'+': channel}));