jclarke0000 / MMM-MyScoreboard

Module for MagicMirror to display today's scores for your favourite teams across multiple sports.
MIT License
69 stars 32 forks source link

Wondering if you could add and AFL option? #15

Open timmy16744 opened 5 years ago

timmy16744 commented 5 years ago

Australian league football that is. <3

jclarke0000 commented 1 year ago

@timmy16744 Do you know of a public data feed that provides scores for this league? The two providers I am using -- SNET and ESPN -- do not include AFL in their feeds.

spicerackk commented 1 year ago

I found this for a potential NRL feed for live scores, not sure how useful it is for you though:

https://rapidapi.com/fluis.lacasse/api/allsportsapi2

gmanual commented 1 year ago

I've done a bit of work manually getting my project to display NRL teams.

After some review I believe I found the relevant undocumented endpoints that match URL's this plugin already uses.

I can tell you now, if you add these sports (mainly AFL & NRL) a lot of aussies will be thankful.

"AFL": "australian-football/afl" https://site.api.espn.com/apis/site/v2/sports/australian-football/afl/scoreboard

"NRL": "rugby-league/3" https://site.api.espn.com/apis/site/v2/sports/rugby-league/3/scoreboard

For Rugby Union: (rugby/id) https://site.api.espn.com/apis/site/v2/sports/rugby/id/scoreboard https://www.espn.com.au/rugby/table - League ID is in the URL.