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:
Ratatoskr 2024-01-24 16:10:31 +01:00
parent 091d1e8d2b
commit 8b38398164
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -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