motherapp / weight-csv-to-gfit

Load weights.csv and import to a Google Fit account
25 stars 20 forks source link

Which weight unit is expected in CSV #6

Open a-r-m-i-n opened 5 years ago

a-r-m-i-n commented 5 years ago

I want to import the past 4 years from Libra to Google Fit. I've checked the example csv file, and because the values are about "180" I'm not sure if this is kilograms or pounds.

Before I'll import wrong data I wanted to ask :) Thanks!

chwong1 commented 5 years ago

If it is height, should cm. If it is weight, it is pounds.

a-r-m-i-n commented 5 years ago

Hm. I tried to access the Google Fit API manually. And I was able to fetch some existing weight entries. It seems that Google uses kilograms. But they also did not provide a unit name. Only the plain number, which was Kilogram in my case.

But maybe I did not use the API correctly.

okainov commented 6 months ago

@a-r-m-i-n the data in source CSV file might depend. This repo used pounds by default. The data in Google is in kilograms, that's why there was some conversion done.

I've updated in in my fork, hopefully would be easier to understand.