added function to store diff between power meter reading and consumption