Auto-delete old unpinned sunrise posts from Mattermost after each upload
sunrise2mm.py: after a successful upload, scan the channel and delete any
post older than MM_SUNRISE_RETENTION_DAYS that is not pinned and has a file
attachment. Pinned posts are always preserved regardless of age.
sky-cam.conf: add MM_SUNRISE_RETENTION_DAYS=8 (independent of the local
disk SUNRISE_RETENTION_DAYS so the two retentions can differ).
Also modernises sunrise2mm.py: uses the same ${VAR:-default} aware
read_config as sunrise.py, consistent error handling, cleaner structure.
https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
This commit is contained in:
@@ -225,6 +225,9 @@ SUNRISE_OVERLAY_OPACITY=0.45
|
||||
# Delete daily sunrise videos older than this many days (rolling window).
|
||||
# Set 0 to keep forever.
|
||||
SUNRISE_RETENTION_DAYS=10
|
||||
# Delete unpinned sunrise posts from Mattermost older than this many days.
|
||||
# Pinned posts are always kept regardless. Set 0 to disable Mattermost cleanup.
|
||||
MM_SUNRISE_RETENTION_DAYS=8
|
||||
|
||||
# ── Video encoding quality ────────────────────────────────────────────────────
|
||||
# FFmpeg CRF: lower = higher quality / larger files. Typical range 18–30.
|
||||
|
||||
Reference in New Issue
Block a user