tcgoetz / GarminDB

Download and parse data from Garmin Connect or a Garmin watch, FitBit CSV, and MS Health CSV files into and analyze data in Sqlite serverless databases with Jupyter notebooks.
GNU General Public License v2.0
1.18k stars 142 forks source link

No today data #203

Closed EmptySoft closed 9 months ago

EmptySoft commented 1 year ago

Since version 3.5.0 the command garmindb_cli.py --all --download --import --latest no more data of the current day is downloaded. The data of the previous days work fine. Is it possible to get the data of the current day again?

Preliator-code commented 1 year ago

To my part, i have 0 activity since severals weeks (at least 8 realized and visible in garmin's website)

tcgoetz commented 1 year ago

Since version 3.5.0 the command garmindb_cli.py --all --download --import --latest no more data of the current day is downloaded.

Yes, getting the current day's data is problematic since it can be incomplete. Once you've fetched incomplete data how do you know it's incomplete? How do you handle stats in the DB when you have incomplete data? Also when you request data for a date and there is no data for that date yet (maybe you haven't synced any data for that date yet?), you can get a 404.

tcgoetz commented 1 year ago

To my part, i have 0 activity since severals weeks (at least 8 realized and visible in garmin's website)

You mean no activity files are being downloaded? Are you on version 3.5.0? If so, please file a separate bug.

lorenzovercruysse commented 1 year ago

My Garmin account even got locked running it, resulting in an assertion error. I had to reset my password

EmptySoft commented 1 year ago

Since version 3.5.0 the command garmindb_cli.py --all --download --import --latest no more data of the current day is downloaded.

Yes, getting the current day's data is problematic since it can be incomplete. Once you've fetched incomplete data how do you know it's incomplete? How do you handle stats in the DB when you have incomplete data? Also when you request data for a date and there is no data for that date yet (maybe you haven't synced any data for that date yet?), you can get a 404.

I poll the data several times a day and the values are overridden with the new values (has always worked for me). I continue to work with the daily data in another program and there I need the current data.

EmptySoft commented 1 year ago

Hi Tom.!

Sorry, I'm not that familiar with github. Does the message mean that you made a change in the develop branch that retrieves the today data?

tcgoetz commented 1 year ago

Does the message mean that you made a change in the develop branch that retrieves the today data?

Yes

EmptySoft commented 1 year ago

Hi Tom.!

I have removed all old GarminDB Versions, istalled from github the development branch, dann a make setup, but i got only the data for yesterday

harald@kalymnos:~/bin> /usr/bin/garmindb_cli.py -v /usr/bin/garmindb_cli.py 1...1...0

Downloading latest monitoring data from: 2023-10-15 23:59:00 Overwriting /home/harald/HealthData/FitFiles/Monitoring/2023/daily_summary_2023-10-15.json Overwriting /home/harald/HealthData/FitFiles/Monitoring/2023/hydration_2023-10-15.json Saving /tmp/tmpqsmnuib8/2023-10-15.zip Downloading latest sleep data from: 2023-10-15 Overwriting /home/harald/HealthData/Sleep/sleep_2023-10-15.json Downloading latest rhr data from: 2023-10-15 Overwriting /home/harald/HealthData/RHR/rhr_2023-10-15.json ___Importing Latest Data___

tcgoetz commented 1 year ago

Please retry with 3.5.1+.