As a manufacturing company, we are routinely analyzing the embodied energy of the products we make. We have Emon sensors installed on all of our machinery and equipment and are using EmonCMS to log and graph. Frequently we have the need to look at how much energy a specific operation required or even just what we used that afternoon. The Wh logging functionality is very handy, but to pull out specific moments requires cutting and pasting values and using a calculator to determine how much energy was used in a given time span.
In one of the current visualizations there is displayed below the graph some very useful figures: quality, min, max, mean, and std deviations. It would be extremely useful for the statistics to show how much energy is displayed in the current window assuming that the source is watts. We are interested in developing this functionality ourselves but could use some guidance for a starting point.
How do we go about modifying the GRAPH visualization to display the energy integral expressed as Wh?