-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timed climate control #27
Comments
I am happy with One question I have is whether people want to turn their climate on at a specific time, or at some time in the future? For the latter we could use Go's built-in I'm not aware of any good fuzzy matching time libraries for Go. I will look around for one, but I think a good first stab at the problem would be to define a bunch of formats in the |
A couple potential options: https://github.com/olebedev/when I haven't looked at transitive dependencies, but I'd like to keep them as minimal as possible. |
I've used https://github.com/araddon/dateparse in other places and it seems to do a pretty good job. |
I'd like to implement the scheduled start of climate control (you can tell its getting colder here!).
The additional API calls required can be plagerised from https://gitlab.com/tobiaswkjeldsen/dartcarwings
So then the commands need to be created. The
climate-on
command could be reused - if it has a timespec added then it i scheduled rather than immediate. However I am tending more towardsclimate-on-at
, or possiblyclimate-scheduled-at
which is long and hard to type (but then leads naturally to the additional commandsclimate-schedule-status
andclimate-schedule-cancel
Ideally I'd like the timespec to be handled in a similar fashion to the unix at command (see Specifying Time in https://www.computerhope.com/unix/uat.htm ), but that really needs a usable go module that does mostly the right thing - any suggestions?
Any comments before I go ahead?
-- Nigel
The text was updated successfully, but these errors were encountered: