Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two more sensors #74

Open
kondofersky opened this issue Jan 29, 2023 · 1 comment
Open

Add two more sensors #74

kondofersky opened this issue Jan 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@kondofersky
Copy link

Hi! Awesome work, really congrats! Saved me a bunch of time.

I was wondering: is it possible to add also MTD distance (monthly distance to date) and WTD (same, for week)?

Looking at your code, I didn’t see a way immediately… However, Strava does provide these values on highest level, so I think they should be easily accessible.

This would be a very cool enhancement.

Thanks again!

@craibo craibo added the enhancement New feature or request label Jan 30, 2023
@craibo
Copy link
Owner

craibo commented Jan 30, 2023

Hi @kondofersky

I'm currently using the stats api to get the Recent, YTD and All Time stats, so all the calulations are handled on the strava side.
https://developers.strava.com/docs/reference/#api-models-ActivityStats

I would need to pull all the activities over the periods (last 7 or 30 days) and loop through them to get those stats.
Should be doable, when I have a bit of time to get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants