Graphing energy usage, using raspberry pi, couchdb and cpp