all working i think

This commit is contained in:
2025-07-28 06:21:45 -07:00
parent b740ba9991
commit 211930cde3
30 changed files with 900 additions and 117 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
trap "source {{ working_folder }}/create_timelapse.sh &" SIGINT SIGTERM
trap "source {{ working_folder }}/create_timelapse.sh" SIGINT SIGTERM
# initialize all the variables
# basic things
@ -12,6 +12,7 @@ CITY=$(echo $WHERES_GALI | jq .city)
STATE=$(echo $WHERES_GALI | jq .state)
ZIPCODE=$(echo $WHERES_GALI | jq .postcode)
DISPLAY_NAME=$(echo $WHERES_GALI | jq .display_name)
RUN_FILE={{ working_folder }}/run
# Generate Status Report
mkdir -p $WORKING_DIR
@ -28,8 +29,9 @@ echo "/bin/ffmpeg -r 30 -pattern_type glob -i "$WORKING_DIR/*.jpg" \\" >> {{ wo
echo "-vf "scale=1920x1080" -vcodec libx264 /$WORKING_DIR/00-timelapse.mp4" >> {{ working_folder }}/generate_timelapses.sh
# capture time
touch $RUN_FILE
i=1
while [ $i ]
while [ -e $RUN_FILE ]
do
FILENAME=$(printf "img-%05d" "$i")
# old API based latlon