Skip to main content

A simple script to sync Gadgetbridge exported data to Google Fit

Project description

FitBridge

--WIP--
Simple script to sync Gadgetbridge exported data to Google Fit

Install and Usage

This project is not recommended for normal users because it's not user friendly at all. I strongly suggest to only use this script if you know what you're doing.

  1. Go to the Google API Console.
  2. Select a project, or create a new one.
  3. Click Continue to enable the Fitness API.
  4. Click Go to credentials.
  5. Click New credentials, then select OAuth Client ID (You may need to create a "OAuth consent screen" first, make sure you add your Google Fit account's Gmail address in "Test users" when creating a "OAuth consent screen").
  6. Under Application type, select "Desktop app".
  7. When the OAuth client is created, Click on "DOWNLOAD JSON".
  8. Install FitBridge:
pip install FitBridge
  1. Run the script:
$ FitBridge 

It seems that you are running this script for the first time (or the config directory is lost), Do you want to create a new config? (y/n): y

Enter the path to the client_secret.json file: PATH_TO_CLIENT_SECRET

Enter the path to the Exported GadgetBridge database file: PATH_TO_GB_DB

Adding DataSources to the API automatically? (If not, you have to create them manually and add data_source_ids to the config) (y/n): y
The steps DataSource successfully registered: XXX
The heart_rate DataSource successfully registered:: XXX

Done!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FitBridge-0.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FitBridge-0.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file FitBridge-0.1.tar.gz.

File metadata

  • Download URL: FitBridge-0.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for FitBridge-0.1.tar.gz
Algorithm Hash digest
SHA256 abe5775c8449a356347c758b64fdddc5935dfb4a5f841000f00d0ea65b30e26c
MD5 fb085815da008dea49531d8072cc69d5
BLAKE2b-256 cd35087dce133f9ff1c9f2ff91e30590f924d9c109aa6bfae7fcb4744411c4e2

See more details on using hashes here.

File details

Details for the file FitBridge-0.1-py3-none-any.whl.

File metadata

  • Download URL: FitBridge-0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for FitBridge-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7cea5bb5293e7131fbe1c25adf452156e54b908adde16929deadc720d4adc1e5
MD5 391be2672c37abe1176f6a8ac75dbcdd
BLAKE2b-256 2c49a3069e33c673dee599074a7f2c7cd915669d055aa7870c3ba1b4184181a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page