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
      Southcity
      last edited by

      Hi,

      great work!
      I’m looking for a way to change the Team Name. For example “Red Bull Leipzig” is wrong, it must be Rasenballsport Leipzig. Is there a way to change the Team Name?

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

        @Southcity the data is coming from an api endpoint, where you registered for the api key, so you could write them a mail if they can fix it :)

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

        1 Reply Last reply Reply Quote 0
        • B Offline
          Brandlin
          last edited by

          hi

          i am having trouble with the soccer module.
          I can get the current english premier league and i can show a reduced number of teams. But i cannot get the the focus to work. I have tried multiple teams but none work.

          my code is

                                  module: "MMM-soccer",
                                  position: "top_left",
                                  config: {
                                          api_key: "... censored ...",
                                          show: "ENGLAND",
                                          leagues: {"ENGLAND": 445},
                                          focus_on: {"ENGLAND": "Newcastle United FC"},
                                          max_teams: "5"
                                  }
                          },
          

          Dont judge me on the team - its my father’s and this is a christmas present.

          what am i doing wrong?

          Also is there a way to update the league to the 18/19 season when the ext season starts or do i have to edit the config then?

          1 Reply Last reply Reply Quote 0
          • B Offline
            Brandlin
            last edited by

            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)

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Brandlin
              last edited by

              @Brandlin

              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.

              Create a working config
              How to add modules

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                Brandlin @Mykle1
                last edited by

                @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.

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Brandlin
                  last edited by

                  @Brandlin

                  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. :-)

                  Create a working config
                  How to add modules

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    Brandlin @Mykle1
                    last edited by Brandlin

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

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

                      @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 set max_teams: 5

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

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        layman_smiles
                        last edited by yawns

                        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

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

                          @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.

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

                          L 1 Reply Last reply Reply Quote 0
                          • L Offline
                            layman_smiles @strawberry 3.141
                            last edited by

                            @strawberry-3.141 cheers man. i will remove the quote from the max_teams section, and wait to see what you find.

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

                              @layman_smiles as soon as i removed the quotes, I got the expected table

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

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                layman_smiles @strawberry 3.141
                                last edited by

                                @strawberry-3.141 cheers mate, working as it should now. Thanks for looking into this for me

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

                                  Hi @strawberry-3.141,
                                  Really nice module! I have a request, if I may: It would be really good if there were an option to automatically cycle between a few leagues, instead of having to do it through voice control (which I don’t have!). Would you mind adding this?
                                  Thanks in advance!

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

                                    @Henrik sorry I dont plan to add new feature to it, but feel free to send a pull request

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

                                    H 1 Reply Last reply Reply Quote 1
                                    • H Offline
                                      Henrik @strawberry 3.141
                                      last edited by

                                      @strawberry-3.141 Ok! I just might do that when time permits. :)

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

                                        Fixed icons for german bundesliga and italian serie a
                                        also updated league codes

                                        [card:fewieden/MMM-soccer]

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

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          fabbr
                                          last edited by

                                          No icons for the Campeonato Brasileiro da Série A ?

                                          How can I add those? I would be glad to contribute and upload the code/files to git.

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

                                            @fabbr if you can send me the exact name from the API and a link to a SVG version of the logo, then I can add it

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

                                            F 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
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 7 / 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