Previous script source was embarrassingly engineered by myself. It was pulling snapshots from the Rpi camera triggered by a URL which presents all sorts of challenges in itself since it's difficult to address the Rpi from the Internet since IPv6 doesn't exist yet.
https://s3-ap-southeast-1.amazonaws.com/cam.hackerspace.sg/$(date +%Y-%m-%d)/$(date +%s).webp
$(date +%Y-%m-%d) aka YYYY-MM-DD directory becomes the S3 bucket
prefix? This makes it possible to easily fetch images by day.
Also for clients that do not support WebP image, a lower resolution JPEG file is uploaded to:
We do not archive the JPEG since it's low resolution and not as space efficient as the WebP format.
Static Web slideshow
Backup of old camera snapshots
Singapore region of S3 does not support
Glacier. So previous archives have been
s3://hsgcamice, where they are stored in Glacier after 2 months.
Note these epoch named files are unprefixed. I should download them and prefix them and upload them to s3://cam.hackerspace.sg for a history stretching back years.