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

Activity widget showing yesterday's values in the morning #45

Open
genericmoniker opened this issue Nov 16, 2024 · 1 comment
Open

Activity widget showing yesterday's values in the morning #45

genericmoniker opened this issue Nov 16, 2024 · 1 comment
Assignees

Comments

@genericmoniker
Copy link
Owner

The step count is yesterday's for some amount of time in the morning.

The display is correct based on responses from Fitbit:

2024-11-16 07:03:02,775 INFO:     httpx -> HTTP Request: GET https://api.fitbit.com/1/user/-/activities/date/2024-11-16.json "HTTP/1.1 200 OK"
2024-11-16 07:03:02,825 INFO:     mirror.plugins.activity -> Eric steps goal: 10000, steps: 11413 (114.13%)
2024-11-16 07:03:05,154 INFO:     httpx -> HTTP Request: GET https://api.fitbit.com/1/user/-/activities/date/2024-11-16.json "HTTP/1.1 200 OK"
2024-11-16 07:03:05,205 INFO:     mirror.plugins.activity -> Shannon steps goal: 6000, steps: 63 (1.05%)

The values are as expected later:

2024-11-16 07:18:06,145 INFO:     httpx -> HTTP Request: GET https://api.fitbit.com/1/user/-/activities/date/2024-11-16.json "HTTP/1.1 200 OK"
2024-11-16 07:18:06,200 INFO:     mirror.plugins.activity -> Eric steps goal: 10000, steps: 45 (0.45%)
2024-11-16 07:18:07,649 INFO:     httpx -> HTTP Request: GET https://api.fitbit.com/1/user/-/activities/date/2024-11-16.json "HTTP/1.1 200 OK"
2024-11-16 07:18:07,700 INFO:     mirror.plugins.activity -> Shannon steps goal: 6000, steps: 63 (1.05%)
@genericmoniker genericmoniker self-assigned this Nov 16, 2024
@genericmoniker
Copy link
Owner Author

Information about time zones in Fitbit's API: https://dev.fitbit.com/build/reference/web-api/developer-guide/application-design/#Time-Zones

Time zone is set correctly in the profile.

2024-11-15 05:42:46,290 INFO:     mirror.plugins.activity -> Eric steps goal: 10000, steps: 10576 (105.76%)
2024-11-15 05:57:50,500 INFO:     mirror.plugins.activity -> Eric steps goal: 10000, steps: 83 (0.83%)

It doesn't seem to switch to the next day until steps are reported?

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

No branches or pull requests

1 participant