From e1a5363ae3dba34017e7d41af0bf65844bc05bf3 Mon Sep 17 00:00:00 2001 From: Alek-ban Date: Fri, 19 Dec 2025 07:40:29 +0300 Subject: [PATCH] feat: update lights deamon --- GSS2.LightsControl/Server/.env | 21 +++++++++++---------- GSS2.LightsControl/Server/lights_deamon.py | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) 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