Skip to content

Commit

Permalink
fix webcam cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Dec 3, 2024
1 parent 1c265ae commit 8f29fff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

The changelog lists most feature changes between each release.

## Unreleased

- Fix [webcam cleanup](https://github.com/mobidata-bw/ipl-dagster-pipeline/pull/180)


## 2024-11-04

- addition: Add the ability to [download webcam images](https://github.com/mobidata-bw/ipl-dagster-pipeline/pull/177)
with [configurable worker count](https://github.com/mobidata-bw/ipl-dagster-pipeline/pull/179)

## 2024-10-29

- GTFS import: Mount local (modified) `download.sh` into `postgis-gtfs-importer` container.
Expand Down
2 changes: 1 addition & 1 deletion scripts/download_webcams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ set -x
1>&2 echo 'Downloading webcam images'
lftp -e "mirror -c --parallel=$IPL_WEBCAM_WORKER --verbose / /var/webcam; quit;" -u $IPL_WEBCAM_USER,$IPL_WEBCAM_PASSWORD $IPL_WEBCAM_SERVER
# Delete all old webcam images
find /var/webcam -mtime +$IPL_WEBCAM_KEEP_DAYS -type f -name '*.jpeg' -delete
find /var/webcam -mtime +$IPL_WEBCAM_KEEP_DAYS -type f -name '*.jpg' -delete
# Delete all empty directories
find /var/webcam -type d -empty -delete

0 comments on commit 8f29fff

Please sign in to comment.