# 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