Replies: 2 comments 1 reply
-
|
Hey Scott, I am trying to build a "plugins" section to add or remove additional displays and might try somethings for like upcoming race with a pixel outline of the track. ESPN does look like they have a driver rankings for F1 so that would be the quickest to add to the leaderboard. Anything in particular you want to see? |
Beta Was this translation helpful? Give feedback.
-
|
I am making a big assumption that if they have the standings in a page its in an API somewhere. I didn't actually check.... https://www.espn.com/f1/standings so maybe not because https://site.api.espn.com/apis/site/v2/sports/racing/f1/standings isn't what I thought it would be.... flipside looks like there is an open f1 api |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Chuck, LegoGuy, et. al.
As I mentioned previously, one of the things I'd like to see added in the future is Formula 1 racing data. Would love to start with the leaderboards. But, what I see now with the leaderboard code is a tight integration with the ESPN APIs, which is understandable. But, they don't have a lot of F1 data, currently, AFAIK. The API I do know has all this info is the jolpica-f1 API. It's pretty straightforward to get lots of data from there as it is from the ESPN APIs.
But, after looking at the leaderboard code, it's currently very tightly coupled with the ESPN APIs. So, wanted to start a discussion about how we might somehow decouple the leaderboard a bit... Maybe have per-sport, or most likely, per-API abstractions of the leaderboard code that consumes the data and creates the display images.
For the jolpica-f1 API, data gathering is super easy (see the Python code attached
f1DriverStandings.py
I used).
Again, just wanted to start the discussion and get ideas...
Thanks.
Scott
Beta Was this translation helpful? Give feedback.
All reactions