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.
- Go to the Google API Console.
- Select a project, or create a new one.
- Click Continue to enable the Fitness API.
- Click Go to credentials.
- 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").
- Under Application type, select "Desktop app".
- When the OAuth client is created, Click on "DOWNLOAD JSON".
- Install FitBridge:
pip install FitBridge
- 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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
FitBridge-0.1-py3-none-any.whl
(17.7 kB
view hashes)