Skip to content

Commit fac8720

Browse files
get cycling ftp functionality
1 parent 762a1bb commit fac8720

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

garminconnect/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,18 @@ def get_activity_power_in_timezones(self, activity_id: str) -> dict[str, Any]:
21192119
logger.debug("Requesting Power time-in-zones for activity id %s", activity_id)
21202120

21212121
return self.connectapi(url)
2122+
2123+
def get_cycling_ftp(
2124+
self,
2125+
) -> dict[str, Any] | list[dict[str, Any]]:
2126+
"""
2127+
Return cycling Functional Threshold Power (FTP) information.
2128+
"""
2129+
2130+
url = f"{self.garmin_connect_biometric_url}/latestFunctionalThresholdPower/CYCLING"
2131+
logger.debug("Requesting latest cycling FTP")
2132+
return self.connectapi(url)
2133+
21222134

21232135
def get_activity(self, activity_id: str) -> dict[str, Any]:
21242136
"""Return activity summary, including basic splits."""

0 commit comments

Comments
 (0)