Hi!
I'm trying to monitor my garage door.
I have a variable that is "DSC_Garage_Door_Monitor" which contains the time when the door was opened, and the following in the conditions section.
- Code: Select all
set alarmtime to (time of (current date)) + 180
set openedtime to time of date (value of variable "DSC_Garage_Door_Monitor" as string)
if alarmtime is greater than openedtime then
return true
else
return false
end if
it should return a true signal if it's been more than 3 minutes
I don't understand why this is not working any tought?