Averaging for hourly data logging