A friend created an Arduino project that monitors power consumption in Kw / h. It every 5 minutes inserts the consumption information in the MySQL database.
Every 5 records I need to average them, and then take the average and multiply by 15.
I can do this in both PHP and MySQL, could anyone give me a hint how to do a listing with all averages 5 out of 5?