I would really like a widget that shows a 7 day rolling average for mileage.

Is this something that is possible?

I would want it for running distance but could see it could be useful for cycling distance, walking distance etc. I know nothing about developing apps but looked and couldn't see one.