Keep track of the date you last ran the function. If the current date is different from that, run the function (which should update the dateLastRun variable).
You may need to save the variable to the file system if you don't want it to get lost when your clockface closes.
Best AnswerIs there any type of "when" code?
let hours = today.getHours();
when(hours = 24) {
//Run Function
}
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
You can use setInterval() to make something happen at a specific time from now. Up to you to set when that is from now.
Author | ch, passion for improvement.
Best Answer