Use https://github.com/Goles/Battery instead.