Skip to content

Instantly share code, notes, and snippets.

@noah
Created July 23, 2014 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noah/660dea5f71d9ccdbf0b5 to your computer and use it in GitHub Desktop.
Save noah/660dea5f71d9ccdbf0b5 to your computer and use it in GitHub Desktop.
repeatedly attempt to synchronize fitbit using galileo
#!/bin/sh
out=
while [ -z "$out" ]; do
echo "$(date) syncing..."
cmdout="$(galileo --upload --https-only -d --force 2>&1)"
#echo "cmdout: $cmdout"
out="$(echo $cmdout|grep 'Synchronisation sucessfull')" # sic
#echo "out: $out"
done
echo "$(date) synced"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment