ui: show water level and status line before any sud is loaded

Pot config (water_mass, volumen) sent in System message at startup.
app.js stores potConfig and uses it in updatePotVisualization/
updateStatusLine when sudEmpty, showing startup fill level and
"No schedule – N L water" without requiring a sud to be loaded first.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 19:53:54 +02:00
co-authored by Claude Sonnet 4.6
parent d0a137e39e
commit e7824dc297
4 changed files with 29 additions and 8 deletions
+2 -1
View File
@@ -164,7 +164,8 @@ if __name__ == '__main__':
msg_system = dispatcher.msgio_get("System")
async def send_system_info():
await msg_system.send({'AmbientTemp': theta_amb, 'WarpFactor': DT / DT_TASK, 'PlantSim': plant_sim})
await msg_system.send({'AmbientTemp': theta_amb, 'WarpFactor': DT / DT_TASK, 'PlantSim': plant_sim,
'Pot': config.get('Pot', {})})
asyncio.ensure_future(send_system_info())
async def on_system_recv(data):