How to implement the historical flow data query function of the oil flow meter?