Fireworks

As we were not going to be at home at New Year to see the fireworks I set up my timelapse camera to grab some long exposure shots, most of which were overexposed at 20 seconds, I adjusted the script as a reminder for the next time.

#!/bin/bash
# Take long exposure photos over an extended period
# For use at New Year to capture fireworks

# Eposure time of 20 secs used new year 2025 was overexposed
let EXP=10000000

folder=$(date +"%Y%m%d")
if ! test -d $folder; then
    mkdir $folder
fi

for (( n=1; n<=50; n++ ))
do
    timestamp=$(date +"%Y%m%d_%H%M%S")"_long.jpg"
    #echo "Output file: " $timestamp
    libcamera-still --output $folder/$timestamp --shutter $EXP --gain 1 --immediate --denoise cdn_hq
    sleep 10
done

Previous Post Next Post