What i am trying to do

I want to separate movie shooting every time the condition is judged.


1 minute to update the condition judgment data
⇒Set the time in the unit file

Video recording time is
Set in the program
In this way, it will end at the time of shooting until the time specified in the condition determination, so
The video just before the judgment is not taken.

Is there any better way than adjusting the time within the program?

Criteria judgment

Data is updated (added) to the CSV file every minute.
It is judged whether the condition is satisfied for the latest data added.