Read the statement by Michael Teeuw here.
MMM-Soccer - Standings, Schedules and Top Scorers
-
sorry, i should have added that if when i run the code above the module clearly loads because it shows the headings but the table is blank. If i comment out the focus_on command the module works fine and shows the top 5 teams (as expected)
-
This is a complete guess so forgive me if it does not correct your problem. I don’t use this module.
try
focus_on: "ENGLAND": "FC Newcastle United"},
I’ve noticed from the other examples above that the FC comes before the team name. It’s worth a shot.
-
@Mykle1 hi, thanks for the suggestion, however in england the FC goes after the team name, in germany (which are most of the examples) the FC comes first. I am also assuming that the name i need to use is exactly as it is presented in the league table. Note, I have tried the focus_on command with every team name with no success.
-
Again, I don’t use this module. However, it does matter to the API how you enter the team name, even if in England (or anywhere else) the proper way is
Newcastle United FC
. Have you tried focus on another team from another country? If it works then the problem lies with the API or the formatting of the name in the config.Note: Newcastle is my favorite beer. :-)
-
@Mykle1 hi, thanks for the suggestion. I’ve just tried a few teams in the format
focus_on: {"ENGLAND": "FC team name"},
and it makes no difference.logically I would expect to use the team name exactly as displayed - which is “Newcastle United FC”. Otherwise how would anyone know what team name to use?
Newcastle United FC
Newcastle United
Newcastle Utd FC
Newcastle Utd
Newcastle
FC Newcastle United
FC Newcastle Utd
FC Newcastle
Magpies
are all different … -
@Brandlin you are right, you should use
Newcastle United FC
as thats the value it gets compared to from the API. Can you try and setmax_teams: 5
-
Hi,
Wondering if someone can help.
Having the same issue that a few people have add around the focus_on tool.Here’s my code:
{ module: 'MMM-soccer', position: 'bottom_right', config: { colored: true, show: 'ENGLAND', max_teams: '5', leagues: {"ENGLAND": 445}, focus_on: {"ENGLAND": "Arsenal FC"} } },
Is there something I am doing wrong?
I have tried a few of the suggestions made before around the position of the FC e.g. ‘FC Arsenal’ and changing the max_teams line to (max_teams: 5), and none of the above have worked.Thanks
-
@layman_smiles the api returns
Arsenal FC
so that should be the correct value and max_teams should be definetely without quotes. I will try and debug after work. -
@strawberry-3.141 cheers man. i will remove the quote from the max_teams section, and wait to see what you find.
-
@layman_smiles as soon as i removed the quotes, I got the expected table