Read the statement by Michael Teeuw here.
MMM-Soccer - Standings, Schedules and Top Scorers
-
@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.
-
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.
-
@evroom I never heard of footballleagues.
When I’m correct then soccerlivescroe display the matches and this module display the standings so the modules follow different approaches.
-
Both modules display matches and standings.
https://github.com/master117/MagicMirror-FootballLeagues
https://github.com/LukeSkywalker92/MMM-SoccerLiveScore
Differences might be in the extra possibilities of the api and therefore additional possibilities for the module.
For example football-data.org v2 can show you the squad. -
I updated the module to work with api v2. One problem that I figured out so far is that the api no longer provides links to the club logos, therefore I added a config option
logos
to hide them.It’s under construction and can be tested on the develop branch
git checkout develop
[card:fewieden/MMM-soccer]
-
I have it running. Added “NETHERLANDS”, 2003.
I found out that v1 is still available, but only for pre-World Cup stuff.
But that means you can use v1 for the logos:
http://api.football-data.org/v1/teams/57
http://upload.wikimedia.org/wikipedia/en/5/53/Arsenal_FC.svgYou could add a separate league number_league name_team_logo.json file, with a collection of team logos.
Per league, per team.
Then users can add missing logos themselves and perhaps share their collection with you to be put on github.
Just an idea.In the meantime I will try to contact the football-data.org person to ask what happened to the logos in v2.
Hope you are not offended when I say that SoccerLiveScore has it all.
Except for 2 things that are unique for your module:
focus and number of teams to show on the table.
Cannot say if the sources of data is equally well maintained, so cannot say if it is worth the trouble of coding, unless it brings you pleasure. -
@evroom well we had problems in v1 already that logos were taken down due to copyrights and I sent the api owner updated links, that were never added, so I don’t think that it will come back in v2. For the same reason I also don’t want to host the files on github. I think mostly the german league was the problem, why I added a logic to overwrite broken image links from the api.
It looked like this:
{ 'CLUBNAME': 'https://CLUBLOGO.svg' },
if you want to start collecting the logo links in an object where the key is the club name then i can add them to my list. But I don’t have the time to do so myself.