Git Product home page Git Product logo

google-fit-consolidate-data-export's Introduction

Google Fit consolidate data export

This script combines Google Fit data from the "Daily activity metrics" folder of a Google Takeout export into a single CSV for further analysis or other uses. The main intent was using the Health CSV Importer app for iOS, which will import CSV data into Apple Health, allowing someone to export Google Fit data into Apple Health.

Acknowledgements

Thanks to Ben on Stack Exchange for the initial script.

Source URL: https://apple.stackexchange.com/a/428313/2319

Structure

The following Google Fit CSV columns are provided by Google Takeout as of September 30, 2021, and can be added or removed from the included script depending on the user's preference for data to be included.

  • Start time
  • End time
  • Move Minutes count
  • Calories (kcal)
  • Distance (m)
  • Heart Points
  • Heart Minutes
  • Average heart rate (bpm)
  • Max heart rate (bpm)
  • Min heart rate (bpm)
  • Low latitude (deg)
  • Low longitude (deg)
  • High latitude (deg)
  • High longitude (deg)
  • Average speed (m/s)
  • Max speed (m/s)
  • Min speed (m/s)
  • Step count
  • Average weight (kg)
  • Max weight (kg)
  • Min weight (kg)

Formats supported by Health CSV Importer

As of my conversations with Lionheart Software on November 8, 2021, below are the currently supported date and time formats which can then be used in combination with each other e.g. yyyy-MM-dd HH:mm:ss.SSSZ

I have made recommendations to the developers to include timezone separators like +/- to more closely align with the ISO 8601 standard as this would alleviate some import issues with the format Google currently uses.

Date formats:

  • MM-dd-yyyy (e.g. 04-16-2020)
  • dd-MM-yyyy (e.g. 16-04-2020)
  • yyyy-MM-dd (e.g. 2020-04-16)
  • yyyy-dd-MM (e.g. 2020-16-04)
  • yyyyMMddHHmmssZ
  • MMMM d, yyyy (e.g. April 16, 2020)

Time formats:

  • HH:mm
  • hh:mm a
  • HH:mm:ss
  • hh:mm:ss a
  • HH:mm:ss Z
  • hh:mm:ss a Z
  • HH:mm:ssZ
  • HH:mm:ss.SSSZ

google-fit-consolidate-data-export's People

Contributors

davidmetcalfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

google-fit-consolidate-data-export's Issues

"Daily activity metrics.csv" doesn't exist

Thanks for this really useful script! As a highly inexperienced Python user I was puzzled by an error that turned out to result from the fact that my Google Fit export did not contain the file "Daily activity metrics.csv". I commented out line 44 and all was fine. A refinement would be to check for the presence of this file before trying to delete it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.