Utility meter - 48h

Good morning,
I have an utility meter that records daily rain (mm).
I need to keep values from the past 24 hours (daily reset cycle) but also from the past 48 and 72 hours.
How may I do?
TY

AI-on-the-edge is a great possibility -