Sign inSign up

charlocharlie/fitbit-auto-steps

By charlocharlie

•Updated over 5 years ago

Use the fitbit API to write a random distance walked daily.

Image
2

4.9K

charlocharlie/fitbit-auto-steps repository overview

⁠fitbit-auto-steps

Use the fitbit API to write a random gaussian distance walked daily.

⁠Setup

  • Run in a Docker container behind an SSL reverse proxy. Endpoints created are /auth and /auth/callback.
  • Set the below environment variables (and probably the TZ variable).
  • Mount the /usr/app/config directory to save the user tokens.
  • Visit https://[your-domain]/auth to enroll your Fitbit account

docker run -d --name='fitbit-auto-steps' -e TZ="America/Chicago" -e 'CLIENT_ID'='ABC123' -e 'CLIENT_SECRET'='cdc842375c4d39d7b5da2fcc45157004' -e 'USER_ID'='XYZ123' -e 'AVERAGE_KM_WALKED'='10.5' -e 'AVERAGE_HOURS_SLEPT'='9' -e 'CALLBACK_URL'='https://example.com/auth/callback' -e 'PORT'='3000' -p '3000:3000/tcp' -v '/mnt/user/appdata/fitbit-auto-steps':'/usr/app/config':'rw' 'charlocharlie/fitbit-auto-steps:latest'

⁠Environment

CLIENT_ID=ABC123
CLIENT_SECRET=cdc842375c4d39d7b5da2fcc45157004
USER_ID=XYZ123
AVERAGE_KM_WALKED=10.5
AVERAGE_HOURS_SLEPT=9
CALLBACK_URL=https://example.com/auth/callback
PORT=3000

Tag summary

Content type

Image

Digest

Size

31.7 MB

Last updated

over 5 years ago

docker pull charlocharlie/fitbit-auto-steps