/
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)
Code Block Example
Related content
Alarm Numeric Point Program
Alarm Numeric Point Program
More like this
Custom Email Format
Custom Email Format
Read with this
Logic Builder Examples
Logic Builder Examples
More like this
Logic Builder Blocks
Logic Builder Blocks
Read with this
Alarm Routine
Alarm Routine
More like this
Logic Builder App
Logic Builder App
Read with this