FitTrackee icon indicating copy to clipboard operation
FitTrackee copied to clipboard

Reprocess older workout weather data

Open Dryusdan opened this issue 1 year ago • 5 comments
trafficstars

Hello 👋

First, thank you for this amaizing project, I can now download all of my bike data without any dependent service. Actually, this issue is not an issue but a question.

I fetch and download all of my bike workout from Garmin (I made a little program, may I tall about it later (it's open source but in earlier state)) and I generate too many requests on visualcrossing. My account was "banned" from visualcrossing for overcharge after multiple HTTP code 429, I receive 401. I can "unblock" my account, but all of my acitivies sended haven't weather data.

Is there a way to reprocess all workout without weather data ? :)

Thank by advance :)

Dryusdan avatar Jan 14 '24 21:01 Dryusdan

Hi,

Thanks for your feedback.

For now it is not possible via the API to reprocess workouts to get weather data or recalculate some values like max speed for instance (only few values can be updated).

Maybe one workaround is to add a pause between workouts imports to avoid exceeding Weather API rate limit.

SamR1 avatar Jan 17 '24 06:01 SamR1

Hum, okay.

Okay, I will add a rate limit for import in case of weather is enable on fittrackee instance. Thank :)

Dryusdan avatar Jan 18 '24 09:01 Dryusdan

is there a lot of workouts to reprocess?

SamR1 avatar Jan 18 '24 18:01 SamR1

Approximately 1400 ^^ (I forgot to remove my weather key on my dev instance 😅 )

Dryusdan avatar Jan 20 '24 00:01 Dryusdan

yes, for bulk imports via scripts, the other solution is to temporarily remove the key.

SamR1 avatar Jan 20 '24 15:01 SamR1