MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Soccer - Standings, Schedules and Top Scorers

    Scheduled Pinned Locked Moved Sport
    bundesligafootballmodalpremiere leagueprimiera divisionsoccervoice control
    209 Posts 43 Posters 529.8k Views 43 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @hugopvl
      last edited by

      @hugopvl but u can do that in config.js

      anything in defaults can be replaced w similar notation in the module config section

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      lavolp3L H 2 Replies Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @sdetweil
        last edited by

        @sdetweil @hugopvl
        yes the only error in above config seemed to be that @hugopvl has written

          league: {“PORTUGAL”: “PPL”},
        

        instead of

          leagues: {PORTUGAL: “PPL”},
        

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        1 Reply Last reply Reply Quote 0
        • H Offline
          hugopvl @sdetweil
          last edited by

          @sdetweil

          supposed to be the right one, but if you read my previous comment, you can see that it wasn’t working, it just worked with the change in MMM-soccer.js

          THX

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @hugopvl
            last edited by lavolp3

            @hugopvl it didn’t work because of the small mistake I mentioned before. Your config entry was not recognized because your object was league: not leagues:
            @strawberry-3-141 might include in the README that additional leagues can be included via the config entry you made before. Or include all of them from the start.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by

              Today the European Championship will kickoff :flexed_biceps: :soccer_ball:

              ec.png

              I’m currently working on version 3 of this module. It will be possible to not only display the standings of a league but also get the schedules and top scorers displayed in a carousel.

              On top of that, the module will finally support cups such as the European Championship, Champions League, and World Cup.

              If you want to test the beta for tonight’s kickoff, then head over to Github https://github.com/fewieden/MMM-soccer/pull/42 for all details.

              If you find any issues or need help, please report them here https://github.com/fewieden/MMM-soccer/pull/42 so they are all grouped together.

              standings.png
              schedule.png
              scorers.png

              Please create a github issue if you need help, so I can keep track

              1 Reply Last reply Reply Quote 2
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer
                last edited by

                Fixed the standings for the ongoing European Championship. Schedules are now filtered by the current matchday.

                Check out https://github.com/fewieden/MMM-soccer/pull/42 to test v3 of the module.

                Please create a github issue if you need help, so I can keep track

                B 1 Reply Last reply Reply Quote 1
                • B Offline
                  Babene1 Project Sponsor @strawberry 3.141
                  last edited by

                  @strawberry-3-141

                  thanks for the new version, it’s really great. Great new features.

                  However, i have Problem to install the leatest version with „schedules fix“. Unfortunately I am not so familiar with git. Is there a new branch available or have to use „feature/extract-api-provider"?

                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @Babene1
                    last edited by

                    @babene1 it is the same branch. You can check which branch you are currently using with git status.

                    On branch feature/extract-api-provider
                    Your branch is up to date with 'origin/feature/extract-api-provider'.
                    

                    To update to the latest commit you can simply run git pull, as no dependencies have changed.

                    Please create a github issue if you need help, so I can keep track

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      Babene1 Project Sponsor @strawberry 3.141
                      last edited by Babene1

                      my branch is up to date

                      but my result is this screenMMM-soccer_screen.png

                      this is my modul-config:

                      {
                                  module: 'MMM-soccer',
                                  position: 'top_right',
                                  config: {
                                      colored: true,
                                      logos: true,
                                      rotationInterval: 20 * 1000, // 20 seconds instead of 15 (default)
                                      provider: {
                                          'football-data': {
                                              apiKey: 'API Keay' // 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
                                              }
                                          },
                                      ]
                                  }
                              },
                      

                      should not only display the current matchday?

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @Babene1
                        last edited by strawberry 3.141

                        @babene1 schedules wasn’t optimized yet for no focusOn team specified.

                        Run git pull to get the latest commit.

                        f2c782c2-ac04-45de-b64b-619906fa666d-image.png

                        Please create a github issue if you need help, so I can keep track

                        lavolp3L M 2 Replies Last reply Reply Quote 0
                        • lavolp3L Offline
                          lavolp3 Module Developer @strawberry 3.141
                          last edited by

                          @strawberry-3-141 Really great work man!

                          How to troubleshoot modules
                          MMM-soccer v2, MMM-AVStock

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            matze86 @strawberry 3.141
                            last edited by

                            @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,…),

                            strawberry 3.141S 1 Reply Last reply Reply Quote 0
                            • strawberry 3.141S Offline
                              strawberry 3.141 Project Sponsor Module Developer @matze86
                              last edited by

                              @matze86 I’m not exactly sure what you want. Do you want to show only one single player or only the top scorer view?

                              Please create a github issue if you need help, so I can keep track

                              M 1 Reply Last reply Reply Quote 0
                              • P Offline
                                pikasso
                                last edited by pikasso

                                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.141S 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  matze86 @strawberry 3.141
                                  last edited by

                                  @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

                                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                  • strawberry 3.141S Offline
                                    strawberry 3.141 Project Sponsor Module Developer @pikasso
                                    last edited by

                                    @pikasso I just started the module with your config and got data.

                                    3117aa40-a75b-475b-81e7-250b7e9be317-image.png

                                    Do you have any errors in the logs?

                                    Please create a github issue if you need help, so I can keep track

                                    1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @matze86
                                      last edited by

                                      @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
                                              }
                                            },
                                          ]
                                        }
                                      }
                                      

                                      ac239edb-ba59-4cea-83a3-ea689447df8b-image.png

                                      Please create a github issue if you need help, so I can keep track

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        Kongledyret
                                        last edited by

                                        Does this still work?
                                        Getting “Loading…”

                                        Config:

                                        	{
                                          module: 'MMM-soccer',
                                          position: 'bottom_right',
                                          config: {
                                            show: 'ENGLAND',
                                            max_teams: 5
                                          }
                                        },
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Babene1 Project Sponsor
                                          last edited by

                                          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’
                                          }

                                          H 1 Reply Last reply Reply Quote 0
                                          • H Offline
                                            Henrik @Babene1
                                            last edited by

                                            @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

                                            1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 10 / 11
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy