I'm trying to create script to stop to my specified date and time. I'am making jumanji box and the vidéo must start at date and precise time and stop to specified date and time. Can you show me how to set correct format for mydate ?
#!/bin/bash
NOW=$( date '+%F_%H:%M:%S' )
MYDATE=??
while [ "$NOW" != "$MYDATE" ]
do
bash -c "DISPLAY=:0 mpv --fs $vlcopts /home/pi/Videos/Jumanji_intro.mp4"
done
Can you please help me ? Thx