simonepri / fitbit2garmin

⬇ Downloads lifetime Fitbit data and exports it into the format supported by Garmin Connect data importer. This includes historical body composition data (weight, BMI, and fat percentage), activity data (calories burned, steps, distance, active minutes, and floors climbed), and individual GPS exercises (TCX).
MIT License
51 stars 4 forks source link

Activity & Weight Data are missing file extension #4

Closed Lordpaulson closed 10 months ago

Lordpaulson commented 10 months ago

@simonepri - Firstly, thanks for this awesome tool. However, the Activity and Weight files do not have an extension and the garmin tool does not seem to like that. The GPS ones are good and have the .tcx extension. Can you please advice what is the recommended file format or extension for the other two?

Lordpaulson commented 10 months ago

Also, I see that these are 0KB files - So, Looks lke the data never came through.

image
simonepri commented 10 months ago

Hi @Lordpaulson, can you provide the command you run and your OS/python versions?

The output you are getting is rather odd, the script should export these exstensionless empty files only inside a hidden .cache folder.

Lordpaulson commented 10 months ago

Here you go, @simonepri . Here is the version info: Python 3.11.7, Pip 23.3.1, git version 2.43.0.windows.1, OS- Win 11 23H2 (Build - 22631.2861)

image

This is the command I ran: PS C:\Users\krpaulson\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts> .\fitbit2garmin.exe dump-all --start-date 2013-10-22

image
simonepri commented 10 months ago

@Lordpaulson sorry for the late reply it took me a while to get a machine with windows to debug this because I couldn't see any obvious reason for this to happen. At end it seems that the issue was that the filenames that the CLI was trying to write had a colon (:) character in it and Windows does not support filenames with colons.

Just uninstall and re-install the package to get the fix and everything should work.

Lordpaulson commented 10 months ago

Thanks a ton, @simonepri ! It is working just fine! Appreciate the help and timely support!