openScale icon indicating copy to clipboard operation
openScale copied to clipboard

Import from Apple Health

Open MoralCode opened this issue 4 years ago • 3 comments

Describe the solution you'd like I would like to be able to import data from an apple health data export file (https://appletoolbox.com/how-to-export-apple-health-data-from-your-iphone-and-apple-watch/) into openScale.

Describe alternatives you've considered None.

MoralCode avatar May 09 '21 13:05 MoralCode

you have to write a script to convert the xml file into a openScale csv file, see the wikipage for some other references.

oliexdev avatar May 16 '21 09:05 oliexdev

found this and it seems like an excellent start (it parses the xml to a bunch of CSV files)

MoralCode avatar May 28 '22 18:05 MoralCode

while its sorta not a complete solution, here is a script to convert from the CSV output by the Quantified Self scripts linked above to openscale CSV format

Notes:

  • only supports weight values and timestamp.
  • it also adds a comment to record that it was imported from an apple health export as well as the app/version that imported it into apple health in the first place

MoralCode avatar May 28 '22 19:05 MoralCode