Skip to content

Instantly share code, notes, and snippets.

@thiagosanches
Created September 20, 2021 20:17
Show Gist options
  • Save thiagosanches/a5c0a6e18ebff8f318518613e9e1332c to your computer and use it in GitHub Desktop.
Save thiagosanches/a5c0a6e18ebff8f318518613e9e1332c to your computer and use it in GitHub Desktop.
while true
do
FILENAME=$(date +%Y%m%d-%H-%M-%S.jpg)
curl "http://192.168.15.11/cam-hi.jpg" -o "$FILENAME" --silent
gsutil cp $FILENAME "gs://esp32cam-timelapse/$FILENAME"
sleep 1;
rm $FILENAME
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment