How can I programmatically stop a notebook battery from charging

前端 未结 10 1399
深忆病人
深忆病人 2021-02-14 19:34

There is some easily available information on finding the status of a battery, or weather it\'s charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformat

10条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-14 19:57

    Actually I use such a charge limiter. There is the control software - a Python script that monitors the battery level (psutil module) and controls external hardware - i.e. a switch that can be software controlled. I have Energenie and TP-Link homeplugs plus my own hardware contraption.

    As it is for home use the software it's not polished at all, but with minimal effort can be adapted to any OS or hardware.

    Let know if interested. The software lives here: CCC

提交回复
热议问题