Compare commits

...

3 Commits

Author SHA1 Message Date
d68beee2b8
Added Soundfile (your-new-morning-alarm.ogg) to repo. 2024-01-24 16:15:05 +01:00
d9dc246bed
Update morning-alarm.sh script
Modify the morning-alarm.sh script to enhance clarity and maintainability. The changes involve updating the path for the mpv command to use '/data/scripts/your-new-morning-alarm.ogg' instead of the previous path '/product/media/audio/alarms/your-new-morning-alarm.ogg'. This adjustment ensures consistency with other script paths and makes it easier to locate the alarm sound file.

Changes made:
- Update the path for the mpv command to '/data/scripts/your-new-morning-alarm.ogg'

This modification simplifies the script and aligns it with the path used in other related scripts, improving overall script coherence.
2024-01-24 16:13:32 +01:00
8b38398164
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'
2024-01-24 16:10:31 +01:00
3 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ check_notification() {
turn_off_bluetooth turn_off_bluetooth
# Weckersound abspielen # Weckersound abspielen
/data/data/com.termux/files/usr/bin/mpv --replaygain=track --loop=inf /product/media/audio/alarms/your-new-morning-alarm.ogg & /data/data/com.termux/files/usr/bin/mpv --replaygain=track --loop=inf /data/scripts/your-new-morning-alarm.ogg &
# Lautstärke erhöhen und Benachrichtigung überprüfen # Lautstärke erhöhen und Benachrichtigung überprüfen
while true; do while true; do

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

BIN
your-new-morning-alarm.ogg Normal file

Binary file not shown.