remove audio for now

This commit is contained in:
2026-05-02 22:50:44 -04:00
parent 32bb10f30b
commit 9801871c8a
-15
View File
@@ -54,19 +54,6 @@ logo_cache = {}
# --- Govee API --- # --- Govee API ---
govee_api = govee.GoveeApi(device_ip=GOVEE_IP) govee_api = govee.GoveeApi(device_ip=GOVEE_IP)
# -- PyGame for Audio --
pygame.mixer.init()
def play_goal_horn():
try:
pygame.mixer.music.load("/usr/local/share/horn.mp3")
pygame.mixer.music.play()
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick(10)
except Exception as e:
print(f"Audio error: {e}")
def render_goal_frame(text, text_scale, bg_color, text_color): def render_goal_frame(text, text_scale, bg_color, text_color):
big_h = max(8, int(32 * text_scale)) big_h = max(8, int(32 * text_scale))
big_img = Image.new("RGB", (1024, 128), bg_color) big_img = Image.new("RGB", (1024, 128), bg_color)
@@ -135,8 +122,6 @@ def play_goal_celebration():
WHITE = (255, 255, 255) # unchanged WHITE = (255, 255, 255) # unchanged
TEXT = "SABRES GOAL!" TEXT = "SABRES GOAL!"
play_goal_horn()
# Phase 1: zoom in from tiny to full, alternating bg color # Phase 1: zoom in from tiny to full, alternating bg color
zoom_steps = [0.1, 0.2, 0.35, 0.5, 0.65, 0.8, 0.95, 1.1, 1.0] zoom_steps = [0.1, 0.2, 0.35, 0.5, 0.65, 0.8, 0.95, 1.1, 1.0]
for i, scale in enumerate(zoom_steps): for i, scale in enumerate(zoom_steps):