- Code: Select all
tell application "IndigoServer"
set myThermoDev to device "Thermostat"
set tempList to temperatures of myThermoDev
set curTemp to first item of tempList as real
set value of variable "curTemp" to first item of tempList as real
log "current temperature is " & curTemp
end tell
- Then create a time/date action that executes the script every 15 minutes.
- After you have created the foregoing applescript, you need to open the Variable List Window (in the "Window" menu) and add a new variable with the name "curTemp" and you can leave the value blank or put any random number in.
- Finally, on your control page create:
Display - Variable Value, For - curTemp
And that is it ...
http://www.humanovation.com