Read the statement by Michael Teeuw here.
MMM-Soccer - Standings, Schedules and Top Scorers
-
@fabbr if you can send me the exact name from the API and a link to a SVG version of the logo, then I can add it
-
@strawberry-3.141 Here you can find the SVG, you’re looking for Serie-A: https://github.com/hugomiura/escudos-times-brasil-svg
Here’s the API: [{“id”:444,“caption”:“Campeonato Brasileiro da Série A”,“league”:“BSA”,“year”:“2017”,“currentMatchday”:20,“numberOfMatchdays”:38,“numberOfTeams”:20,“numberOfGames”:380,“lastUpdated”:“2017-08-24T00:40:05Z”},
The strong thing is that if I use:
leagues: {“BRAZIL”: 444},
for the configuration it doesn’t show up. but If I use:
leagues: {“ENGLAND”: 444},What am I doing wrong?
Thank you again, this is a great module!
-
@fabbr When I go to that page it says svg files are invalid
I need single svg files anyways (each team) with the api name of the team.
Here are the current icon fixes per team https://github.com/fewieden/MMM-soccer/blob/master/MMM-soccer.js#L13-L18When you tried
leagues: {'BRAZIL': 444}did you also setshow: 'BRAZIL' -
@strawberry-3.141
leagues: {'BRAZIL': 444}andshow: 'BRAZIL'worked! I changed the icon fix to include all the teams for the 2017 and 2018 competition that is about to start! Thank you!icon_fixes: { '1. FSV Mainz 05': 'https://upload.wikimedia.org/wikipedia/commons/d/d6/FSV_Mainz_05_Logo.png', 'FC Bayern München': 'https://upload.wikimedia.org/wikipedia/commons/1/1f/Logo_FC_Bayern_M%C3%BCnchen_%282002%E2%80%932017%29.svg', 'SPAL Ferrara': 'https://upload.wikimedia.org/wikipedia/de/e/e7/SPAL_Ferrara.svg', 'Benevento Calcio': 'https://upload.wikimedia.org/wikipedia/de/4/48/Benevento_Calcio_Logo.svg', ///Campeonato Brasileiro: 'Corinthians': 'https://upload.wikimedia.org/wikipedia/en/1/1f/Sport_Club_Corinthians_Paulista_Logo.png', 'Palmeiras': 'https://upload.wikimedia.org/wikipedia/commons/1/10/Palmeiras_logo.svg', 'Cruzeiro': 'https://upload.wikimedia.org/wikipedia/pt/3/36/EC_Noroeste.PNG', 'Santos FC': 'https://upload.wikimedia.org/wikipedia/commons/3/35/Santos_logo.svg', 'EC Flamengo': 'https://upload.wikimedia.org/wikipedia/en/c/c9/Flamengo_logo.svg', 'Vasco da Gama': 'https://upload.wikimedia.org/wikipedia/en/1/1a/ClubDeRegatasVascoDaGama.svg', 'Atlético Mineiro': 'https://upload.wikimedia.org/wikipedia/en/5/5f/Clube_Atlético_Mineiro_crest.svg', 'Chapecoense': 'https://upload.wikimedia.org/wikipedia/en/9/97/Associação_Chapecoense_de_Futebol_%282016%29.png', 'Grémio': 'https://upload.wikimedia.org/wikipedia/en/f/f1/Gremio.svg', 'Botafogo': 'https://upload.wikimedia.org/wikipedia/commons/5/52/Botafogo_de_Futebol_e_Regatas_logo.svg', 'Atlético PR': 'https://upload.wikimedia.org/wikipedia/commons/b/b3/CA_Paranaense.svg', 'Bahia': 'https://upload.wikimedia.org/wikipedia/en/b/b1/Esporte_Clube_Bahia_logo.png', 'Sao Paulo': 'https://upload.wikimedia.org/wikipedia/commons/6/6f/Brasao_do_Sao_Paulo_Futebol_Clube.svg', 'Fluminense FC': 'https://upload.wikimedia.org/wikipedia/en/9/9e/Fluminense_fc_logo.svg', 'Sport Recife': 'https://upload.wikimedia.org/wikipedia/en/4/45/Sport_Club_Recife.svg', 'EC Vitória': 'https://upload.wikimedia.org/wikipedia/en/4/49/Esporte_Clube_Vitória_logo.svg', 'Coritiba FC': 'https://upload.wikimedia.org/wikipedia/commons/3/38/Coritiba_FBC_%282011%29_-_PR.svg', 'Avaí SC': 'https://upload.wikimedia.org/wikipedia/commons/f/fe/Avai_FC_%2805-E%29_-_SC.svg', 'Ponte Preta': 'https://upload.wikimedia.org/wikipedia/commons/7/7e/Escudo_Oficial_Ponte_Preta.png', 'Atlético Goianiense': 'http://3.bp.blogspot.com/-Bm9JF0ZGdeQ/VR7uvQxyGLI/AAAAAAAAAj0/F-1Qss9wms0/s1600/atletico%2Bgo%2Bfirst.png', //2018 New Teams: 'América': 'https://upload.wikimedia.org/wikipedia/commons/a/ac/Escudo_do_America_Futebol_Clube.svg', 'Ceará': 'https://upload.wikimedia.org/wikipedia/en/7/7d/Ceará_SC.png', 'Internacional': 'https://upload.wikimedia.org/wikipedia/commons/f/f1/Escudo_do_Sport_Club_Internacional.svg', 'Paraná': 'https://upload.wikimedia.org/wikipedia/en/d/df/Parana.png' },
-
Is there an easy way to have multiple competitions showing at the same time? Like Having Champions League, EPL and MLS ?
I tried to create another entry on config.js but it only takes the options of the first entry.
-
@fabbr it doesn’t work out of the box, what you could do however is a workaround described in here https://forum.magicmirror.builders/post/19432
-
@strawberry-3.141 Thank you for the reply! So I did:
- Copied the Module folder
- Renamed it to module2
- Rename de module.js to module2.js
- On module2.js I changed the Module.register to module2
- Added another block on config.js with the new module2 options
And … it didn’t work.
Did I do something wrong?
-
@fabbr I have modified the module so that it works properly, cycling more than one league. No module-copying necessary. I haven’t made a pull request on github, as suggested by the module author, yet though. I’ll try to do that over Easter.
If you’re really keen, I could just zip my folder with this code change and share it with you for the time being. -
@Henrik That is so amazing. I love this community. If you won’t mind putting it on a shared folder on dropbox or google drive, just send me link to it and I will check it out. Thanks!
-
@fabbr I’ve sent the details. Note that I did this a couple of months ago and there have been a minor change or two, like updated team logos, to the module since then.
-
Hey community,
have anyone tried it with the new season 18/19 ?
-
@conkhidot I just saw that there is now a new api version and the current implementation will not work with the new season :/
-
From where do i get the ID of Bundesliga 2018 / 2019
i dont understand the content
https://www.football-data.org/documentation/quickstart -
Was looking into that too.
It looks like v1 is not working anymore:$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v1/competitions/' <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx/1.6.2</center> </body> </html>Api v2 does work:
$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/' {"count":145,"filters":{},"competitions":[{"id":2144,"area":{"id":2000,"name":"Afghanistan"},"name":"Playoffs 2/3","code":null,"plan":"TIER_FOUR","currentSeason":{"id":212,"startDate":"2018-05-22","endDate":"2018-05-27","currentMatchday":null},"numberOfAvailableSeasons":1,"lastUpdated":"2018-07-13T13:34:06Z"},{"id":2006,"area":{"id":2001,"name":"Africa"},"name":"WC Qualification","code":null,"plan":"TIER_FOUR","currentSeason":{"id":7,"startDate":"2015-10-07","endDate":"2017-11-14","currentMatchday":6},"numberOfAvailableSea............German Bundesliga would be id: 2002
$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/2002' {"id":2002,"area":{"id":2088,"name":"Germany"},"name":"Bundesliga","code":null,"plan":"TIER_ONE","currentSeason":{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},"seasons":[{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},{"id":3,"startDate":"2017-08-18","endDate":"2018-05-21","currentMatchday":34},{"id":213,"startDate":"2016-08-26","endDate":"2017-05-20","currentMatchday":null},{"id":214,"startDate":"2015-08-14","endDate":"2016-05-14","currentMatchday":null},{"id":215,"startDate":"2013-08-09","endDate":"2014-05-10","currentMatchday":null},{"id":216,"startDate":"2012-08-24","endDate":"2013-05-18","currentMatchday":null},{"id":217,"startDate":"2011-08-05","endDate":"2012-05-05","currentMatchday":null},{"id":218,"startDate":"2010-08-20","endDate":"2011-05-14","currentMatchday":null},{"id":219,"startDate":"2009-08-07","endDate":"2010-05-08","currentMatchday":null},{"id":220,"startDate":"2008-08-15","endDate":"2009-05-23","currentMatchday":null},{"id":221,"startDate":"2007-08-10","endDate":"2008-05-17","currentMatchday":null},{"id":224,"startDate":"2006-08-11","endDate":"2007-05-19","currentMatchday":null},{"id":225,"startDate":"2005-08-05","endDate":"2006-05-13","currentMatchday":null},{"id":226,"startDate":"2004-08-06","endDate":"2005-05-21","currentMatchday":null},{"id":227,"startDate":"2003-08-01","endDate":"2004-05-22","currentMatchday":null},{"id":228,"startDate":"2002-08-09","endDate":"2003-05-24","currentMatchday":null},{"id":229,"startDate":"2001-07-28","endDate":"2002-05-04","currentMatchday":null},{"id":230,"startDate":"2000-08-11","endDate":"2001-05-19","currentMatchday":null},{"id":231,"startDate":"1999-08-13","endDate":"2000-05-20","currentMatchday":null},{"id":232,"startDate":"1998-08-14","endDate":"1999-05-29","currentMatchday":null},{"id":233,"startDate":"1997-08-01","endDate":"1998-05-09","currentMatchday":null},{"id":234,"startDate":"1996-08-16","endDate":"1997-05-31","currentMatchday":null}],"lastUpdated":"2018-06-05T00:10:05Z"}But unfortunately the v2 commands have a new syntax and probably different output, so the code would need a change.
The changes are probably for the better:
https://www.football-data.org/documentation/api#changelog
but until someone spends some spare-time, we will have to do without it. -
@evroom said in MMM-Soccer - Soccer Standings:
Was looking into that too.
It looks like v1 is not working anymore:$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v1/competitions/' <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx/1.6.2</center> </body> </html>Api v2 does work:
$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/' {"count":145,"filters":{},"competitions":[{"id":2144,"area":{"id":2000,"name":"Afghanistan"},"name":"Playoffs 2/3","code":null,"plan":"TIER_FOUR","currentSeason":{"id":212,"startDate":"2018-05-22","endDate":"2018-05-27","currentMatchday":null},"numberOfAvailableSeasons":1,"lastUpdated":"2018-07-13T13:34:06Z"},{"id":2006,"area":{"id":2001,"name":"Africa"},"name":"WC Qualification","code":null,"plan":"TIER_FOUR","currentSeason":{"id":7,"startDate":"2015-10-07","endDate":"2017-11-14","currentMatchday":6},"numberOfAvailableSea............German Bundesliga would be id: 2002
$ curl -H 'X-Auth-Token:(apikey)' 'http://api.football-data.org/v2/competitions/2002' {"id":2002,"area":{"id":2088,"name":"Germany"},"name":"Bundesliga","code":null,"plan":"TIER_ONE","currentSeason":{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},"seasons":[{"id":155,"startDate":"2018-08-24","endDate":"2019-05-18","currentMatchday":null},{"id":3,"startDate":"2017-08-18","endDate":"2018-05-21","currentMatchday":34},{"id":213,"startDate":"2016-08-26","endDate":"2017-05-20","currentMatchday":null},{"id":214,"startDate":"2015-08-14","endDate":"2016-05-14","currentMatchday":null},{"id":215,"startDate":"2013-08-09","endDate":"2014-05-10","currentMatchday":null},{"id":216,"startDate":"2012-08-24","endDate":"2013-05-18","currentMatchday":null},{"id":217,"startDate":"2011-08-05","endDate":"2012-05-05","currentMatchday":null},{"id":218,"startDate":"2010-08-20","endDate":"2011-05-14","currentMatchday":null},{"id":219,"startDate":"2009-08-07","endDate":"2010-05-08","currentMatchday":null},{"id":220,"startDate":"2008-08-15","endDate":"2009-05-23","currentMatchday":null},{"id":221,"startDate":"2007-08-10","endDate":"2008-05-17","currentMatchday":null},{"id":224,"startDate":"2006-08-11","endDate":"2007-05-19","currentMatchday":null},{"id":225,"startDate":"2005-08-05","endDate":"2006-05-13","currentMatchday":null},{"id":226,"startDate":"2004-08-06","endDate":"2005-05-21","currentMatchday":null},{"id":227,"startDate":"2003-08-01","endDate":"2004-05-22","currentMatchday":null},{"id":228,"startDate":"2002-08-09","endDate":"2003-05-24","currentMatchday":null},{"id":229,"startDate":"2001-07-28","endDate":"2002-05-04","currentMatchday":null},{"id":230,"startDate":"2000-08-11","endDate":"2001-05-19","currentMatchday":null},{"id":231,"startDate":"1999-08-13","endDate":"2000-05-20","currentMatchday":null},{"id":232,"startDate":"1998-08-14","endDate":"1999-05-29","currentMatchday":null},{"id":233,"startDate":"1997-08-01","endDate":"1998-05-09","currentMatchday":null},{"id":234,"startDate":"1996-08-16","endDate":"1997-05-31","currentMatchday":null}],"lastUpdated":"2018-06-05T00:10:05Z"}But unfortunately the v2 commands have a new syntax and probably different output, so the code would need a change.
The changes are probably for the better:
https://www.football-data.org/documentation/api#changelog
but until someone spends some spare-time, we will have to do without it.Yes that explains a lot. Now i understand that its not working. would be nice if the author would update it.
-
@fox said in MMM-Soccer - Soccer Standings:
would be nice if the author would update it.
Or, you can fork the repo, make the corrections yourself, and submit a PR to the author. :-)
-
Maybe not nice for the author of MMM-Soccer, but I switched to MMM-SoccerLiveScore.
Have to wait for the competition to start to see how it really works, but the matches for August are already displayed.I modified the api commands in MMM-Soccer to be compliant with v2, but could not get the parsing right.
Am a novice to JavaScript, CSS and JSON, so that was to be expected. -
@evroom I would be more than happy, if you could try to investigate your parsing issues. In case I will find some time before my longer holidays in the states, I will try to change the api myself.
-
@strawberry-3-141 ,
I will give it a try in the next days. Might have some questions though. As said, I am a novice to JavaScript and JSON, but fit in Perl. For the moment the biggest challenge is to have a programming / test environment setup. MM is running on a Pi and perhaps it is better to have a MM instance running on my MacBook. Or even better, to be able to test the module out of MM, if possible. Will report back asap on my progress, if any.
-
It looks like I mixed up things.
You have:
MMM-soccer: uses api.football-data.org - api v1
MagicMirror-FootballLeagues: api.football-data.org - api v1
MMM-SoccerLiveScore: uses www.ta4-images.deModules using api.football-data.org - api v1 - are not working and that leaves MMM-SoccerLiveScore as the only module working at this moment.
Now … I promised to have a look at MMM-Soccer, which is MMM-soccer (small detail), to see if I can get v2 working.
So I started with github (never used it before) and got MM working on my MacBook.
Stupidly I got a copy of MMM-SoccerLiveScore and was surprised to see it working.
Only then I realised that my comments were based on MagicMirror-FootballLeagues and not on MMM-Soccer.
Not even speaking about MMM-SoccerLiveScore.Probably the heat-wave melted my brains, or what was left of it.
What to do ?
On the one hand we have MMM-SoccerLiveScore.
Install it. Configure it. Run it. Go with it.
Nothing needed.
I have it running myself.Then we have MMM-soccer and MagicMirror-FootballLeagues.
Both need to be adapted to run with api v2.
MagicMirror-FootballLeagues, owner @master117, looks to be more up-to-date and a better start than MMM-soccer.
It says to be a spin.off of MMM-SoccerLiveScore, but I do not know exactly why.
And I do not know if an adapted MagicMirror-FootballLeagues will have more possibilities over the other(s).I might give it a try, just for the fun of it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
