Script help

Charlie Pendleton charlie at pendletonweb.com
Thu Apr 2 13:30:09 EDT 2020


Howdy,

I am using James’ 1-wire interface to measure temperature in a server rack.

In the rack there are multiple fans that I have split off to run off of two
relays; one would turn on at one temperature, and both relays on at a
higher temperature.

I can get the on part working fine in the following script. Where do I tell
the relay-3 fan to turn off when the temp drops below it’s threshold and
both off once it is below the lower temperature?

And if there is a cleaner way to do the whole she-bang, please let me know
that as well.

TIA,
Charlie-

if (value of (thisUnit)) is greater than 76 then

turnon "Barix-50: Relay-2"

end if

if (value of (thisUnit)) is greater than 85 then

turnon "Barix-50: Relay-2"

turnon "Barix-50: Relay-3"

end if
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20200402/eee67aaf/attachment.html>


More information about the XTensionList mailing list