Battery MONitor, log battery/power status on stdout
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Alessandro Mauri 9075ceada1 better and smaller makefile 4 years ago
.gitignore updated gitignore 4 years ago
LICENSE licensed under GLWTPL 4 years ago
README.md simple readme 4 years ago
bmon.c now std c99 compliant 4 years ago
makefile better and smaller makefile 4 years ago
plot plot now autoscales 4 years ago

README.md

bmon - simple battery monitor

Bmon is a simple tool that reads battery/power draw data and outputs it, together with a timestamp, to stdout or into a file as tab separated values.

Requirements & building

The requirements are:

  • gcc
  • make to compile the tool simply run make the executable will be in the current directory ready to use.

Using it

bmon outputs tab separated data, the first element will be either the battery capacity or the current power draw in milliwatts, this behaviour is controlled by the -w argument. The second element is the time in seconds, this can be time relative to the start of the program or the system time in unix time stamp, this behaviour is controlled by the -u argument.
The sample rate (time between readings) can be controlled with the -t <val> argument, this time is in seconds.
The output can be directed to stdout or to a specific file, this is controlled with the -f <file> argument.
For further help refer to the man page.