Skip to content

Produces CSV data of your weight from HealthKit-exported data.

Notifications You must be signed in to change notification settings

adiabatic/mass2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

mass2csv

mass2csv reads your exported HealthKit data and outputs your dated weight measurements as comma-separated values, in pounds.

Usage

mass2csv filename

filename can either be the export.xml or the entire export.zip. Note that it won’t know what to do with files formatted like export_cda.xml.

mass2csv outputs comma-separated values to standard output, so you’ll probably want to redirect that to a file. To do so, run mass2csv like this in the shell of your choice:

mass2csv export.zip > weights.csv

Then open weights.csv in your favorite spreadsheet software.

Exit status

0 on success, 1 on failure. Failures are accompanied by a message printed to the standard error stream.

Notes

  • I’ve never entered masses in kilograms into HealthKit, so I have no idea if that particular code path is correct.
  • mass2csv isn’t equipped to read export_cda.xml files. If you try to pass one of those to mass2csv, it will output only the CSV header.

License

Public domain.

About

Produces CSV data of your weight from HealthKit-exported data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages