After loading the file, i use ‘Repeat with Each’ - ‘Split Text / New Line’ and ‘Split Text’ with Custom Separator #. How do i access the different elements of a line (date, weight, bmi, fat)? If i use ‘Get Item from List’ - i got an error message if i use an Index higher than 1.
Then i can log the different elements of each line to the correct place in Apple Health.
@hoppel indicated they were already splitting by new line and custom separator. There’s something about their use of the Get List Item that’s in question, though I guess it could be around the nesting of splits/repeats that could be the underlying issue.
@Hoppel, the “Get Item from List” action applies to the return value of the action immediately before it. In your shortcut you should get the split text every time you need to access a list item: fixed shortcut.
Thanks, so far the splitting works. Now i will work on the correct date-format for Apple Health, followed by trying splitting the real fitbit-export. I will keep you updated and share the shortcut if finished.
Here is my final (for now) Shortcut for importing body-data (weight and body-fat) from fitbit into Apple Health. Works fine for me, have imported several years of data.
Please read the comments inside the Shortcut (only export the body-values, use at your own risk…)