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.
wecker
Wecker-Skript mit Helligkeits- und Farbtemperaturanpassung für ioBroker Dieses Skript passt die Helligkeit schrittweise an und ändert die Farbtemperatur von warmweiß zu kaltweiß über die ioBroker-Steuerung. Es erhöht die Helligkeit von 1 auf 100 und ändert die Farbtemperatur von 1600 (warmweiß) auf 0 (kaltweiß) innerhalb von 15 Minuten.
Description
Wecker-Skript mit Helligkeits- und Farbtemperaturanpassung für ioBroker
Dieses Skript passt die Helligkeit schrittweise an und ändert die Farbtemperatur von warmweiß zu kaltweiß über die ioBroker-Steuerung. Es erhöht die Helligkeit von 1 auf 100 und ändert die Farbtemperatur von 1600 (warmweiß) auf 0 (kaltweiß) innerhalb von 15 Minuten.
Languages
Shell
100%