Display real-time consumption from time between OUM sensor pulses?

Hi,

I just wonder if emonPi has some built-in API to either get the current energy consumption value (in kW) based on the exact delay between pulses from the Optical Utility Meter Sensor, or I can somehow retrieve the time delay in mS so I can calculate it myself…

I want to read such values into an external database for display in CACTI graphs, or does anyone here run CACTI directly in emonPi?

Thanks for comments on this.

best regards Tor