QuantumPhysique / trale

trale – a simple body weight diary app respecting your privacy
GNU Affero General Public License v3.0
66 stars 8 forks source link

Tool to convert from Withings to Trale #118

Open not-a-feature opened 1 month ago

not-a-feature commented 1 month ago

I wanted to use Trale without loosing my data from my withings account. So i wrote a small tool / page to convert from their data export to the trale format. It's fully local using JS, so no data is transmitted.

Feel free to use it / link it or do whatever you want.

https://not-a-feature.github.io/withings_to_trale/

Two possible problems are still there:

braniii commented 1 month ago

That's a cool tool, thank you so much for implementing it. And regarding your question, trale supports only importing values in kg, independent of the selected units.

Could you provide a sample exported file of whitings? I guess it would be great to add this to the app directly.

not-a-feature commented 1 month ago

A typical export would look like this:

Only the first and second collumn are relevant (date and weight). The other columns are fat / bone / water weight and are not always present.

Date,"Gewicht (kg)","Fettmasse (kg)","Knochenmasse (kg)","Muskelmasse (kg)","Wasseranteil (kg)",Kommentare
"2024-07-23 05:45:01",67.11,5.91,3.02,57.11,42.17,
"2024-07-22 19:01:39",68.22,5.44,3.02,56.22,43.70,
"2024-07-15 11:33:23",69.33,5.79,3.11,55.33,44.75,
"2024-07-14 22:45:10",71.06,,,,,
"2024-07-09 12:33:22",69.33,5.69,3.10,55.44,44.71,

But a universal approach would be nice. A general CSV loader where you pick the date / weight collumn.