trale icon indicating copy to clipboard operation
trale copied to clipboard

Tool to convert from Withings to Trale

Open not-a-feature opened this issue 1 year ago • 2 comments

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:

  • I don't know if withings always exports using KG or if sometimes pounds are used.
  • Neither do i know if Trale is able to import KG even if pounds are selected.

not-a-feature avatar Jul 22 '24 17:07 not-a-feature

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.

braniii avatar Jul 22 '24 18:07 braniii

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.

not-a-feature avatar Jul 23 '24 12:07 not-a-feature

I've implemented now a csv parse for openScale and if it fails, it tries the fallback of using the first 2 columns like in the Withing file you provided. In the future, it would be great if the user could select the column and unit manually. But for now it is better than nothing. Thx for providing your help :)

braniii avatar Mar 04 '25 22:03 braniii