Skip to content

tana/sbchargelimit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbchargelimit

It keeps your laptop's battery charge below a certain threshold, using a SwitchBot smart plug.

Requirements

  • A laptop computer with battery and Bluetooth LE (Tested on Windows. Probably also works on Linux)
  • SwitchBot Plug Mini smart plug

Usage

  1. Plug your laptop AC adapter through the smart plug and configure it.
  2. Launch this program once. It will fail immediately but sample configuration file will be generated at C:\Users\<UserName>\AppData\Roaming\sbchargelimit\config\default-config.toml.
  3. Write the MAC address of your smart plug like this:
    [plug_mini]
    addr = "01:23:45:67:89:AB"
  4. Launch the program again. Also, you can register it as a startup program.

About

Keep a battery healthy using a smart plug

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages