|
|
||
|---|---|---|
| README.md | ||
| getdayinfo.py | ||
| timelapse_files.py | ||
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.