Ratatoskr 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
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%