MLB-LED-Scoreboard / mlb-led-scoreboard

An LED scoreboard for Major League Baseball :baseball:
GNU General Public License v3.0
590 stars 105 forks source link

Introduce City Connect colors #399

Open twfarley opened 2 years ago

twfarley commented 2 years ago

This issue is a

Introduce behavior to use applicable City Connect colors on Tuesdays for home games.

WardBrian commented 2 years ago

I think different teams do city connects on different days. Nationals do it on Saturday

twfarley commented 2 years ago

Ah. Well, that makes this a lot more difficult. Unless we can pull that from stats. But I doubt it. On Aug 2, 2022, at 7:28 PM, Brian Ward @.***> wrote: I think different teams do city connects on different days. Nationals do it on Saturday

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>

WardBrian commented 2 years ago

https://statsapi.mlb.com/api/v1/schedule?sportId=1&gamePk=662476&hydrate=game(promotions)

They appear to be listed as "promotions" under the schedule endpoint if you hydrate game(promotions)

Doesn't seem like there's a super standard format for this though, see tonight's angels game for another: https://statsapi.mlb.com/api/v1/schedule?sportId=1&gamePk=663375&hydrate=game(promotions)