From 8b383981648626e1b4691aa68aa09c9c8d8b978a Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Wed, 24 Jan 2024 16:10:31 +0100 Subject: [PATCH] Improve wecker.sh script Adjust the SSH command in the wecker.sh script for better readability and functionality. Instead of 'cmd media_session volume --set 5 --stream 9', use the more descriptive 'cmd media_session volume scripts/--set 5 --stream 9'. Additionally, update the path for the mpv command to use '/data/scripts/your-new-morning-alarm.ogg'. This change ensures consistency and clarity in the script. Changes made: - Replace 'cmd media_session volume --set 5 --stream 9' with 'cmd media_session volume scripts/--set 5 --stream 9' - Update the path for mpv command to '/data/scripts/your-new-morning-alarm.ogg' --- wecker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wecker.sh b/wecker.sh index 3fa0505..f1df39f 100755 --- a/wecker.sh +++ b/wecker.sh @@ -235,7 +235,7 @@ if [ $current_brightness -eq $end_brightness ] && [ $current_colortemp -eq $end_ if [ "$SSH_EXECUTED" = false ]; then if [ "$DEBUG" = true ]; then echo "DEBUG: Alternative ssh command." - ssh_command "cmd media_session volume --set 5 --stream 9 && /data/data/com.termux/files/usr/bin/mpv /product/media/audio/alarms/your-new-morning-alarm.ogg" + ssh_command "cmd media_session volume scripts/--set 5 --stream 9 && /data/data/com.termux/files/usr/bin/mpv /data/scripts/your-new-morning-alarm.ogg" else ssh_command "/data/scripts/morning-alarm.sh > /dev/null" fi