diff --git a/GSS2.LightsControl/Server/.env b/GSS2.LightsControl/Server/.env index f5e0f00..a5a0acb 100644 --- a/GSS2.LightsControl/Server/.env +++ b/GSS2.LightsControl/Server/.env @@ -1,10 +1,11 @@ -LED_COUNT=9 -LED_PIN=23 - -GAMMA=2.2 -TIMEOUT_SECONDS=300 - -IDLE_BRIGHTNESS=0.30 -IDLE_R=0 -IDLE_G=96 -IDLE_B=175 +LED_COUNT=9 +LED_PIN=23 + +GAMMA=2.2 +TIMEOUT_SECONDS=60 + +IDLE_SPEED=2 +IDLE_BRIGHTNESS=0.30 +IDLE_R=0 +IDLE_G=96 +IDLE_B=175 diff --git a/GSS2.LightsControl/Server/lights_deamon.py b/GSS2.LightsControl/Server/lights_deamon.py index 4ef2c46..1692116 100644 --- a/GSS2.LightsControl/Server/lights_deamon.py +++ b/GSS2.LightsControl/Server/lights_deamon.py @@ -540,7 +540,7 @@ class IdleAnimationNewYear(RunningRainbowAnimation): # Новогодняя па return super().get_pixels(time, count) today = datetime.datetime.now() -if (today.month == 12 and today.day == 31) or (today.month == 1 and today.day == 1): +if (today.month == 12 and today.day > 20) or (today.month == 1 and today.day < 10): IdleAnimation = IdleAnimationNewYear else: IdleAnimation = IdleAnimationUsual