Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
foo foo2 |
...
used USNO site http://aa.usno.navy.mil/data/docs/RS_OneYear.php to determine civil twilight times in UT.
Data file is here pachon_twilight.dat
broke that into one file per month, called mxx.dat with xx ranging from 01 to 12. Did
...
cron entry time format is
<minute> <hour> <month-day> <month> <week-day> <command to execute>
so we want
1 22 * * * /usr/local/bin/startnight.sh
I suppose we could just go ahead and use crontab to initiate each night's data collection at the desired time, within a range of dates. Say we break things up into two week intervals. For example we could do
1 22 1-15 01 * <tasks for first half of Jan>
30 22 16-31 01 * <tasks for second half of Jan>
etc.
So let's make the table of startup times, in the format crontab wants. Make a list of
minute hour dayrange month
15 00 01-15 01
10 00 16-31 01
...
00 00 01-15 12
15 00 16-31 12
...
gphoto2 commands
shutter speed:
server:~ christopherstubbs$ gphoto2 --get-config=/main/capturesettings/shutterspeed
...