History in the Weatherhat Python libraries

I’m trying to get my head around the “history” aspects of the Weatherhat library.

What I’m trying to achieve is to capture the highest wind speed recorded in - say - the last 60 minutes by my Weatherhat. I can see the “history” classes, and within that “gust”, but I’m struggling to get my head around them.

What I’d like is to read the windspeed every (say) 5 seconds. At any given point I’d then like to capture the windspeed at the last reading, and the highest windspeed recorded in the last 3600 seconds. (I really hope I’m explaining this properly!). What I have now looks sort of like this:

    gust=wind_speed_history.gust()
    if gust > max_gust:
       aio.send_data(gust_feed.key, gust_mph)
       max_gust = gust

and I still need to code a way to reset max_gust every 3600 seconds (or so), but I feel like there must be a more elegant way to do this. How do I set the interval over which the “history” is recorded?

Thanks!