Go to file
Gary Steers 06b4444a28 initial 2021-04-06 21:48:44 +01:00
README.md initial 2021-04-06 21:48:44 +01:00
getdayinfo.py initial 2021-04-06 21:48:44 +01:00
timelapse_files.py initial 2021-04-06 21:48:44 +01:00

README.md

Timelapse Scripts

In here are scripts useful for processing timelapse files

getdayinfo.py

This is an example of how to query the sunrise/sunset time in UTC, using the api here: https://sunrise-sunset.org/api

timelapse_files.py

Using the logic from above will pasrse a directory structure and validate time is within daylight hours.

The options.ttype = 'civil' changes teh default to civil (my preference), it assumes the following directory structure:

YYYY/MM/DD/somename_YYYY-MM-DD_HHMM.jpg
e.g.
2017/09/08/mycapture_2017-09-08_1243.jpg

It will walk the tree and print to STDOUT any files in sunset/sunrise time. It also stores a copy of the sunset/sunrise so that it only has to be looked up once per date.