You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be excellent to have a system where users can set an interval, let's say 7-days. Afterward, every 7 days, it will automatically charge up to 100 (no matter the limit define by user), then discharge to 15, and finally recharge to the user-defined limit.
The flow will be like.
Keep track of the last calibration.
Check if the last calibration was 7 days ago or more.
If it's been more than 7 days, set the limit to 100%.
When it reaches a 100% charge, disable the adapter.
When it drops to 15%, enable the adapter.
Set the limit to the user-defined value.
Update the last calibration time.
The text was updated successfully, but these errors were encountered:
Good suggestion. I think this feature can be split into two parts:
a cronjob that does the calibration;
do calibration (steps 3-6). for example, using command batt calibrate;
Part 1 can be done using a external cronjob that calls batt calibrate every X days. batt itself should only do part 2. I would prefer to call batt calibrate manually instead of automatically to avoid auto-calibration when I really need to use my computer :) Or a GUI that regularly reminds the user of calibration and let the user decide wether to do calibration now. So I think we can implement part 2 first.
If we were to implement it, some extra consideration might be needed. For example, to make it hassle-free, we also need to consider edge cases like: what if the computer sleeps/restarts during calibration? will the intermediate state cause any problems? I haven't really planned yet, these are just some initial thoughts come to my mind.
Yes. You can split this feature into two parts.
Implement the second part first and let's see how it's goes. There is no need of GUI for starting.
Just second part of feature, do calibration (steps 3-6) exposed via a command batt calibrate
Looking forward to next release 🥳
Thanks for the neat and clean package.
It would be excellent to have a system where users can set an interval, let's say 7-days. Afterward, every 7 days, it will automatically charge up to 100 (no matter the limit define by user), then discharge to 15, and finally recharge to the user-defined limit.
The flow will be like.
The text was updated successfully, but these errors were encountered: