actuallymentor / battery

CLI for managing the battery charging status for M1 Macs
MIT License
3.22k stars 140 forks source link

Charge between two values automatically #242

Open bertramweiss opened 4 months ago

bertramweiss commented 4 months ago

Hello Great tool. I really like it. I would like to use battery to enter two percentage values, e.g. 35% and 75% as lower and upper limits. I have my Mac always connected with an "always-on" charging docking station. The app should then load automatically whenever the value is between the lower and the upper value and stop charging (totally) when at the upper limit until again it reaches then lower limit. When reaching the lower limit, it starts charging again. Currently, the app simply keeps the charging at the value given (e.g. 80%) but to do so it charges all the time a tiny little bit just to keep it at 80%. However, I want it to stop charging at 75% , then stop charging until it falls down to the lower limit , and only then restart charging until it reaches again the upper limit.

Let me know at Bertram.weiss@gmx.de when you have questions or simply to share what your thoughts are. Thx. Best regards Bertram Weiss

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

fuzetsu commented 3 months ago

Hey @bertramweiss

There's a few issues about this, but this it the main open one, so this can probably be considered a duplicate: https://github.com/actuallymentor/battery/issues/222

I responded to a different one with a script I wrote that has been working well for me since then: https://github.com/actuallymentor/battery/issues/187#issuecomment-1817284238