From 3ff105dd63cab53975a86eacb29474c95fe909c7 Mon Sep 17 00:00:00 2001 From: type-two Date: Tue, 7 Jul 2026 22:49:03 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=9F=20tune=20the=20stadium=20roster=20?= =?UTF-8?q?=E2=80=94=20seven=20sports=20round=20the=20clock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Soccer, basketball, cricket (the long game), Australian football (the winter Saturday roar at home), fighting, motorsport, ice hockey. Seven calls per refresh — still ~2% of the free key's budget. Co-Authored-By: Claude Fable 5 --- workers/world_sport.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/workers/world_sport.py b/workers/world_sport.py index 70ab60b..5465433 100644 --- a/workers/world_sport.py +++ b/workers/world_sport.py @@ -27,8 +27,16 @@ from pythonosc.udp_client import SimpleUDPClient NAME = "world_sport" API = "https://www.thesportsdb.com/api/v1/json/{key}/eventsday.php?d={day}&s={sport}" -SPORTS = ["Soccer", "Basketball", "Ice Hockey"] -POLL_S = 900.0 # schedule refresh: 3 calls / 15 min — miles under the limit +SPORTS = [ # a day-round, world-round spread; one call each per refresh + "Soccer", # the world's pulse, every timezone + "Basketball", # the American evening + "Cricket", # the long game — hours-long plateaus on the inplay curve + "Australian Football", # the winter Saturday roar at home + "Fighting", # weekend-night bursts + "Motorsport", # sunday engines + "Ice Hockey", # the northern winter, back each October +] +POLL_S = 900.0 # schedule refresh: 7 calls / 15 min — still ~2% of the limit TICK_S = 10.0 # local clock: kickoff detection costs no API calls INPLAY_S = 2 * 3600 # a match "in play" for ~2h from kickoff USER_AGENT = "godstrument/1.0 (+world_sport)"