- Heat rate is settable

- improved gui
This commit is contained in:
jens
2020-12-06 14:02:08 +01:00
parent a80cc2bf01
commit 69cc80354b
4 changed files with 2225 additions and 181 deletions
+10 -7
View File
@@ -145,13 +145,16 @@ class TcTask(ATask):
print ("Rate ist change to {}".format(value))
asyncio.create_task(self.send({'Ist': {'Rate': value}}))
async def recv(self, data):
print(data)
for pair in data.items():
if 'Soll' in pair[0]:
self.tc.set_theta_soll(pair[1])
elif 'Rate' in pair[0]:
self.tc.set_heatrate_soll(pair[1])
async def recv(self, msg):
print(msg)
for key in msg.keys():
if 'Soll' in key:
submsg = msg['Soll']
for subkey in submsg.keys():
if 'Temp' in subkey:
self.tc.set_theta_soll(submsg['Temp'])
if 'Rate' in subkey:
self.tc.set_heatrate_soll(submsg['Rate'])
async def send(self, data):
await self.msg_handler.send(data)