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

[Feature] WebUI - I'd like to keep track of my progress towards The Annual Challenge #406

Closed
philosowaffle opened this issue Jan 4, 2023 · 4 comments · Fixed by #409
Closed
Assignees
Labels
enhancement new feature / improvments Web UI issues/features impacting the Web application WIP

Comments

@philosowaffle
Copy link
Owner

philosowaffle commented Jan 4, 2023

On Strava, I can set a goal and it will tell me each day if I am ahead or behind on meeting that goal. I'd like something similar for the Peloton Annual Challenge.

On the WebUI add a page that shows:

  1. All of the tiers available for the Annual Challenge
  2. My progress towards each of those tiers
  3. Based on the "minutes/day" needed to reach a given tier and where we are in the year, am I ahead or behind on meeting that tier before end of year, and by how much

https://api.onepeloton.com/api/user/9d50dddf7e594c57bda54280eeec98d7/challenges/current?has_joined=false

https://api.onepeloton.com/api/user/9d50dddf7e594c57bda54280eeec98d7/challenge/66863eacd9d04447979d5dba7bf0e766

@philosowaffle philosowaffle added the enhancement new feature / improvments label Jan 4, 2023
@philosowaffle philosowaffle self-assigned this Jan 4, 2023
@philosowaffle philosowaffle added WIP Web UI issues/features impacting the Web application labels Jan 4, 2023
@philosowaffle philosowaffle mentioned this issue Jan 5, 2023
@philosowaffle
Copy link
Owner Author

2023-01-14_11-06-11

@philosowaffle
Copy link
Owner Author

Couple notes:

  1. The challenge seems to have a unique ID but its unclear if this ID would be the same for all users. Current logic will first look for a matching id, then fall back to looking for a Challenge that matches the title "Peloton Annual 2023". This could be brittle logic, will adjust if folks run into issues
  2. Lots of assumptions in the code right now about using English and Minutes

Regardless, consider this a usable V1 of this feature. Can iterate more on it if folks use it and have feedback.

@mattaeus-isenberg
Copy link

Hello! I have tried pulling this into my Docker image, following the docker-compose pull && docker-compose up -d and nothing new is pulled in. the page is still not available.

@philosowaffle
Copy link
Owner Author

Double check your docker compose file is using the latest tag instead of the stable tag. (lines 6 & 18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature / improvments Web UI issues/features impacting the Web application WIP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants