This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

1 script 200 Rooms
#1
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)
Reply


Messages In This Thread
1 script 200 Rooms - by Stuart2000 - 12.04.2022, 08:49
RE: 1 script 200 Rooms - by admin - 12.04.2022, 08:55
RE: 1 script 200 Rooms - by Stuart2000 - 12.04.2022, 09:05
RE: 1 script 200 Rooms - by admin - 12.04.2022, 09:17
RE: 1 script 200 Rooms - by Stuart2000 - 12.04.2022, 16:30
RE: 1 script 200 Rooms - by admin - 13.04.2022, 11:21
RE: 1 script 200 Rooms - by Stuart2000 - 19.04.2022, 06:03

Forum Jump: