69 Commits

Author SHA1 Message Date
e8599fda30
Update wecker.sh script
This commit includes changes to the 'wecker.sh' script:
- Added '&' to run 'killall mpv' command in the background to avoid blocking.
- Modified the invocation of 'rgb.sh' to redirect output to /dev/null and run it in the background.
- Improved comments and formatting in the script.

These changes aim to optimize script execution and enhance readability.

Note: Ensure that the 'rgb.sh' script runs as expected in the background.
2024-02-13 09:48:10 +01:00
5224de0d20
Refactor alarm script and integrate RGB control
This commit refactors the 'wecker.sh' script to enhance functionality and integrate RGB control.

Changes:
- Removed redundant color variables (red, green, blue) as RGB control is now managed by an external script.
- Replaced 'set_color' function with a call to the 'rgb.sh' script for RGB control.
- Introduced the use of 'pkill rgb.sh' to stop the RGB script when the alarm is turned off.
- Added the execution of 'rgb.sh' at the end of the script for dynamic color cycling.
- Enhanced code readability and removed unnecessary sleep commands for color cycling.
- Modified the 'check_notification' function to ensure proper termination of the RGB script.

Usage:
1. Ensure the 'rgb.sh' script is available in the specified path.
2. Run the 'wecker.sh' script to manage alarms with integrated RGB control.

Note: Adjust the paths and dependencies based on your system configuration and requirements.
2024-02-09 08:37:27 +01:00
987469140e
Initial commit for RGB Cycling Script
This commit introduces the RGB Cycling Script for the ioBroker Zigbee Adapter.
The script is designed to cycle through RGB colors on an ioBroker device using a zigbee adapter.

Author: Michael Haider

Description:
- The script defines RGB colors: red, green, and blue.
- A function 'set_color' is created to set the color on the ioBroker device.
- The main loop continuously cycles through the colors: green, red, and blue.
- Instructions are provided in the script header to replace the ioBroker address for controlling the color.

Usage:
1. Ensure the script has execution permissions (chmod +x rgb.sh).
2. Replace 'zigbee.0.04cd15fffee03198.color' with the actual ioBroker address for color control.
3. Run the script to start cycling through RGB colors.

Note: Adjust the sleep intervals or uncomment the sleep commands based on your preferences.
2024-02-09 08:35:24 +01:00
a61f9f2d2d
Initial commit of weather.sh script
This script retrieves current weather information from OpenWeatherMap API. It includes:
- OpenWeatherMap API key for data retrieval.
- Location settings for specifying the city and country.
- API request using cURL to fetch weather data.
- Extraction of relevant information from the JSON response using jq.
- Conversion of temperature from Kelvin to Celsius.
- Formulation of the weather information in a formatted English text.
- Output of the weather information.

Author: Michael Haider
Date: 2024-02-08
2024-02-08 16:03:47 +01:00
0a77d93643
Update wecker.sh script
- Add an echo statement to output the current notification information when the alarm is turned off.
- Call 'generate_text.sh' script from '/root/iobroker_scripts/general/' when the alarm is turned off, providing a visual notification update.
- Remove the call to 'generate_text.sh' when the alarm is dismissed, as it is now handled when the alarm is turned off.
2024-02-08 16:01:53 +01:00
eb6911acf8
Update generate_text.sh script
- Add 'weather' to the 'all' array, allowing inclusion of weather information in the generated text.
- Create directories /sdcard/.mp3/ and /sdcard/.text/ to store MP3 and text files respectively.
- Update txt_dir and mp3_dir paths to use /sdcard/ instead of /root/iobroker_scripts/general/.
- Modify the 'generate_text' function to include weather information in both German and Spanish.
- Create an HTML file (handout.html) for better presentation of text information.
- Style the HTML content with a table for improved readability.
- Add processing messages for each component during HTML generation.
- Extract IP address retrieval into a separate function 'check_ip'.
- Transfer the HTML and text files to A72's /sdcard/ directory using SCP.
- Start 'generate_mp3.sh' on A72 asynchronously using nohup.
2024-02-08 16:01:06 +01:00
b1390cb435
Enhance generate_mp3.sh script
- Add 'weather' to category_order array to include weather information in the generated MP3 files.
- Create directories /sdcard/.mp3/ and /sdcard/.text/ to store MP3 and text files respectively.
- Update txt_dir and mp3_dir paths to use /sdcard/ instead of /data/scripts/.
- Modify the 'am start' command to open handout.html in a Chromium tabbed activity for better compatibility.
- Remove unnecessary commented-out am start command and replace it with an updated command.
- Improve comments for better script understanding.
2024-02-08 15:59:47 +01:00
59e5ffc91a
Initial commit for play.sh script:
- Create play.sh script to play an alarm sound with increasing volume using the mpv player.
- The script iterates through different volume levels (20 to 100 in increments of 10).
- Utilize pkill to terminate any previous mpv processes before starting a new one.
- Incorporate comments for script header, loop, and process handling.
- Add wait command to ensure the completion of each mpv process before starting the next one.
- Created: 06.02.2024
- Description: Script to play an alarm sound with increasing volume.
2024-02-06 17:43:54 +01:00
4fe4ef7de7
Refactor generate_text.sh script:
- Replace HTML file creation with Markdown content generation for improved simplicity and readability.
- Construct Markdown content with a header, table, and row entries based on the generated text components.
- Introduce a curl_command variable to construct and echo the curl command for sending a notification to A72.
- Display the constructed Markdown content for debugging purposes.
- Transfer text files to A72's sdcard instead of the scripts directory.
- Start generate_mp3.sh on A72 using nohup and ssh.
- Adjust comments and remove unnecessary HTML file display section.
- Overall, enhance the script structure, content creation, and notification handling in generate_text.sh.
2024-02-06 17:41:48 +01:00
a5076ae046
Enhance morning-alarm.sh script:
- Clear morning-alarm.log before logging execution timestamp.
- Set a flag 'alarm_dismissed' for loop control.
- Modify the check_notification function to continuously check the alarm state and sleep for better efficiency.
- Start play.sh script in the background.
- Replace 'killall' with '/system/bin/pkill' for better compatibility.
- Introduce sleep intervals for smoother execution.
- Adjust the volume increment loop and add sleep before checking the notification.
- Properly exit the script when the alarm is dismissed, killing play.sh and mpv.
- Overall improvements for better readability and functionality in the morning-alarm.sh script.
2024-02-06 17:40:40 +01:00
41f3b3a4d2
Refactor HTML generation, improve Markdown content creation, and update notification mechanism in generate_text.sh:
- Refactored HTML file creation with Markdown content construction for clarity and conciseness.
- Removed the HTML file generation block and replaced it with a Markdown content string.
- Updated the notification mechanism using the constructed Markdown content and a curl command.
- Display the constructed Markdown content instead of the HTML file.
- Updated the file transfer destination to the A72 device's /sdcard/ directory for generate_text.sh.
2024-02-06 17:39:37 +01:00
0fb0ae1e48
Refactor directory comment, update file opening command, and improve German MP3 creation comment in generate_mp3.sh:
- Refactored a directory comment in the script for clarity.
- Updated the file opening command to use the correct path (/sdcard/handout.html).
- Improved the comment explaining the creation of German MP3 files.
2024-02-06 17:38:20 +01:00
45955451d7
Update wecker.sh script
The wecker.sh script has been modified with the following changes:

1. Modified the 'check_notification()' function to exit the entire script using 'exit' instead of 'return' when the alarm is turned off or the phone is unreachable. This ensures the script terminates completely in these scenarios.

2. Adjusted the 'sleep_duration' calculation to subtract 3 seconds, enhancing the script's timing accuracy during gradual adjustment of brightness and color temperature.

3. Changed the ssh command in the loop to use 'nohup' and 'tee' for logging the morning-alarm.sh output to a file named 'morning-alarm.log'. This modification improves logging and captures script output for later analysis.

These changes enhance the wecker.sh script by improving script termination logic, adjusting sleep duration for better timing accuracy, and enhancing logging during the execution of the morning-alarm.sh script.
2024-02-01 13:57:03 +01:00
62243df8ac
Update morning-alarm.sh script
The morning-alarm.sh script has been modified with the following changes:

- Added the 'break' statement after killing the mpv process to exit the loop when the alarm is dismissed. This prevents unnecessary iterations and improves script efficiency.
- Commented out the line 'killall /data/data/com.termux/files/usr/bin/mpv' since it seems to be redundant after the 'killall mpv' command. If this line is intended for different use, it may need further clarification or context.

These changes enhance the morning-alarm.sh script by optimizing the loop's termination when the alarm is dismissed, improving script efficiency and preventing unnecessary iterations. The redundant 'killall' line has been commented out for clarification.
2024-02-01 13:55:59 +01:00
313e9c8737
Update generate_text.sh script
The generate_text.sh script has been modified with the following changes:

- Updated the variable name 'markdown_file' to 'html_file' to reflect the change in the file format from Markdown to HTML.
- Modified the HTML structure to create a formatted table for the handout, enhancing readability and presentation.
- Added inline CSS styling to the HTML file to improve the table layout and appearance.

These changes improve the generate_text.sh script by switching from Markdown to HTML for better presentation and readability of the handout. Additionally, the HTML table is now more structured and visually appealing.

The commit also includes the removal of the previous notification-related code, which was commented out and not in use.

The goal is to enhance the script's functionality and improve the presentation of the generated handout in HTML format.
2024-02-01 13:54:36 +01:00
382e28c481
Update generate_mp3.sh script
The generate_mp3.sh script has been updated with the following changes:

- Added a comment to specify the directory for MP3 files.
- Implemented a command to open the handout.md file using the 'am start' command.
- The 'am start' command opens the file in VIEW mode with the 'text/plain' MIME type.
- This enhancement provides a convenient way to access the handout.md file directly.

The commit aims to improve the functionality and user experience of the generate_mp3.sh script by enabling easy access to the handout file.
2024-02-01 13:53:31 +01:00
a8a923d16b
Refactor A72_alarm_getter.sh script
The A72_alarm_getter.sh script has been refactored for improved readability and clarity. Changes include:

- Updated script header with standardized information.
- Changed German comments to English for consistency.
- Improved comments and added explanations for key sections.
- Reorganized code structure for better flow.
- Enhanced variable names for increased understanding.
- Added debug information for 'at' jobs.
- Modified output messages for better user understanding.
- Ensured consistent formatting throughout the script.
- Fixed indentation issues and removed unnecessary spaces.

The commit aims to make the script more maintainable and user-friendly, following best practices for scripting.
2024-02-01 13:51:24 +01:00
1bb6546100
Improve morning-alarm.sh script
Enhancements:
- Adjusted the way the alarm sound is played by introducing a loop to increase volume gradually.
- Utilized a loop to iterate over volume levels from 10 to 100 with increments of 10.
- Replaced the previous mpv command with a loop to control the volume for a smoother alarm experience.

Code Clarity:
- Added comments to clarify the purpose of the loop and volume adjustment.

Note: This modification provides a more gradual increase in volume for the morning alarm, enhancing the user experience.
2024-01-30 23:18:20 +01:00
89fd2f2f8c
Improve morning-alarm.sh script
Enhancements:
- Adjusted the way the alarm sound is played by introducing a loop to increase volume gradually.
- Utilized a loop to iterate over volume levels from 10 to 100 with increments of 10.
- Replaced the previous mpv command with a loop to control the volume for a smoother alarm experience.

Code Clarity:
- Added comments to clarify the purpose of the loop and volume adjustment.

Note: This modification provides a more gradual increase in volume for the morning alarm, enhancing the user experience.
2024-01-30 22:39:21 +01:00
14dcb406c6
Enhance generate_text.sh script
Addition of Markdown File:
- Introduce a Markdown file 'handout.md' to store information in a structured format.
- Markdown file is created with headers, columns, and content for German and Spanish text.

Refactoring and Cleanup:
- Declare 'markdown_file' variable to store the path of the Markdown file.
- Introduce 'all' array to store components like 'date' and 'time'.
- Clear files in 'text_dir' at the beginning to ensure a clean start.

File Transfer and Notification:
- Use 'scp' to transfer files to A72, maintaining the directory structure.
- Enhance the curl command to include the Markdown file as an attachment.
- Set the 'Filename' header for better identification on the server.
- Display the constructed curl command for visibility.
- Execute the curl command to send a high-priority notification with the Markdown file.

Logging and Output:
- Display the content of the generated Markdown file.
- Initiate 'generate_mp3.sh' on A72 in the background.

Note: Adjusted the output formatting for better readability in the commit message.
2024-01-30 22:38:26 +01:00
2badabb616
Refactor script to generate MP3 files
In this commit, I made several improvements to the 'generate_mp3.sh' script:

1. Removed old complete files before processing to ensure a clean slate.
2. Modified the 'create_mp3_files' function to use '>>' instead of '>' when appending text to the complete files.
3. Updated the comments in the script for better clarity.

These changes help maintain a more organized and reliable MP3 generation process. The script now properly appends text to the 'de_complete.txt' and 'es_complete.txt' files, and it removes old complete files before starting the processing.

File Changes:
- Modified 'generate_mp3.sh' (see diff for details)

Note: Please review and test the changes to ensure they meet your requirements.
2024-01-29 13:31:29 +01:00
53000fc607
Refactor wecker.sh script
- Commented out 'set -e' and 'set -x' to prevent stopping the script on errors and disable debugging by default.
- Introduced functions set_brightness, set_colortemp, and set_color for better code organization.
- Modified brightness and color temperature commands to use the new functions.
2024-01-27 00:21:00 +01:00
122fdc6669
Added generate_text.sh script:
- Author: Michael Haider
- Created on: 26.01.2024
- Description: This script generates various text files with information such as date, time, news, and weather in German and Spanish.
- The script includes functions to check the IP address of Lisa's iPhone, generate text files in German and Spanish, transfer files to the A72 device, and start generate_mp3.sh on the A72.
- The generated texts are outputted in both German and Spanish.
2024-01-26 23:50:24 +01:00
e2b06dab34
Initial commit
Added generate_mp3.sh script:
- Author: Michael Haider
- Created on: 26.01.2024
- Description: This script generates MP3 files from text files in German and Spanish using gtts-cli (Google Text-to-Speech).
- The script exports the path to the programs, defines language and category order, sets directories, and includes a function to create MP3 files.
- The generated MP3 files are created with gtts-cli in German or Spanish slow mode based on the file content.
- The script then sets the media volume and loops through categories and languages to play the generated MP3 files at normal or half speed, based on the language indication.
2024-01-26 23:49:50 +01:00
6d5ce74f08
Refactor wecker.sh script
Made the following changes to the wecker.sh script:
- Adjusted comments and translated the comments and script messages into English for better clarity.
- Introduced error handling for SSH commands, Bluetooth operations, and volume adjustments to ensure the script exits gracefully in case of failures.
- Updated variable names for consistency and improved overall readability of the script.
- Removed unnecessary debug-related code and streamlined the script structure.
- Addressed formatting issues for better code presentation.
2024-01-26 23:47:53 +01:00
fe66c936c4
Refactor morning-alarm.sh script
Adjusted comments and translated the comments and script messages into English for better clarity. The script now provides more informative output during its execution, including status messages for Bluetooth operations, volume adjustment, and alarm notification checks. Additionally, introduced error handling for Bluetooth and volume adjustment operations to ensure the script exits gracefully in case of failures.

The main program section and function names have been retained for continuity, but the script's overall readability and understandability have been improved through language translation and comments rephrasing.
2024-01-26 23:47:02 +01:00
4bb7048638
Fix weckzeit_datei path in A72_alarm_getter.sh
Corrected the path for the 'weckzeit_datei' variable in A72_alarm_getter.sh script. The original path was pointing to '/root/iobroker_scripts/generel/.weckzeiten.txt' and has been updated to the correct path '/root/iobroker_scripts/general/.weckzeiten.txt'.

This ensures that the script can accurately locate and utilize the 'weckzeit_datei' file, preventing potential issues related to the incorrect file path.
2024-01-26 23:45:34 +01:00
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
091d1e8d2b
Improve script execution and debugging
- Enabled debugging mode to provide a more detailed log when needed.
- Modified the interval in the check_ip function to 5 seconds for better accuracy in IP retrieval attempts.
- Refactored the sleep_duration calculation to ensure it accurately reflects the intended duration between adjustments.
- Adjusted the loop in gradual adjustment to start from 1, ensuring the initial values are set correctly.
- Replaced multiple consecutive '&& sleep' statements with separate lines for improved readability.
- Simplified the error handling in check_ip and check_notification functions for clarity.
- Removed unnecessary '|| true' statements in error handling.
- Added echo statements to print the light status when it is off in check_external_light_status.
- Improved comments for better script understanding.

These changes enhance the script's execution, improve debugging capabilities, and make the code more readable and maintainable.
2023-12-30 16:41:23 +01:00
05af18857a
Refactor brightness and colortemp_step calculations
- Simplified calculation of brightness_step and colortemp_step for better readability.
- Corrected the calculation of reached final values for brightness and color temperature.
- Introduced sleep_duration variable for improved flexibility in sleep intervals.
- Adjusted the loop to start from 0 to correctly set the initial values.
- Added a comment to clarify the purpose of the loop and its iteration.
- Set the current_brightness and current_colortemp directly to the end values after the loop, ensuring they reach the intended final values.
- Moved the sleep_duration calculation inside the loop for consistency.

This refactoring enhances the script's clarity and ensures accurate calculation of brightness and color temperature steps during the gradual adjustment process. The changes also include improvements in sleep duration handling.
2023-12-30 12:01:12 +01:00
5ecd10a431
Refactor wecker.sh script for better readability and functionality
- Updated comments for better clarity and documentation
- Introduced a DEBUG variable to toggle debugging information
- Utilized set -e to stop the script on errors for better error handling
- Corrected the script flow to ensure proper execution of color changes
- Introduced a new ssh_command function for executing SSH commands
- Improved check_ip function for finding the IP address more reliably
- Added DEBUG checks to bypass certain functions for debugging purposes
- Fixed issues with sleep intervals during script execution
- Improved logging by adding echo statements for important steps
- Adjusted variable names for better readability
- Removed unnecessary comments and debug statements
- Added set -e for better error handling
- Introduced command-line option -d for enabling DEBUG mode
- Improved formatting and indentation for better code readability
2023-12-29 22:01:23 +01:00
3d2605a8f8
Refactor wecker.sh script for better readability and functionality
- Updated comments for better clarity and documentation
- Introduced a DEBUG variable to toggle debugging information
- Utilized set -e to stop the script on errors for better error handling
- Corrected the script flow to ensure proper execution of color changes
- Introduced a new ssh_command function for executing SSH commands
- Improved check_ip function for finding the IP address more reliably
- Added DEBUG checks to bypass certain functions for debugging purposes
- Fixed issues with sleep intervals during script execution
- Improved logging by adding echo statements for important steps
- Adjusted variable names for better readability
- Removed unnecessary comments and debug statements
- Added set -e for better error handling
- Introduced command-line option -d for enabling DEBUG mode
- Improved formatting and indentation for better code readability
2023-12-29 21:55:49 +01:00
aa04b75e41
Adjustments to wecker.sh script:
- Reordered the iobroker state set commands to set colortemp at the end for better consistency.
- Removed unnecessary ping test in the check_ip function.
- Cleaned up the check_notification function, removed unnecessary echo statements.
- Adjusted the sleep time in the check_notification function to 5 seconds.
- Updated comments and removed unnecessary comments for clarity.
- Minor formatting improvements for better readability.
- Added missing code in the color change loop, now it changes colors as intended. (hopefully)
- Removed redundant comments at the end of the script.

