now strava sync works

This commit is contained in:
Davide Scaini
2026-03-30 14:39:56 +02:00
parent d806072546
commit 8fcd9f642b
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -126,8 +126,10 @@ class StravaClient:
"client_secret": self.client_secret, "client_secret": self.client_secret,
"code": code, "code": code,
"grant_type": "authorization_code", "grant_type": "authorization_code",
"redirect_uri": f"http://localhost:{CALLBACK_PORT}/callback",
}, timeout=30) }, timeout=30)
r.raise_for_status() if not r.ok:
raise RuntimeError(f"Token exchange failed ({r.status_code}): {r.text}")
self._tokens = r.json() self._tokens = r.json()
self._tokens["client_id"] = self.client_id self._tokens["client_id"] = self.client_id
self._save_tokens() self._save_tokens()
+2 -2
View File
@@ -33,8 +33,8 @@ incremental: true # skip files whose hash hasn't changed since last run
import: import:
strava: strava:
client_id: # paste your Client ID from strava.com/settings/api client_id: 218194 # paste your Client ID from strava.com/settings/api
client_secret: # paste your Client Secret client_secret: e787e62357c80c754e4f6129bfdfb849c4c03490 # paste your Client Secret
athlete: athlete:
max_hr: 190 max_hr: 190