show remaining battery capacity



I need a commandline tool for showing the remaining battery capacity
of a laptop. I would accept a remaining time or remaining percent.

I know apm. Does anybody know another tool?

T.M.
.