Added script for Cron

This commit is contained in:
Ian Foster
2015-11-05 11:24:46 -08:00
parent 35e4e30462
commit 45414f404a
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -52,6 +52,13 @@ Use the `get` command to see the data stored in Google,
$ python fitsync.py get
### Cron
The included `cron.sh` script can be used to keep your Fitbit and Google Fit data in sync automatically.
Simply add the following line to your crontab to run the job daily at 11:00.
`00 11 * * * /path/to/fitsync/cron.sh`
## See your data
To view weight data on [Google Fit](https://fit.google.com),
Executable
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $DIR > /dev/null
virtualenv env > /dev/null
source env/bin/activate
./fitsync.py
popd > /dev/null