Closed andreiborisov closed 5 years ago
Silly mistake ended up being the issue. Fixed in commit 43e919b. Main issue was use of currentTime
rather than os.time()
in the predicate function of the timer.
While adding caching for the location value to deal with situations when hs.location.get()
can't get a location I realized the logic in nextToggleTime()
wasn't right. It's fixed now, and there should be no remaining issues with the schedule logic.
Dark mode doesn’t toggle on scheduled time Sent with GitHawk