• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 405.3k 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.
  • L Offline
    lavolp3 Module Developer @lavolp3
    last edited by lavolp3 Aug 24, 2017, 3:58 PM Aug 24, 2017, 3:56 PM

    @lavolp3 I should have thought a bit longer.
    The reason is that the number for the league is deprecated. If you use the actual number, it works.

    curl -H 'X-Response-Control: minified' -X GET http://api.football-data.org/v1/competitions/?season=2017
    [{"id":444,"caption":"Campeonato Brasileiro da Série A","league":"BSA","year":"2017","currentMatchday":20,"numberOfMatchdays":38,"numberOfTeams":20,"numberOfGames":380,"lastUpdated":"2017-08-24T00:40:05Z"},
    {"id":445,"caption":"Premier League 2017/18","league":"PL","year":"2017","currentMatchday":3,"numberOfMatchdays":38,"numberOfTeams":20,"numberOfGames":380,"lastUpdated":"2017-08-24T10:00:01Z"},
    {"id":446,"caption":"Championship 2017/18","league":"ELC","year":"2017","currentMatchday":5,"numberOfMatchdays":46,"numberOfTeams":24,"numberOfGames":552,"lastUpdated":"2017-08-22T07:00:02Z"},
    {"id":447,"caption":"League One 2017/18","league":"EL1","year":"2017","currentMatchday":4,"numberOfMatchdays":46,"numberOfTeams":24,"numberOfGames":552,"lastUpdated":"2017-08-22T04:00:06Z"},
    {"id":448,"caption":"League Two 2017/18","league":"EL2","year":"2017","currentMatchday":4,"numberOfMatchdays":46,"numberOfTeams":24,"numberOfGames":552,"lastUpdated":"2017-08-22T04:00:06Z"},
    {"id":449,"caption":"Eredivisie 2017/18","league":"DED","year":"2017","currentMatchday":3,"numberOfMatchdays":34,"numberOfTeams":18,"numberOfGames":306,"lastUpdated":"2017-08-23T04:00:08Z"},
    {"id":450,"caption":"Ligue 1 2017/18","league":"FL1","year":"2017","currentMatchday":4,"numberOfMatchdays":38,"numberOfTeams":20,"numberOfGames":380,"lastUpdated":"2017-08-23T10:00:06Z"},
    {"id":451,"caption":"Ligue 2 2017/18","league":"FL2","year":"2017","currentMatchday":5,"numberOfMatchdays":38,"numberOfTeams":20,"numberOfGames":380,"lastUpdated":"2017-08-24T07:00:10Z"},
    {"id":452,"caption":"1. Bundesliga 2017/18","league":"BL1","year":"2017","currentMatchday":2,"numberOfMatchdays":34,"numberOfTeams":18,"numberOfGames":306,"lastUpdated":"2017-08-23T07:00:10Z"},
    {"id":453,"caption":"2. Bundesliga 2017/18","league":"BL2","year":"2017","currentMatchday":4,"numberOfMatchdays":34,"numberOfTeams":18,"numberOfGames":306,"lastUpdated":"2017-08-24T07:00:15Z"},
    [...]
    
    

    For 1. Bundesliga 2017/2018 it’s 452

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

    1 Reply Last reply Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @lavolp3
      last edited by Aug 24, 2017, 3:56 PM

      @lavolp3 you can update the lague codes via config ;)

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

      1 Reply Last reply Reply Quote 0
      • S Offline
        Southcity
        last edited by Oct 7, 2017, 11:16 PM

        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?

        S 1 Reply Last reply Oct 8, 2017, 3:06 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @Southcity
          last edited by Oct 8, 2017, 3:06 PM

          @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 Nov 15, 2017, 1:45 PM

            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 Nov 15, 2017, 1:47 PM

              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)

              M 1 Reply Last reply Nov 15, 2017, 10:35 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @Brandlin
                last edited by Nov 15, 2017, 10:35 PM

                @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 Nov 15, 2017, 10:40 PM Reply Quote 0
                • B Offline
                  Brandlin @Mykle1
                  last edited by Nov 15, 2017, 10:40 PM

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

                  M 1 Reply Last reply Nov 15, 2017, 10:48 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Brandlin
                    last edited by Nov 15, 2017, 10:48 PM

                    @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 Nov 15, 2017, 11:14 PM Reply Quote 0
                    • B Offline
                      Brandlin @Mykle1
                      last edited by Brandlin Nov 15, 2017, 11:16 PM Nov 15, 2017, 11:14 PM

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

                      S 1 Reply Last reply Nov 20, 2017, 11:23 PM Reply Quote 0
                      • 1
                      • 2
                      • 10
                      • 11
                      • 12
                      • 13
                      • 14
                      • 20
                      • 21
                      • 12 / 21
                      • 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