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.

multiple identical scripts
#1
I want to ask the opinion of the expert minds in source code ...

Sometimes we find ourselves in an installation that requires a large number of scripts and they are all the same, with the only difference that we only have to change the last numbers of the group address.

For this case it has occurred to me to do it like this, I have tried it and it works. I share it with you!


Code:
--ID Zone
i = 6

--Setpoint temperature control object
TC = '2/2/'.. i

--Fan speed control object AUTO MODE
FAN = '2/3/20'.. i

--COOL / HEAT mode thermostat status
Modo = '2/5/10'.. i

--ECO MODE control object
ECO = '3/5/'.. i

--Temperature object ECO MODE-COLD
TEC = '40/0/1'

--Temperature object ECO MODE-HEAT
TEH = '40/0/2'
Reply


Messages In This Thread
multiple identical scripts - by davidchispas - 19.02.2021, 09:01
RE: multiple identical scripts - by Daniel - 19.02.2021, 10:01
RE: multiple identical scripts - by admin - 19.02.2021, 10:05
RE: multiple identical scripts - by admin - 10.11.2022, 06:37
RE: multiple identical scripts - by admin - 10.11.2022, 12:49

Forum Jump: