I'm interested in capturing a time lapse photo sequence every morning at sunrise.

I'm able to get the exact sunrise time using a Python script into a variable, but not sure how to go about setting the time trigger for the camera.

closed as off-topic by Jacobm001, dhruvvyas90, Bex, mpromonet, Ghanima Jul 28 '15 at 6:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Jacobm001, dhruvvyas90, Bex, mpromonet, Ghanima
If this question can be reworded to fit the rules in the help center, please edit the question.


The simplest might be to create a delayed job each day from your python script. You can install the at command for one-shot jobs like this if the time varies each day (sudo apt-get install at). One plus to this approach is that you could have your python script schedule several days' worth of captures in one go rather than checking each day.

Alternately, you could have your python script just idle and call the raspistill executable at the appropriate time. If you prefer to control the camera directly, you can use something like picamera. I used this to run a timelapse sequence over several months.

Not the answer you're looking for? Browse other questions tagged or ask your own question.