Skip to content

Commit

Permalink
put route time atop
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Jul 2, 2024
1 parent 58e7f8e commit 0799131
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ ROUTE_INFO_GIT_DIRTY=$(echo "$ROUTE_INFO" | jq -r '.git_dirty')
# Get platform of route
ROUTE_INFO_PLATFORM=$(echo "$ROUTE_INFO" | jq -r '.platform')

# Get date since it's no longer inside the segment id
ROUTE_INFO_START_TIME=$(echo "$ROUTE_INFO" | jq -r '.start_time')

# Render speed
# RECORD_FRAMERATE = SPEEDHACK_AMOUNT * 20
SPEEDHACK_AMOUNT=$_arg_speedhack_ratio
Expand Down Expand Up @@ -493,7 +496,7 @@ else
fi

# Generate and start overlay
CLIP_DESC="Segment ID: $DISPLAYED_SEGMENT_ID, Starting Second: $STARTING_SEC, Clip Length: $RECORDING_LENGTH, \
CLIP_DESC="Segment ID: $DISPLAYED_SEGMENT_ID, Route Time: $ROUTE_INFO_START_TIME, Starting Second: $STARTING_SEC, Clip Length: $RECORDING_LENGTH, \
$ROUTE_INFO_GIT_REMOTE, $ROUTE_INFO_GIT_BRANCH, $ROUTE_INFO_GIT_COMMIT, Dirty: \
$ROUTE_INFO_GIT_DIRTY, $ROUTE_INFO_PLATFORM"
echo -n "$CLIP_DESC" > /tmp/overlay.txt
Expand Down

0 comments on commit 0799131

Please sign in to comment.