Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garmin step details output off by varying amounts #9

Closed
sirfoga opened this issue Feb 8, 2019 · 2 comments
Closed

Garmin step details output off by varying amounts #9

sirfoga opened this issue Feb 8, 2019 · 2 comments
Assignees

Comments

@sirfoga
Copy link
Owner

sirfoga commented Feb 8, 2019

Expected Behavior

Garmin step details output for the day

Actual Behavior

However, the 15 min bin counts are off by varying amounts. When comparing the pygce json generated 15 min counts against what is displayed on the Garmin step details screen, I see that the generated json files are always missing the last 4 or 5 hours of data.

The 15 min bin output for day 2018-05-10:

{"15-min bins": [{"time": "2018-05-10 04:00:00", "steps": 0}, {"time": "2018-05-10 04:15:00", "steps": 0}, . . .etc etc etc}

Steps to Reproduce the Problem

  1. login
  2. view step details for a day

Specifications

  • pygce version (check pip3 show pygce): 2.0.6
  • Platform (e.g Windows 8, Mac OSX Sierra, Ubuntu 18.04 ...): Ubuntu 18.04
  • Url of connection (e.g https://connect.garmin.com, if you don't know it,
    then it's the stock one: https://connect.garmin.com):
  • Python version (check python --version): 3.6.7
@sirfoga
Copy link
Owner Author

sirfoga commented Feb 8, 2019

It turns out that the python script starts recording 15 min bin data 4 or 5 hours later than time 00:00:00. This results in the first data point receiving an index of 4am or 5am. By the time it reaches 12:00am the 15 min data collection stops and moves on to the next day starting with a 4 or 5 hour offset. After some pondering it occurred to me that the dates are off by GMT and daylight savings time in the United States.

@sirfoga
Copy link
Owner Author

sirfoga commented Feb 8, 2019

In addition to this, the function that retrieves the step details for the day, now retrieves them also for the day before and the day after (when possible): it is left to the final user to make the right adjustments GMT -> whatever-timezone-you're-in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant