Pre-visualize the estimated Sud course in the Automatic tab
Adds a static forecast plot to the (previously empty) Automatic tab, showing the planned temperature course derived from a schedule's declared ramp rates and hold durations alone (no plant/controller model - just how long the schedule itself says each step takes). The client now requests the schedule via Download right after connecting, routing the reply to the forecast instead of a save dialog since sud_download_path is only set for the user-initiated download. SudTask also echoes the just-applied document back after a successful Upload, so editing the schedule refreshes the forecast without an extra round trip.
This commit is contained in:
@@ -74,6 +74,7 @@ class SudTask(ATask):
|
||||
elif 'Upload' in pair[0]:
|
||||
if self.sud.upload(pair[1]):
|
||||
await self.send({'Name': self.sud.name, 'Description': self.sud.description})
|
||||
await self.send({'Json': pair[1]})
|
||||
|
||||
async def send(self, data):
|
||||
await self.msg_handler.send(data)
|
||||
|
||||
Reference in New Issue
Block a user