Appreciate any help!
Thanks,
Carl
- Code: Select all
tell application "IndigoServer"
set theTemp to (value of variable "wsTemp_HotTub" as integer)
set timeNow to (value of variable "ClockTimeAmPm")
end tell
set theTime to ((95 - theTemp) / 10) * hours
set readyTime to time string of ((date timeNow) + theTime)
tell application "IndigoServer" to set the value of variable "HotTubReadyTime" to readyTime