V0.1 added support for SD card and calculate wh