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'
This commit is contained in:
parent
091d1e8d2b
commit
8b38398164
@ -235,7 +235,7 @@ if [ $current_brightness -eq $end_brightness ] && [ $current_colortemp -eq $end_
|
|||||||
if [ "$SSH_EXECUTED" = false ]; then
|
if [ "$SSH_EXECUTED" = false ]; then
|
||||||
if [ "$DEBUG" = true ]; then
|
if [ "$DEBUG" = true ]; then
|
||||||
echo "DEBUG: Alternative ssh command."
|
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
|
else
|
||||||
ssh_command "/data/scripts/morning-alarm.sh > /dev/null"
|
ssh_command "/data/scripts/morning-alarm.sh > /dev/null"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user