Currently I get the sum of any given input/output by retrieving the records within a specified range, looping and totaling each record then converting this total to kWh. The net result always matches the amount of the Statistics/Sum Integral on the iotaWatt Graph+ page.
Is there a query that can accomplish the same without having to retrieve, loop and total each record within the specified range?