My laptop battery didn't last half as long as I had hoped and it is an internal one. That is, it is very inconvenient to replace. I would like my replacement battery to last as long as possible, and after reading up on it, it looks like the best way to do that is to allow it to charge and discharge on a regular basis. So I looked for a program or app in the Ubuntu software center that could remind me to unplug or plug in and found nothing, and the default battery indicator is insufficient because it doesn't care about battery health.
So, is there any app that does this? If not, is there an API I can take advantage of so I can write my own?
Edit: A simple google search revealed I could look up battery information using the command upower -i /org/freedesktop/UPower/devices/battery_BAT0. It would be nice to have a status indicator do this for me (and possibly keep a tally of charge/discharge cycles).