Well, now you can play a bit with APM as it provides battery changes in single D-Bus signal and simple iface to get value. I'm thinking of logging battery history too. In a bit different way, but still much common to your goal.