Skip to content

Add optional SavedClips minute-window filter#1033

Open
andyylin wants to merge 5 commits intomarcone:main-devfrom
andyylin:feature/sync-last-minutes
Open

Add optional SavedClips minute-window filter#1033
andyylin wants to merge 5 commits intomarcone:main-devfrom
andyylin:feature/sync-last-minutes

Conversation

@andyylin
Copy link
Copy Markdown

@andyylin andyylin commented Feb 27, 2026

This adds an optional setting to limit how much SavedClips footage is archived per event.

What is added

  • New config variable: ARCHIVE_SAVEDCLIPS_LAST_MINUTES (default 0)
    • 0 keeps existing behavior (archive all SavedClips)
    • N > 0 archives only the last N minutes of clip files from each SavedClips/<event>/ folder
  • New helper script: run/filter_savedclips_window.py
    • Parses Tesla clip timestamps from filenames
    • Applies the minute window per SavedClips event folder
    • Keeps non-SavedClips entries untouched
  • Wiring in run/archiveloop to call the helper when enabled
  • Documentation update in teslausb_setup_variables.conf.sample

Why

This allows users to reduce cloud upload time and storage by syncing only the most recent part of manually saved dashcam events (for example, last 3 minutes instead of full event clips).

@andyylin
Copy link
Copy Markdown
Author

andyylin commented Mar 1, 2026

Per marcone's feedback in #1030 (comment), changed the implementation to a helper python script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant