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

Add Fitbit spinning activities #27

Merged
merged 5 commits into from
Jul 29, 2023
Merged

Conversation

caarmen
Copy link
Owner

@caarmen caarmen commented Jul 29, 2023

Issue #25

Preparation:

  • Allow passing query params to exteral service http apis.
  • Allow processing multiple notifications from the fitbit notification endpoint.
  • Rename fitbit test scenarios to fitbit "sleep" scenarios.

Then the new feature: Add Fitbit spinning activities.

When the fitbit notification webhook notifies us of a spinning activity, fetch it and post it to slack if it's a new activity.

This requires:

  • A new column in the database, last_activity_log_id, to make sure we don't post activities multiple times.
  • A new scope to be able to fetch activities from fitbit.

For now, only process activities of type "Spinning".

Add the activity fetching to the polling as well.
Add tests for fitbit activities (polling and notificaiton webhook)

@caarmen caarmen force-pushed the add-fitbit-spinning-activities branch 3 times, most recently from af9a04f to b167052 Compare July 29, 2023 16:47
@caarmen caarmen force-pushed the add-fitbit-spinning-activities branch 4 times, most recently from f3d20e4 to 27f818b Compare July 29, 2023 18:48
When the fitbit notification webhook notifies us of a spinning activity, fetch it and post it to slack if it's a new activity.

This requires:
* A new column in the database, `last_activity_log_id`, to make sure we don't post activities multiple times.
* A new scope to be able to fetch activities from fitbit.

For now, only process activities of type "Spinning".

Add the activity fetching to the polling as well.
@caarmen caarmen force-pushed the add-fitbit-spinning-activities branch from 27f818b to f1c1b0e Compare July 29, 2023 18:56
@caarmen caarmen force-pushed the add-fitbit-spinning-activities branch from 4d3214d to 62593d2 Compare July 29, 2023 21:21
@caarmen caarmen changed the title Add Fitbit spinning activities [WIP 🚧 ] Add Fitbit spinning activities Jul 29, 2023
@caarmen caarmen marked this pull request as ready for review July 29, 2023 21:29
@caarmen caarmen force-pushed the add-fitbit-spinning-activities branch from 62593d2 to 1b7a773 Compare July 29, 2023 21:35
@caarmen caarmen merged commit b82743f into main Jul 29, 2023
@caarmen caarmen deleted the add-fitbit-spinning-activities branch July 29, 2023 21:38
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

Successfully merging this pull request may close these issues.

1 participant