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] Expose Sync API to sync last N workouts #697

Open
philosowaffle opened this issue Dec 6, 2024 Discussed in #691 · 0 comments
Open

[Feature] Expose Sync API to sync last N workouts #697

philosowaffle opened this issue Dec 6, 2024 Discussed in #691 · 0 comments
Labels
enhancement new feature / improvments
Milestone

Comments

@philosowaffle
Copy link
Owner

Discussed in #691

Originally posted by geoffbon November 30, 2024
I'm using Home Assistant, in conjunction with the Garmin HA app, and so have the ability to detect when I've completed a workout, at least within whatever refresh interval I set for the Garmin's app background service.

Ideally I'd like to have an automation in HA detect when an activity has finished, and call an endpoint to sync the last 1 (or n) workouts.
Or, something I can tap on my HA tablet dashboard to trigger the sync.

I see one API endpoint to sync a specific workout ID, and another endpoint to get the last n ids, but this is going to add some serious complexity to my simple automation. Is it feasible to expose an API call that just takes an integer as a URI parameter to trigger a sync of that many most recent workouts? Or even just a parameterless call that syncs the most recent workout?

With that, I can just turn off the background sync in the app, and get more timely sync when I need it.

@philosowaffle philosowaffle added the enhancement new feature / improvments label Dec 6, 2024
@philosowaffle philosowaffle added this to the 5.0.0 milestone Dec 6, 2024
@philosowaffle philosowaffle changed the title Expose Sync API to sync last N workouts [Feature] Expose Sync API to sync last N workouts Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature / improvments
Projects
None yet
Development

No branches or pull requests

1 participant