Closed danicosas closed 1 year ago
The base unit of the muscle in CSV is always in %. The values in the CSV are in %. If you imported it with the option "Measurement in %" off you see the value in your weight unit.
I already did it as you say, before opening the bug, and the error is reproduced. But if it doesn't work for you to fix it, I'll fork it and fix it myself. Otherwise, great job.
Again its not a bug but what is your purpose? If you export it with openScale and import it again everything works. IF you want import a different CSV files which use kg in the CSV file then convert it in the CSV files before you import it in openScale.
Indeed, the export from Xiaomi comes as it comes. In the bug I attached an excel file exported from my official Xiaomi account. (Obviously for privacy, I've only left some real logs for the bug.) It does not make sense that in a data import functionality, you have to modify the data from the official source. But again, if it's too much trouble to fix, I'll fork and fix it myself.
Yes it would too much trouble to implement each individual 3rd party CSV format into openScale. Therefore we have on the wiki useful import scripts https://github.com/oliexdev/openScale/wiki/Useful-import-scripts ;)
Describe the bug Having configured in the app that the muscle measurements appear in kilograms, when I import a correct .csv file with these measurements, the app imports them incorrectly.
To Reproduce Steps to reproduce the behavior:
Reproduced with latest release version: v2.5.1
Expected behavior That the measurements in kilograms are imported as they are in the .csv
Debug log openScale_2023-06-04_09-36.txt
Attachments
![Screenshot_20230604-091001_openScale~2](https://github.com/oliexdev/openScale/assets/24606416/5b01ebe4-b4ec-4e05-85af-6e1e9846725a)