blubat-0.4.0 is not a library.
The blubat binary: the dashboard and the one-shot CLI over blubat-core.
A bare blubat opens the live dashboard, or prints what it can do when
there is no terminal to draw one on. Every other command reads one
snapshot, prints it in the form the caller asked for, and exits with a code
a script can branch on: 0 for a usable reading, 3 when no matching device
has a battery, 1 for anything else.