Read the statement by Michael Teeuw here.
MMM-Soccer - Standings, Schedules and Top Scorers
-
@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.
-
Thanks for the background info.
Did not know it was an issue before, but then again I am a novice MM user.Time and mood is always an issue.
Better for cold evenings or weekends, not when it is 35 degrees and having spent 8 hours behind a PC in a relatively hot office 😀 -
I just released version 2 of this module
Added
- Club logo downloader
- New config option
logos
. - Swedish translations
- Documentation
- Doclets.io integration
- Contributing guidelines
- Issue template
- Pull request template
- Editor config
Changed
- Switched from Api v1 to v2.
- Updated league ids.
- Switched rendering from js to nunjuck template.
- Updated travis-ci config.
- Disabled markdown lint rules
MD024
andMD026
[card:fewieden/MMM-soccer]
-
Hi,
Great job on version 2.0.
I have it running.
Added Eredivisie and some logos; all fine.Just one question.
In your example your header is left aligned and shows “1. BUNDESLIGA 2015/16”.
Not updated to show the version 2.0 example.
When I choose the Bundesliga I just get “BUNDESLIGA” and it is right aligned.
How do I get it at least left aligned ?
I tried adding this to the custom.css, but it doesn’t work:.MMM-soccer .header { text-align: left; }
-
@evroom your try was pretty close, the correct one is
.MMM-soccer header { text-align: left; }
the header is not a class, but a tag, that’s why you don’t have a leading
.
there.It also depends on the position of the module, if you have it e.g. in
top_left
it’s automatically on the left. -
@strawberry-3-141
Thanks, works like a charm.Any possibility to introduce a rotation option, in order to rotate the standings of the leagues in “show” or “leagues” ?
-
@evroom rotation is currently only supported for voice
-
I cant get it to work again, not even with the new version.
Where is the mistake?module: "MMM-soccer", disabled: false, position: "bottom_left", header: "", config: { colored: true, show: 'GERMANY', logos: false, focus_on: { "GERMANY": "Erzgebirge Aue" }, max_teams: 5, leagues: { "GERMANY": "BL2", } }
-
Hi @surger13 ,
You do not have the api_key specified.
The README says:api_key: false,
But for me this does not work.
I registered at https://www.football-data.org/client/register and the resulting api_key is working fine.api_key: 'xxxxd62e29754e10b56029399458xxxx',
This is a fake key, use the one you get after registering.
Good luck.
-
@surger13 sadly the second german bundesliga is not in the free plan https://www.football-data.org/coverage it would cost 49€ a month.