Power monitoring code running on a raspberry pi for parsing samples sent over by a USB-connected arduino (with a custom built power monitoring shield).