/
Execute Logic Based on Time
Execute Logic Based on Time
Table of Contents
Description
If the room temp is below 65 and the current time is before 390 minutes (390 minutes = 6:30am), then turn on the alarm.
Block Example
*Additional notes/info on the example above:
- The 'now' block (same as running axon function now() ) grabs the current date & time and returns the value as a "dateTime" property tag.
- 'time' block converts the dateTime to be just "time"
- 'timeToMinutes' block take the "time" and converts it to minutes (numeric)...so 12:05am would be "5"...1:05am would be "65"
- the 'cmpLt' looks to see if the time is less than 390 minutes (6:30am)