Remove all hardcoded deployment values; read from sky-cam.conf

- sunrise_video.10s.sh: use $TIMEZONE (was hardcoded America/New_York),
  $SUNRISE_PRE_MIN/$SUNRISE_POST_MIN for capture window, $SUNRISE_TARGET_SECS
  for output duration (was wrong value 8 in a script named 10s)
- fullday-video.sh: remove hardcoded FULLDAY_FPS/RETENTION_DAYS; both now
  come from sky-cam.conf
- 4-seasons.sh, montage-mvt.sh: export TIMEZONE after sourcing conf so
  season_info.py subprocess picks it up via env rather than falling back
  to its hardcoded America/New_York default
- sky-cam.conf: add SUNRISE_PRE_MIN, SUNRISE_POST_MIN, SUNRISE_TARGET_SECS,
  FULLDAY_FPS, RETENTION_DAYS

https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
This commit is contained in:
Claude
2026-04-19 00:14:59 +00:00
parent 713c44adb3
commit be5735867e
5 changed files with 22 additions and 11 deletions
+1 -2
View File
@@ -12,8 +12,7 @@ source "$SCRIPT_DIR/sky-cam.conf"
# ── Configuration ──────────────────────────────────────────────────────────────
base_dir="$BASE_DIR"
FULLDAY_FPS=5 # timelapse frame rate — adjust to taste
RETENTION_DAYS=10 # full-day videos older than this are deleted
# FULLDAY_FPS and RETENTION_DAYS come from sky-cam.conf
# ── Date / paths ──────────────────────────────────────────────────────────────
yesterday=$(date --date="yesterday" +%Y-%m-%d)