Imports activity data from a Runkeeper backup into GadgetBridge.
- Make sure to keep a copy of your original GadgetBridge backup. Use at your own risk
- Request a full export at Runkeeper or "Account Settings" → "Export Data"
- Export a full backup in GadgetBridge: "Data management" → "Export zip"
- Unpack your
gadgetbridge_<timestamp>.zipto a new folder - Create a folder called
runkeeper/in that new folder - Unpack your runkeeper backup into the newly created
runkeeper/folder- The
runkeeper/folder should now contain a bunch of.gpxfiles as well as acardioActivities.csvfile
- The
- Adjust
device_id = 4anduser_id = 1inrunkeeper.pyto match your GadgetBridge device and user - Run
runkeeper.pyin your gadgetbridge backup folder - Pack the
database/,files/, andpreferences/folders and thegadgetbridge.jsoninto a ZIP file:zip -r - "database" "files" "preferences" "gadgetbridge.json" > "gadgetbridge_modified.zip" - Import into GadgetBridge: “Data management” → "Import zip”
- You might see an error after importing about being unable to import files from
files/, just ignore and wait for GadgetBridge to restart
- You might see an error after importing about being unable to import files from
- The script only imports activity data from the
cardioActivities.csvfile into theBASE_ACTIVITY_SUMMARYtable and copies and renames the GPX track (if included in the Runkeeper backup) into thefiles/folder - The script does not import any data from
heartRate.csv,measurements.csvorsteps.csv - The script only supports a limited set of activity keys (see
map_sport(sport))- Add your own activity keys if needed, check
BASE_ACTIVITY_SUMMARY.ACTIVITY_KINDin yourGadgetbridgeSQLite database for valid keys
- Add your own activity keys if needed, check
Runkeeper is a brand by ASICS. Neither the author nor this script is associated with Runkeeper or ASICS in any kind.