Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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.


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)
  • No labels