comment out the time restriction
This commit is contained in:
parent
ea43115780
commit
15f82d3e8e
1 changed files with 5 additions and 5 deletions
|
|
@ -6,12 +6,12 @@ USER="$2"
|
|||
echo "Starting wakeup music player..."
|
||||
|
||||
# Only play music between 6:00 AM and 11:00 AM
|
||||
CURRENT_HOUR=$(date +%H)
|
||||
# CURRENT_HOUR=$(date +%H)
|
||||
|
||||
if [ "$CURRENT_HOUR" -lt 6 ] || [ "$CURRENT_HOUR" -ge 11 ]; then
|
||||
echo "Not within wakeup window (6:00-11:00 AM). Current time: $(date +%H:%M). Skipping music."
|
||||
exit 0
|
||||
fi
|
||||
# if [ "$CURRENT_HOUR" -lt 6 ] || [ "$CURRENT_HOUR" -ge 11 ]; then
|
||||
# echo "Not within wakeup window (6:00-11:00 AM). Current time: $(date +%H:%M). Skipping music."
|
||||
# exit 0
|
||||
# fi
|
||||
|
||||
# Check if we've already played the alarm today
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue