July 2021
31
if ("ERR" in eeData[4] or float(eeData[4]) <= float(eeData[7])) or (float(eeData[4]) >= float(eeData[6])):
color_ = 'red'
self.RHVal.configure(foreground=color_)
self.RH.set(eeData[4])
self.RHSet.set(eeData[5])
self.RHMin.set(eeData[6])
self.RHMax.set(eeData[7])
color_ = 'black'
if ("ERR" in eeData[8] or float(eeData[8]) <= float(eeData[11])) or (float(eeData[8]) >= float(eeData[10])):
color_ = 'red'
self.CO2Val.configure(foreground=color_)
self.CO2.set(eeData[8])
self.CO2Set.set(eeData[9])
self.CO2Min.set(eeData[10])
self.CO2Max.set(eeData[11])
def updateStatus(self,rdr):
if "POWER-ON" in rdr.bodyStr or "RESET" in rdr.bodyStr:
self.powered.set("On")
rdr.tag = "resetRow"
elif "HIB" in rdr.bodyStr:
self.mode.set("Hibernate")
rdr.tag = "modeRow"
elif "RUN" in rdr.bodyStr:
self.mode.set("RUN")
rdr.tag = "modeRow"
elif "H2O2" in rdr.bodyStr:
self.mode.set("H2O2")
rdr.tag = "modeRow"
elif "DOOR" in rdr.bodyStr:
if "OPEN" in rdr.bodyStr:
self.doorStatus.set("Open")
else:
self.doorStatus.set("Closed")
elif "UV" in rdr.bodyStr:
if "ON" in rdr.bodyStr:
self.UV.set("ON")
else:
self.UV.set("OFF")
elif "RECOVERY" in rdr.bodyStr:
if "ON" in rdr.bodyStr:
self.Recovery.set("ON")
self.Alarm.set("MUTED")
else:
self.Recovery.set("OFF")
self.Alarm.set("???")
elif "DRYOUT" in rdr.bodyStr:
if "ON" in rdr.bodyStr:
self.Dryout.set("ON")
else:
self.Dryout.set("OFF")
elif "WATER LEVEL" in rdr.bodyStr:
if "OK" in rdr.bodyStr:
self.H2O.set("OK")
else:
self.H2O.set("LOW")
elif "ALARM" in rdr.bodyStr:
if "OFF" in self.Recovery.get():
self.Alarm.set("???")
else:
self.Alarm.set("ON")
Содержание ReCO2ver
Страница 8: ...July 2021 8 Figure 2 Data Packet Figure 3 Event Packet...
Страница 32: ...July 2021 32 Glossary...