diff --git a/README.md b/README.md index f7151cb..8bd9238 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,6 @@ This example is crontab to save an image every minute Then every time you want to make a video, simply execute ``` -unifi-timelapse.sh “camera name” today +unifi-timelapse.sh createvideo “camera name” today ``` That will create a time-lapse of all todays images. Options are `today` `yesterday` `all` `file` hopefully that’s self explanatory. The `file` option should be a text file with a list of the images you want included, one per line. diff --git a/unifi-timelapse.sh b/unifi-timelapse.sh index 6ad363e..2f9b7c8 100755 --- a/unifi-timelapse.sh +++ b/unifi-timelapse.sh @@ -47,7 +47,7 @@ getSnap() { log savingSnap "$2" to "$snapFile" - wget --quiet -O "$snapFile" "$2" + curl --silent --show-error --connect-timeout 10 -o "$snapFile" "$2" } createMovie()