season_info.py - Add ASTRO_YEAR: year of the Winter solstice that started the current cycle (Spring/Summer/Autumn 2026 → 2025; Winter Dec-2026 → 2026) 4-seasons.sh - Daily clip output path now includes ASTRO_YEAR: movies/$name/$ASTRO_YEAR/$SEASON/Mvt$N/ montage-mvt.sh (full rewrite) - Attribution is now a drawtext overlay (top 6 s of the video, fade in/out) instead of an appended black card — no frame-size matching needed, and year-end join requires no special handling - Output path mirrors the new year-based folder structure - Sends notification via notify.sh when done - Automatically triggers year-end-join.sh after Autumn Mvt 3 year-end-join.sh (new) - Concatenates all 12 movement montages for a given ASTRO_YEAR - Output: movies/$name/$ASTRO_YEAR/$name-$ASTRO_YEAR.mp4 - Sends notification when done notify.sh + notify_config.txt (new) - Generic best-effort notification helper: ntfy, email, Mattermost text post - All methods disabled by default; user fills in notify_config.txt sky-cam.crontab + systemd/ (new) - Crontab file: sunrise at 09:00, 4-seasons at 01:00, fullday at 02:00 - systemd .service + .timer units for all three daily jobs - montage/year-end triggered internally, not by cron https://claude.ai/code/session_01C4jbd3waXG3eKZYbGUjLUQ
27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
# sky-cam crontab
|
|
#
|
|
# Install: crontab sky-cam.crontab
|
|
# (or append to existing: crontab -l | cat - sky-cam.crontab | crontab -)
|
|
#
|
|
# Set SCRIPT_DIR to wherever this repo lives on your machine.
|
|
# Logs go to /var/log/sky-cam/ — create it first:
|
|
# sudo mkdir -p /var/log/sky-cam && sudo chown $USER /var/log/sky-cam
|
|
|
|
SCRIPT_DIR=/home/motion/drives/local-2tb/sunrise-scripts
|
|
LOGDIR=/var/log/sky-cam
|
|
|
|
# ── Daily sunrise video → Mattermost (run after sunrise window ends) ──────────
|
|
# sunrise_video.10s.sh processes today's images, so run well after sunrise.
|
|
# Adjust the hour to be safely after your latest local sunrise (~09:00 is fine
|
|
# for any timezone in the continental US; change to 10:00 if unsure).
|
|
0 9 * * * $SCRIPT_DIR/sunrise_video.10s.sh >> $LOGDIR/sunrise.log 2>&1
|
|
|
|
# ── Daily Four Seasons clip (process yesterday's images, 01:00) ───────────────
|
|
# Also triggers montage-mvt.sh automatically on the last day of each movement,
|
|
# which in turn triggers year-end-join.sh after the last Autumn movement.
|
|
0 1 * * * $SCRIPT_DIR/4-seasons.sh >> $LOGDIR/4-seasons.log 2>&1
|
|
|
|
# ── Full-day timelapse (process yesterday's images, 02:00) ────────────────────
|
|
# Runs after 4-seasons.sh to avoid disk contention. Deletes videos > 10 days.
|
|
0 2 * * * $SCRIPT_DIR/fullday-video.sh >> $LOGDIR/fullday.log 2>&1
|