tcgoetz / GarminDB

Download and parse data from Garmin Connect or a Garmin watch, FitBit CSV, and MS Health CSV files into and analyze data in Sqlite serverless databases with Jupyter notebooks.
GNU General Public License v2.0
1.11k stars 137 forks source link

Garmin Servers down, import local? #71

Closed EmptySoft closed 10 months ago

EmptySoft commented 4 years ago

Is it possibile to import the fit files directly from the watch to the DB?

garmin.py --copy

copies the settings to the HealthData/FitFiles. But what have i to do next?

tcgoetz commented 4 years ago

This make target does that: copy_garmin_latest: $(TIME) $(PYTHON) garmin.py --all --copy --import --analyze --latest

You can use it by running make copy_garmin_latest or you can run it directly with garmin.py --all --copy --import --analyze --latest.

tcgoetz commented 4 years ago

You may need to change "copy": { "mount_dir" : "/Volumes/GARMIN" }, in GarminConnectConfig.json if your watch is mounted at "/Volumes/GARMIN" when you plug it in.

EmptySoft commented 4 years ago

Hi Tom.!

Thank you so much for your help. when i set mount_dir to /srv/www/htdocs/nextcloud/data/harald/files/GARMIN it looks for /srv/www/htdocs/nextcloud/data/harald/files/garmin/garmin/settings (2 times garmin) OK, i change to /srv/www/htdocs/nextcloud/data/harald/files Thats OK. But now my Problem, on the Watch (Garmin Fexnix 3 hr) all Files are uppercase, your code looking for lowercase. Is my watch different? My system running Linux

tcgoetz commented 4 years ago

Your watch is mounted at /srv/www/htdocs/nextcloud/data/harald/files/GARMIN? That looks like its in the tree of a webserver. What OS and setup is this?

EmptySoft commented 4 years ago

This Dir is an Sync from my Laptop (running Linux) via Nextcloud to my Server, also running on Linux. But the Files on my Fenix 3 HR are in Uppercase. At this time i wrote a small script to transform the Files from uppercase to lowercase

Grimler91 commented 4 years ago

@EmptySoft did you have to make some configuring to mount the watch?

I have so far been unable to access my forerunner 945 on archlinux and have been tinkering with blacklisting the garmin_gps kernel module and adding udev rules as suggested on this page, but so far without success.

With linux distro are you using?

EmptySoft commented 4 years ago

I am running SuSE Linix (15.2). There are no configurations at the watch or the OS, only connect the Watch (Garmin Fenix 3 HR), choose use USB at the watch and mount it via connected devices on the KDE

tcgoetz commented 10 months ago

Closing as old.