Hi guys, thank you for your help. The challenge seems to be that the values of teh gas meter are fed to emoncms every 10 seconds, although they only change every hour, on the hour. The 10 second data interval has to do with the other values from the same data source that are changing continuously, such as current and power.
Apart from the pulse difference and the kwh_to_power I have also experimented with the rate_of_change function. This kind of seems to work, at least in the strict sense of how the function was designed:
How would I be able to turn the spikes into hourly values reflecting the hourly increase of the meter? I dont think I’ll be able to slow down the data source as Trystan suggests, because of the other data coming from the same source. Or can I? Or is there a way to convert the 10s data into hourly data first?