How do I set the hour meter to reset every night at midnight? I have it counting every minute a status is 1. Just want to reset that counter at midnight each evening.
The manual has some instructions on how to set it up to reset on a condition:
You'll need to set up an expression tag that keeps track of the time until next midnight and add it to your transaction group:
The reason I have it add a day before getting midnight is that
midnight()
by itself will get you last midnight (day starts at midnight, etc.)
Set up your hour meter item and choose "reset on condition" to reset whenever your seconds to midnight gets low enough (make sure the number is larger than your transaction group rate or you'll skip right past midnight without noticing):
1 Like
Perfect. Thank you!