update readme

This commit is contained in:
2025-07-26 17:25:18 -07:00
parent b81872440f
commit a29ec39252
20 changed files with 335 additions and 95 deletions

View File

@ -3,7 +3,7 @@
# initialize all the variables
# basic things
BEGIN=$(date +%Y%m%d-%H%M%S)
WORKING_DIR="/opt/carputer/timelapse/storage/$BEGIN"
WORKING_DIR="{{ working_folder }}/storage/$BEGIN"
# be greedy about API calls
WHERES_GALI=$(curl -s http://10.18.1.1:8184/wheres_gali?api_key={{ tesla_api_key }})
# parse the one API call
@ -20,10 +20,10 @@ echo $DISPLAY_NAME >> $WORKING_DIR/info.txt
# Set the run file and fork the loop
touch $WORKING_DIR/run
source ./record_snapshots.sh &
source {{ working_folder }}/record_snapshots.sh &
# set the trap and wait
trap "source ./record_timelapse" SIGINT SIGTERM
trap "source {{ working_folder }}/create_timelapse.sh &" SIGINT SIGTERM
while true; do
echo "Running..."
sleep 1