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.
- Änderung des Bluetooth-Ausschaltbefehls zu 'svc bluetooth disable'.
- Aktualisierung des Lautstärke-Erhöhungsbefehls.
- Verbesserte Ausgabe in der check_notification-Funktion.
- Entfernung des Timeout-Befehls bei der Überprüfung der Weckerbenachrichtigung.
- Hinzufügen von 'killall mpv' bei Beendigung des Weckers.
This script turns off Bluetooth, increases the media volume to 100%, and continuously checks if the alarm has been dismissed on the Android device. Additionally, it plays the morning alarm sound in an infinite loop until the alarm is dismissed.
- Script Name: morning-alarm.sh
- Features:
- Turn off Bluetooth
- Set media volume to 100%
- Play the morning alarm sound in an infinite loop
- Continuously check for alarm dismissal
Author: Michael Haider
Date: 17.12.2023