added peraccl, valve2, valve2, HV, boiler, and ionizer to the output data.txt
This commit is contained in:
parent
2ccaff73e5
commit
7c2f868749
|
@ -36,5 +36,34 @@ while True:
|
||||||
with open(outFile, "w") as file:
|
with open(outFile, "w") as file:
|
||||||
for key, value in format_value.items():
|
for key, value in format_value.items():
|
||||||
file.write(f"{key} value={value}\n")
|
file.write(f"{key} value={value}\n")
|
||||||
|
if key == "State" :
|
||||||
|
if value == "0" or value == "1":
|
||||||
|
file.write(f"preaccl value=1\n")
|
||||||
|
file.write(f"valve1 value=1\n")
|
||||||
|
file.write(f"valve2 value=1\n")
|
||||||
|
file.write(f"hv value=1\n")
|
||||||
|
file.write(f"boiler value=1\n")
|
||||||
|
file.write(f"ion value=1\n")
|
||||||
|
if value == "2":
|
||||||
|
file.write(f"preaccl value=0\n")
|
||||||
|
file.write(f"valve1 value=1\n")
|
||||||
|
file.write(f"valve2 value=1\n")
|
||||||
|
file.write(f"hv value=0\n")
|
||||||
|
file.write(f"boiler value=1\n")
|
||||||
|
file.write(f"ion value=1\n")
|
||||||
|
if value == "3":
|
||||||
|
file.write(f"preaccl value=0\n")
|
||||||
|
file.write(f"valve1 value=0\n")
|
||||||
|
file.write(f"valve2 value=0\n")
|
||||||
|
file.write(f"hv value=0\n")
|
||||||
|
file.write(f"boiler value=1\n")
|
||||||
|
file.write(f"ion value=0\n")
|
||||||
|
if value == "4":
|
||||||
|
file.write(f"preaccl value=0\n")
|
||||||
|
file.write(f"valve1 value=0\n")
|
||||||
|
file.write(f"valve2 value=0\n")
|
||||||
|
file.write(f"hv value=0\n")
|
||||||
|
file.write(f"boiler value=0\n")
|
||||||
|
file.write(f"ion value=0\n")
|
||||||
|
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user