joaovitoriasilva / endurain

Endurain is a self-hosted fitness tracking service designed to give users full control over their data and hosting environment
https://docs.endurain.com/
GNU General Public License v3.0
656 stars 15 forks source link

retrieve garmin activities from API...possible? #44

Closed rubenixnagios closed 6 days ago

rubenixnagios commented 6 days ago

Any chance to make a curl request within the API to retrieve activities from garmin connect? if so, how can I achieve this?

Thanks so much again!

joaovitoriasilva commented 6 days ago

Thanks for reaching out. Endurain uses the python-garminconnect module. Why do you need to do a curl request?

rubenixnagios commented 6 days ago

Are the garmin activities retrieved automatically once gets uploaded to garmin cloud or just when the button is pressed? if activities are not in sync maybe its possible to make a curl request every x hours via cronjob or similar...and then it pulls the latest activities...makes sense? sorry but english is not my main language...

joaovitoriasilva commented 6 days ago

I just noticed that this is not documented, so I will add this to the documentation later today probably. Once the integration with Garmin Connect is configured, every hour the backend will check if there is new unimported activities. If yes, the new activity is automatically imported.

This is also the behavior for Strava.

rubenixnagios commented 6 days ago

nice to hear that, Im stuck with strava and could not get it to work even tho Ive got the api set and got the secret in place, thats why tried with garmin; it works well. gimme a shout if u need some kind of test / beta tester; il be glad to help u out!

joaovitoriasilva commented 6 days ago

Thanks. I will have that in mind. ☺️

For Strava I will answer you in the other issue. Can I close this one?

rubenixnagios commented 6 days ago

no probs, close this one 👍

joaovitoriasilva commented 6 days ago

Changes in docs implemented in v0.6.1