Skip to content

Simple command line tool for logging SPBluetoothDataType battery status

License

Notifications You must be signed in to change notification settings

photogabble/osx-mouse-battery-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSX Bluetooth Battery Logger

Command line tool for logging battery life.

License

Usage

The collect command is used to parse the output of system_profiler -xml SPBluetoothDataType and as a csv line to the file provided by --output_path. I use run.sh to execute the collect command every 60 seconds.

$ ./bin/mousebattery help collect
Description:
  Parses input from stdin

Usage:
  collect [options]

Options:
  -o, --output_path[=OUTPUT_PATH]  Path you want to output csv lines to.
  -p, --progress                   Display progress bar
  -a, --BD_ADDR=BD_ADDR            Bluetooth address for mouse you want to monitor
  -h, --help                       Display this help message
  -q, --quiet                      Do not output any message
  -V, --version                    Display this application version
      --ansi                       Force ANSI output
      --no-ansi                    Disable ANSI output
  -n, --no-interaction             Do not ask any interactive question
  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Example Output

1555501362   6% [=|..........................] 

About

Simple command line tool for logging SPBluetoothDataType battery status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published