Thanks for reply Peter!
I'll try to explain more. From my kWh meter I catch pulses from a led,
1000 pulses every kWh. So during 5 minutes there comes between
150-200 pulses, sometimes up to 550.600 and down to 100.
I load from database the whole days data and present it on the
diagram. So x-scale is 5 minute ticks. So yes, it's the trend I'm
looking for.
Here you can see a picture of the diagram:
https://dl.dropboxusercontent.com/u/71076525/Sk%C3%A4rmklipp%202016-10-24%2010.39.23.png
So what I want is a smoother curve then the sawtooth shape.
This is my query in
http://jpgraph.net/ php-program:
$watt = mysql_query(
"SELECT * FROM `digitemp`
WHERE `SerialNumber`
LIKE '105C0EE5000800B4'
AND time LIKE '$datenow'
ORDER BY time");
SerialNumber is from one of the temperature sensors,
so from $watt I extract all the data to the diagram.
Every five minutes I am getting four readings, one from
each temp. sensor and on each row the wh value, same
on each row. I thought it was easier that way instead
of a separate db-table.