Local, Offline-Only Access with USB/MTP
I haven't been able to find a concrete answer here by searching through issues. Is it possible to use GarminDB offline-only by downloading data directly from the watch? My watch is a Fenix 8.
Ideally, everything would function exactly as if the service were connected to Garmin Connect. Plug in the watch, run the garmin_cli.py command to update the database, and then proceed with viewing the data.
This issue seems to ask the same question, but I wasn't able to understand the response.
I hope this isn't considered a duplicate issue or a dumb question. Thanks in advance for your help!
It was possible. I don't think anyone has tried it for a while. It might still work, but not sure.
@alexjmccoy @tcgoetz
This is my use case. It is still possible, however, it does take a little bit of meddling. My watch also suffers from the issue in the referenced discussion (that uppercase/lowercase for the file directories). I wrote a work-around script that copies the data off of my watch into an identical file tree where all the folders are lower case and this solved basically all of my issues. The only things that are broken, as far as I can see, is the Sleep DB. It sees the sleep events however it doesn't import it for summary. I don't have a great idea of what's causing this, it could be an unrelated issue or it could be related to the janky way this is being setup.
@alexjmccoy I'm happy to help you if you want to pursue this if you have any questions. The script I use for copying is located here: https://github.com/ChrisFischer-MTA/Garmin-Connector/blob/main/scrape-device.py - however I'd like to add that this script is both for the copying of the data and also preserving of all the files that are on the watch; it's pretty tailored to my use case and the webapp I'm building locally for visualizing my data and playing with it.
Let me know if you have any questions. Thanks again to @tcgoetz for keeping this Repo going, it's a fantastic resource.
@alexjmccoy if you have a write-up on how to do this, that you would like me to add to the wiki, I would be happy to do that.
I no longer have a setup that I can test local copy with.
For windows I did as follow
- Downloaded MTP Drive, to give a Drive letter to my watch (Windows Only)
- Configured
~/.GarminDb/GarminConnectConfig.jsondirectories.relative_to_home: falsedirectories.base_dir: "."directories.mount_dir: "Y:/"
- ran
garmindb_cli.py --all --copy --import --analyze --latest
It looks like it worked, but I haven't checked the data itself yet
For windows I did as follow
* Downloaded MTP Drive, to give a Drive letter to my watch (Windows Only) * Configured `~/.GarminDb/GarminConnectConfig.json` * `directories.relative_to_home: false` * `directories.base_dir: "."` * `directories.mount_dir: "Y:/"` * ran `garmindb_cli.py --all --copy --import --analyze --latest`It looks like it worked, but I haven't checked the data itself yet
I have added these instruction to the wiki: https://github.com/tcgoetz/GarminDB/wiki/Usage