with lshal | grep batt you can get all values out of the battery. also there seems to be allready a built in function for remaining battery time. but its sending a false value.