🏟 tune the stadium roster — seven sports round the clock

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 <noreply@anthropic.com>
This commit is contained in:
type-two 2026-07-07 22:49:03 +10:00
parent ea572e8493
commit 3ff105dd63

View File

@ -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)"