simpl.info
Battery API
You can inspect the BatteryManager object from the console.
View source on GitHub