These changes enhance the script's clarity, remove unnecessary code, and ensure proper functionality.
2023-12-28 21:51:20 +01:00
9dfa7f7623
Optimierung von A72_alarm_getter.sh
- Entfernen des nicht benötigten Ping-Tests in der check_ip-Funktion.
- Kommentieren des Codes zum Löschen überholter 'at'-Jobs, da er derzeit auskommentiert ist (Muss ich mich ein anderes mal drum kümmern).
2023-12-28 20:33:37 +01:00
426cbc55e5
Hinzufügen von Ausgabe für Ausführungszeitpunkt 2023-12-28 20:29:52 +01:00
8c3bfed83f
Fix syntax error in check_ip function and handle unsuccessful attempts. Update wecker.sh: Fix syntax error in 'for' loop 2023-12-27 12:47:55 +01:00
a44e6c91ba
Update A72_alarm_getter.sh
- Adjusted the curl command to include the message data directly without the 'Priority' header.
2023-12-26 17:11:30 +01:00
dde161ae61
Improve IP resolution and add retry mechanism
- Modified the IP resolution process to allow for multiple attempts with a specified interval.
- Added a retry mechanism to check the IP address multiple times before considering it unsuccessful.
- If the target IP cannot be found after the specified number of attempts, an error message is displayed.
- Updated the SSH command to run the alarm script in the background.
2023-12-26 17:01:34 +01:00
5f7abef59d
Improve IP resolution and add retry mechanism
- Modified the IP resolution process to allow for multiple attempts with a specified interval.
- Added a retry mechanism to check the IP address multiple times before considering it unsuccessful.
- If the target IP cannot be found after the specified number of attempts, an error message is displayed.
- Updated the SSH command to run the alarm script in the background.
2023-12-22 17:51:48 +01:00
4761bfea0f
Refactor Wecker Script for Improved Readability and Functionality
- Combined IP retrieval and ping test into a single function 'check_ip'.
- Improved error handling for better script robustness.
- Removed unnecessary commented-out code and added comments for clarity.
- Ensured consistency in indentation and formatting.

Author: Michael, Haider
Date: 22.12.2023
2023-12-22 15:07:05 +01:00
3dd4f72a0e
Fix Weckzeit Calculation and Refactoring
- Corrected the calculation of the variable 'lightsOn' to ensure the correct time is set for turning on lights.
- Refactored the script by combining the IP retrieval and ping test into a single function 'check_ip'.
- Improved error handling and added comments for better readability.

Author: Michael, Haider
Date: 22.12.2023
2023-12-22 15:05:00 +01:00
11ae8bfaf6
Update MAC address in check_ip function
Changed the MAC address in the check_ip function to '1e:46:8c'.
2023-12-22 10:07:40 +01:00
c5d7167bb1
Keep only the next 'at'-job and delete all future jobs in A72_alarm_getter.sh
Modified delete_expired_at_jobs function to retain only the next 'at'-job and delete all upcoming jobs. This ensures that only the immediate 'at'-job remains scheduled.
2023-12-22 09:42:28 +01:00
76d38622c6
Aktualisiere IP-Adressen in A72_alarm_getter.sh und wecker.sh:
- Ändere die MAC-Adresse in beiden Skripten auf '18🆎1d' für die Funktion check_ip.
2023-12-22 09:09:17 +01:00
5bb790bb3b
Aktualisiere Wecker-Script:
- Geänderte Mac-Adresse für die Funktion check_ip.
- Verwende 'arp-scan' für die IP-Ermittlung.
- Verbesserte Ausgabe und Wartezeit in der Funktion check_notification.
- Start des Alarm-Scripts auf dem Handy mit protokollierter Ausgabe.
2023-12-22 08:05:08 +01:00
43564c52ac
Verbesserungen am Wecker-Script:
- Geänderte Mac-Adresse für Lisas iPhone in check_ip-Funktion.
- Verbesserte Ausgabe und Wartezeit in der check_notification-Funktion.
- Angepasste Schritte und Dauer für die Helligkeits- und Farbtemperaturanpassung.
- Start des Alarm-Scripts auf dem Handy ohne protokollierte Ausgabe.
2023-12-19 17:16:47 +01:00
728966a0d6
Anpassungen am morning-alarm.sh Skript:
- Ä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.
2023-12-18 12:58:44 +01:00
2d15fe099c
Anpassungen am Wecker-Script:
- Geänderte Mac-Adresse für Lisas iPhone in check_ip-Funktion.
- Verbesserte Ausgabe in der check_notification-Funktion.
- Angepasste Schritte und Dauer für die Helligkeits- und Farbtemperaturanpassung.
- Start des Alarm-Scripts auf dem Handy mit protokollierter Ausgabe.
2023-12-18 12:56:31 +01:00