Raspberry Pi Python script for taking timelapse images