PLAY controlled by script

This commit is contained in:
Karl Hudgell 2024-09-20 12:41:49 +01:00
parent b633706e56
commit 41b50d3bf9

View File

@ -18,7 +18,6 @@ if sudo fdisk -l | grep -q "$DEVICE_NAME"; then
echo "$(date) Running Python script with argument: '$var'" >> $LOGFILE
# Run the Python script and capture both stdout and stderr to the log
/usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py "$var" >> $LOGFILE 2>&1
/usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py PLAY >> $LOGFILE 2>&1
else
echo "$(date): No floppy disk is present in device $DEVICE_NAME" >> $LOGFILE
/usr/bin/systemd-mount --umount /mnt/floppy