#!/bin/bash

year=$(date -u -d "20 minutes ago" '+%Y')
month=$(date -u -d "20 minutes ago" '+%m')
day=$(date -u -d "20 minutes ago" '+%d')
dayofyear=$(date -u -d "20 minutes ago" '+%j')
hour=$(date -u -d "20 minutes ago" '+%H')
minute=$(date -u -d "20 minutes ago" '+%M')

# Output these variables for debugging
echo "Year: $year; Month: $month; Day: $day; Hour: $hour; Minute: $minute"

/var/www/hurricaneshack.com/scripts/trim-sat.sh 16 $year $month $day $hour $minute "custom" "yes" "1920x1080+3184+1482" "Disturbance 1" d1
/var/www/hurricaneshack.com/scripts/trim-sat.sh 16 $year $month $day $hour $minute "custom" "yes" "1920x1080+3806+1562" "Disturbance 2" d2
