Fix CAM_NAME bug, set -x noise, wrong Python package in README
daily_sunrise_video.sh: derive CAM_NAME from $1 (defaulting to SUNRISE_CAM) instead of an undefined variable; this was causing empty image/output paths. install.sh: pass $SUNRISE_CAM as argument to daily_sunrise_video.sh so it matches the pattern used by every other per-camera script. sunrise2mm.py: use SUNRISE_CAM config key (not the undefined CAM_NAME) to locate the output directory; fixes silent path mismatch on non-default names. 4-seasons.sh: remove stray `set -x` that was flooding systemd logs with shell trace output. README.md: correct Python dependencies from `ephem` to `suntime pytz` to match what sunrise.py actually imports. https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ today_date_str = today.strftime("%Y-%m-%d") # e.g., "2024-11-05"
|
||||
today_month_str = today.strftime("%Y-%m") # e.g., "2024-11"
|
||||
|
||||
# Set the full folder path for today's video
|
||||
base_video_folder = os.path.join(config.get('MOVIES_DIR', ''), config.get('CAM_NAME', 'sunrise'))
|
||||
base_video_folder = os.path.join(config.get('MOVIES_DIR', ''), config.get('SUNRISE_CAM', 'sunrise'))
|
||||
output_dir = os.path.join(base_video_folder, today_month_str, "sunrise-only")
|
||||
|
||||
# Check if the directory exists
|
||||
|
||||
Reference in New Issue
Block a user