Ratatoskr 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
2023-11-16 07:56:53 +00:00

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.
Readme 1,011 KiB
Languages
Shell 100%