https://medium.com/codex/part-3-software-build-and-monitor-an-affordable-battery-solar-system-with-a-raspberry-pi-cbf95742b849