You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The last activities import I have is around August 2023. I was using the iterative update script (garmindb_cli.py --all --download --import --analyze --latest) to get new data periodically, but I've noticed that all metrics were updating except activities. I've reinstalled version 3.5.2 but the issue still persists. Even after deleting HealthData folder, the script just proceeds downloading monitoring data as it finds 0 activities:
To Reproduce
Steps to reproduce the behavior:
use v 3.5.2
run garmindb_cli.py --all --download --import --analyze --latest on existing data or garmindb_cli.py --all --download --import --analyze on a fresh install
the FitFiles/Activities folder will be empty (only containing activity_types.json; the DBs/garmin_activities.db will also be empty (or, if you already had this working and have some data in the db, the LastModified will indicate the .db file wasn't updated now and not have recent data)
Expected behavior
Activities db/fit files get populated with the latest data
Logs
INFO:root:Fetching 100000 activities to /home/atampaolo/HealthData/FitFiles/Activities
INFO:root:get_activity_types: '/home/atampaolo/HealthData/FitFiles/Activities'
INFO:/home/atampaolo/mambaforge/envs/garmin/lib/python3.12/site-packages/garmindb/download.py:Getting activities: '/home/atampaolo/HealthData/FitFiles/Activities' (100000) temp /tmp/tmpyrcpuxh5
INFO:root:get_activity_summaries
ERROR:root:Exception getting activity summary: Error in request: 400 Client Error: Bad Request for url: https://connectapi.garmin.com/activitylist-service/activities/search/activities?start=0&limit=100000
INFO:root:unzip_files: from /tmp/tmpyrcpuxh5 to /home/atampaolo/HealthData/FitFiles/Activities
INFO:/home/atampaolo/mambaforge/envs/garmin/bin/garmindb_cli.py:Downloading all monitoring data from: 2019-12-31 [1475]
The text was updated successfully, but these errors were encountered:
Funny I've actually resolved it while writing this up, but I thought I'll post it anyways in case someone else encounters this.
The issue is the number of activities to download specified in the .GarminDb/GarminConnectConfig.json:
Updating the number under download_all_activities to a lower one (I went with 3000) did the trick for me
Describe the bug
The last activities import I have is around August 2023. I was using the iterative update script (
garmindb_cli.py --all --download --import --analyze --latest
) to get new data periodically, but I've noticed that all metrics were updating except activities. I've reinstalled version3.5.2
but the issue still persists. Even after deletingHealthData
folder, the script just proceeds downloading monitoring data as it finds 0 activities:To Reproduce
Steps to reproduce the behavior:
3.5.2
garmindb_cli.py --all --download --import --analyze --latest
on existing data orgarmindb_cli.py --all --download --import --analyze
on a fresh installFitFiles/Activities
folder will be empty (only containingactivity_types.json
; theDBs/garmin_activities.db
will also be empty (or, if you already had this working and have some data in the db, the LastModified will indicate the .db file wasn't updated now and not have recent data)Expected behavior
Activities db/fit files get populated with the latest data
Logs
The text was updated successfully, but these errors were encountered: