try fix
This commit is contained in:
+4
-2
@@ -2,6 +2,7 @@ import time
|
|||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
import govee
|
import govee
|
||||||
|
from time import sleep
|
||||||
from PIL import Image, ImageDraw, ImageFont
|
from PIL import Image, ImageDraw, ImageFont
|
||||||
from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics
|
from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics
|
||||||
|
|
||||||
@@ -119,7 +120,6 @@ def play_goal_celebration():
|
|||||||
GOLD = (252, 20, 210) # was (252, 210, 20)
|
GOLD = (252, 20, 210) # was (252, 210, 20)
|
||||||
WHITE = (255, 255, 255) # unchanged
|
WHITE = (255, 255, 255) # unchanged
|
||||||
TEXT = "SABRES GOAL!"
|
TEXT = "SABRES GOAL!"
|
||||||
govee_api.send_scene(GOVEE_AWS)
|
|
||||||
|
|
||||||
# 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]
|
||||||
@@ -166,7 +166,6 @@ def play_goal_celebration():
|
|||||||
|
|
||||||
# Hold for a moment then return to scoreboard
|
# Hold for a moment then return to scoreboard
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
govee_api.set_to_original_color()
|
|
||||||
|
|
||||||
def load_logo(league, abbr):
|
def load_logo(league, abbr):
|
||||||
key = f"{league}_{abbr}"
|
key = f"{league}_{abbr}"
|
||||||
@@ -292,7 +291,10 @@ def run():
|
|||||||
last_switch = time.time()
|
last_switch = time.time()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
govee_api.send_scene(GOVEE_AWS)
|
||||||
play_goal_celebration()
|
play_goal_celebration()
|
||||||
|
sleep(10)
|
||||||
|
govee_api.set_to_original_color()
|
||||||
|
|
||||||
# while True:
|
# while True:
|
||||||
# now = time.time()
|
# now = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user