12.04.2022, 08:49
Hi, I have this script, but 200 rooms. What will the script look like when it is based on finding room number. 1 script for all my rooms?
Instead of 200 scripts. The room number is 1.203 in this case.
XXXXX_XZXX - XXX.XXX-SQXXX-room_Setpoint_XXX this line can be different..
433011_XZ30 - 360.004-SQ401-1.203_Setpoint_mp4
Comp_max_input1 = grp.getvalue('1.203-SX601_Cooling_C')
Comp_max_input2 = grp.getvalue('1.203-RB601_SQ_C')
Comp_max_output = '433011_XZ30 - 360.004-SQ401-1.203_Setpoint_mp4'
maxout = math.max(Comp_max_input1,Comp_max_input2)
grp.checkwrite(Comp_max_output, maxout)
Instead of 200 scripts. The room number is 1.203 in this case.
XXXXX_XZXX - XXX.XXX-SQXXX-room_Setpoint_XXX this line can be different..
433011_XZ30 - 360.004-SQ401-1.203_Setpoint_mp4
Comp_max_input1 = grp.getvalue('1.203-SX601_Cooling_C')
Comp_max_input2 = grp.getvalue('1.203-RB601_SQ_C')
Comp_max_output = '433011_XZ30 - 360.004-SQ401-1.203_Setpoint_mp4'
maxout = math.max(Comp_max_input1,Comp_max_input2)
grp.checkwrite(Comp_max_output, maxout)