Get AI-powered insights from your Fitbit data. Query your fitness metrics, analyze trends, and ask questions about your activity.
Requires: Fitbit OAuth access token
Setup steps in references/fitbit-oauth-setup.md
FITBIT_ACCESS_TOKEN="..." python3 scripts/fitbit_api.py profile
python3 scripts/fitbit_api.py daily [date]
# Examples:
python3 scripts/fitbit_api.py daily # Today
python3 scripts/fitbit_api.py daily 2026-02-08 # Specific date
Returns: steps, distance, calories, active minutes (very/fairly/lightly/sedentary), floors
python3 scripts/fitbit_api.py steps <start_date> <end_date>
Example:
python3 scripts/fitbit_api.py steps 2026-02-01 2026-02-07
Returns: total steps, average steps, daily breakdown
python3 scripts/fitbit_api.py heart [date]
Returns: resting heart rate, heart rate zones with minutes in each zone
python3 scripts/fitbit_api.py sleep [date]
Returns: duration, efficiency, start/end times, sleep stages
python3 scripts/fitbit_api.py activities [date]
Returns: workouts/activities logged (name, duration, calories, distance)
python3 scripts/fitbit_api.py weekly
Returns: 7-day summary of steps and key metrics
When user asks fitness questions, use the API to fetch relevant data, then provide insights:
Example queries:
Analysis approach:
User: "How did I do this week?"
Agent:
User: "Did I exercise today?"
Agent:
The skill automatically loads tokens from /root/clawd/fitbit-config.json and refreshes them when expired (every 8 hours).
Auto-refresh: Tokens are refreshed automatically - no manual intervention needed!
Manual refresh (if needed):
python3 scripts/refresh_token.py force
Override with environment variable:
export FITBIT_ACCESS_TOKEN="manual_token"
See references/fitbit-oauth-setup.md for token management.
共 1 个版本