Jump to content
C4 Forums | Control4

Set Variable To Current Date And Time


Recommended Posts

Hi everyone,

I was doing some programming tonight and wanted to have a way where I could record the last time the "goodnight" button was pressed in my house (3 button keypad). My goal is to be able to email myself a daily email with some house stats including when the last time the button was pressed (people seem to be forgetting to use it here, want to get an idea how much they use it). Any ideas?

Thanks!

Link to comment
Share on other sites


Date is easy.

 

Variable Month - Text

Variable Day - Number

 

Secheduler

Jan 1 12:00am - Set Month to January, Set Day to 0   (repeat yearly)

Feb 1 12:00am - Set Month to February, Set Day to 0   (repeat yearly)

March 1 12:00am -

etc for each month

 

12:01am - Day +1 (repeat daily)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.