Hi,
I have a sensor that returns a value ("J99" power consumption).
I would like that in hstouch appear the "powerOK" value:
dim power
power =hs.DeviceValue("J99")
if power < 46 then
powerOK =-275.3+(35.68*power)-(1.334*power^2)+(0.01727*power^3)
end if
if power >= 46 then
powerOK =22.53+(4.247*power)-(0.002338*power^2)+(0.000006*power^3)
end if
How can I integrate this script directly in hstouch?
I'd like to see the "powerOK" value in real time on the hstouch screen without having to trigger the script every second (realtime)
Thanks a lot
Cris
I have a sensor that returns a value ("J99" power consumption).
I would like that in hstouch appear the "powerOK" value:
dim power
power =hs.DeviceValue("J99")
if power < 46 then
powerOK =-275.3+(35.68*power)-(1.334*power^2)+(0.01727*power^3)
end if
if power >= 46 then
powerOK =22.53+(4.247*power)-(0.002338*power^2)+(0.000006*power^3)
end if
How can I integrate this script directly in hstouch?
I'd like to see the "powerOK" value in real time on the hstouch screen without having to trigger the script every second (realtime)
Thanks a lot
Cris
Comment