Run GarminDB in a docker container.
- Based on https://github.com/tcgoetz/GarminDB.
- replace USERNAME, PASSWORD and any env var you need in
docker-compose.base.yaml
- (Optional) If you wish to use deployed (and not a local) image, replace
image
with the latest version - (Optional) If you want to change where your garmin data is downloaded to, change the source mount in
volume
node - Download data:
- if you start anew and have no previous downloads, run
make run_all
- if you just need to stay up to date with your garmin data, run
make run_latest
- if you start anew and have no previous downloads, run
Note:
make
commands are just shorthands for docker commands usingMakefile
. If you're using a deployed container, either download theMakefile
across to your local filesystem along withdocker-compose
files, or just use the full commands fromMakefile
.
You can schedule your daily run using a tool like crontab
.
this will make it run every day at 14:00 (read more on cron expressions here) and expects your docker-garmindb repo live in ~/repos/docker-garmindb
. It will also append to logs.txt
file in your repo folder so you can see what has been happening. Adapt accordingly.
(crontab -l; echo "0 14 * * * cd ~/repos/docker-garmindb/ && make run_latest >> ~/repos/docker-garmindb/logs.txt") | crontab -