Couldn't you just have it charging on a time-regulated supply e.g. smart plug?

[dead]