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:
+2
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user