Read the statement by Michael Teeuw here.
MMM-Soccer - Standings, Schedules and Top Scorers
-
@strawberry-3-141
Nice work šš»Is ist possible to add a config value that it shows only the top scorer?
Another idea is that the module shows the Player List from the focussed Team with some stats (played Games, goals, assists, cards,ā¦),
-
@matze86 Iām not exactly sure what you want. Do you want to show only one single player or only the top scorer view?
-
Hello
Successfully installed a Smart Mirror. All went with some struggles but I managed to make it go then improve step by step to my goalā¦
With the initial MMM-soccer installed, an API key and all perfectly working, I tried to install the branch 42 following the commands you sharedā¦ git to extract-api-provider
cd ~/MagicMirror/modules/MMM-soccer git fetch git checkout feature/extract-api-provider git pull npm i --production
While all was good with inital version once updated to v3, I can see the caroussel but itās empty either if I use the default configuration here
Module loaded corretly but there seems to be no data when the caroussel switches. Bellow shows a message āNo data availableā.
pi@smartmirror:~/MagicMirror/modules/MMM-soccer $ git pull DĆ©jĆ Ć jour. pi@smartmirror:~/MagicMirror/modules/MMM-soccer $ git status Sur la branche feature/extract-api-provider Votre branche est Ć jour avec 'origin/feature/extract-api-provider'. Modifications qui ne seront pas validĆ©es : (utilisez "git add <fichier>..." pour mettre Ć jour ce qui sera validĆ©) (utilisez "git checkout -- <fichier>..." pour annuler les modifications dans la copie de travail) modifiĆ©Ā : package-lock.json aucune modification n'a Ć©tĆ© ajoutĆ©e Ć la validation (utilisez "git add" ou "git commit -a")
In my global config, the locale is set to āfr-FRā and ā¦ again, my configuration is the one here . I tried as well with [Babeneās config] removing any other moduleā¦ (https://forum.magicmirror.builders/post/92126) :
modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: 'MMM-soccer', position: 'top_right', config: { colored: true, logos: true, rotationInterval: 20 * 1000, // 20 seconds instead of 15 (default) provider: { 'football-data': { apiKey: 'xxxxx' // Replace with your API key } }, competitions: [ { code: 'EC', // European championship standings: { provider: 'football-data', focusOn: 'GER', // Germany maxEntries: 5 }, schedules: { provider: 'football-data', maxEntries: 7 } }, ] } }, ]
But nothing comesā¦ looks like my API Key is maybe not working for v3 ? It was perfectly working with initial version though
Would you have any suggestion in order to make it work ?
-
@strawberry-3-141 said in MMM-Soccer - Standings, Schedules and Top Scorers:
@matze86 Iām not exactly sure what you want. Do you want to show only one single player or only the top scorer view?
I want to Show the top 10 scorer of the league for example
-
@pikasso I just started the module with your config and got data.
Do you have any errors in the logs?
-
@matze86 this is already possible, see example config:
{ module: 'MMM-soccer', position: 'top_right', config: { provider: { 'football-data': { apiKey: 'XXX' } }, competitions: [ { code: 'BL1', scorers: { provider: 'football-data', maxEntries: 5 } }, ] } }
-
Does this still work?
Getting āLoadingā¦āConfig:
{ module: 'MMM-soccer', position: 'bottom_right', config: { show: 'ENGLAND', max_teams: 5 } },
-
Ich hab die einfache Konfig verwendet:
{ module: 'MMM-soccer', position: 'top_right', config: { provider: { 'football-data': { apiKey: 'XXX' } }, competitions: [ { code: 'BL1', scorers: { provider: 'football-data', maxEntries: 5 } }, ] } }
I have this error:
[ERROR] [MMM-soccer]: SoccerError: FETCHING_SCORERS
at Object.fetchScorers (/home/pi/MagicMirror/modules/MMM-soccer/provider/football-data/provider.js:110:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Class.createSingleRequest (/home/pi/MagicMirror/modules/MMM-soccer/node_helper.js:86:30)
at async Promise.all (index 0)
at async Class.makeRequests (/home/pi/MagicMirror/modules/MMM-soccer/node_helper.js:97:27) {
competition: āBL1ā,
provider: āfootball-dataā
} -
@Babene1 @Kongledyret
I am using this config, and it works fine. Make sure to do a git pull if you havenāt already.{ module: 'MMM-soccer', position: 'top_left', config: { show: ['PL', 'PD'], showMatches: false, api_key: 'goes here', logos: true, colored: true, updateInterval: 40, liveMode: false, } },
Just to make sure weāre talking about the same thing, this is the one Iām using:
https://github.com/lavolp3/MMM-soccer