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 528.9k 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @evroom
      last edited by strawberry 3.141

      @evroom well we had problems in v1 already that logos were taken down due to copyrights and I sent the api owner updated links, that were never added, so I don’t think that it will come back in v2. For the same reason I also don’t want to host the files on github. I think mostly the german league was the problem, why I added a logic to overwrite broken image links from the api.

      It looked like this:

      {
      		'CLUBNAME': 'https://CLUBLOGO.svg'
          },
      

      if you want to start collecting the logo links in an object where the key is the club name then i can add them to my list. But I don’t have the time to do so myself.

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

      1 Reply Last reply Reply Quote 1
      • evroomE Offline
        evroom
        last edited by

        @strawberry-3-141 ,

        Thanks for the background info.
        Did not know it was an issue before, but then again I am a novice MM user.

        Time and mood is always an issue.
        Better for cold evenings or weekends, not when it is 35 degrees and having spent 8 hours behind a PC in a relatively hot office 😀

        MagicMirror version: 2.33.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.33.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

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

          I just released version 2 of this module

          Added

          • Club logo downloader
          • New config option logos.
          • Swedish translations
          • Documentation
          • Doclets.io integration
          • Contributing guidelines
          • Issue template
          • Pull request template
          • Editor config

          Changed

          • Switched from Api v1 to v2.
          • Updated league ids.
          • Switched rendering from js to nunjuck template.
          • Updated travis-ci config.
          • Disabled markdown lint rules MD024 and MD026

          [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
          • evroomE Offline
            evroom
            last edited by

            Hi,

            Great job on version 2.0.
            I have it running.
            Added Eredivisie and some logos; all fine.

            Just one question.
            In your example your header is left aligned and shows “1. BUNDESLIGA 2015/16”.
            Not updated to show the version 2.0 example.
            When I choose the Bundesliga I just get “BUNDESLIGA” and it is right aligned.
            How do I get it at least left aligned ?
            I tried adding this to the custom.css, but it doesn’t work:

            .MMM-soccer .header {
                text-align: left;
            }
            

            MagicMirror version: 2.33.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.33.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

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

              @evroom your try was pretty close, the correct one is

              .MMM-soccer header {
                 text-align: left;
              }
              

              the header is not a class, but a tag, that’s why you don’t have a leading . there.

              It also depends on the position of the module, if you have it e.g. in top_left it’s automatically on the left.

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

              1 Reply Last reply Reply Quote 0
              • evroomE Offline
                evroom
                last edited by

                @strawberry-3-141
                Thanks, works like a charm.

                Any possibility to introduce a rotation option, in order to rotate the standings of the leagues in “show” or “leagues” ?

                MagicMirror version: 2.33.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.33.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

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

                  @evroom rotation is currently only supported for voice

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

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    surger13 Project Sponsor
                    last edited by

                    I cant get it to work again, not even with the new version.
                    Where is the mistake?

                    module: "MMM-soccer",
                    			disabled: false,
                    			position: "bottom_left",
                    			header: "",
                    			config: {
                    				colored: true,
                    				show: 'GERMANY',
                    				logos: false,
                    				focus_on: {
                    					"GERMANY": "Erzgebirge Aue"
                    				},
                    				max_teams: 5,
                    				leagues: {
                    					"GERMANY": "BL2",
                    				}
                    			}
                    
                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                    • evroomE Offline
                      evroom
                      last edited by

                      Hi @surger13 ,

                      You do not have the api_key specified.
                      The README says:

                      api_key: false,
                      

                      But for me this does not work.
                      I registered at https://www.football-data.org/client/register and the resulting api_key is working fine.

                      api_key: 'xxxxd62e29754e10b56029399458xxxx',
                      

                      This is a fake key, use the one you get after registering.

                      Good luck.

                      MagicMirror version: 2.33.0
                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

                      Test environment:
                      MagicMirror version: v2.33.0
                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                      Raspbian GNU/Linux 12 (bookworm)

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

                        @surger13 sadly the second german bundesliga is not in the free plan https://www.football-data.org/coverage it would cost 49€ a month.

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

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

                          @strawberry-3-141
                          I suspected that. Really a pity. That was different in the past.

                          Nevertheless, thank you.

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            Tobi91
                            last edited by

                            Hi everyone,

                            I also have problems to get the module to work.

                            My config:

                            			module: "MMM-soccer",
                            			position: "top_right",
                            		disabled: false,
                            			config: {
                            				   api_key: 'My API-key',
                                			   colored: false,
                                			   show: 'GERMANY',
                               				   focus_on: false,
                               				   max_teams: false,
                               				   logos: false,
                                			   leagues: {
                                  			  	    "GERMANY": "BL1",
                                  				    }
                            
                                				}
                            					
                            	 },
                            

                            None of my modules will work (black screen) as soon as I start the mirror with this module enabled.
                            I tried switching several " to ’ but I am not sure which to use. The online description and the default values in the config readme seem to be different.

                            I would be glad if someone could help me.

                            Thank you.

                            1 Reply Last reply Reply Quote 0
                            • evroomE Offline
                              evroom
                              last edited by

                              Hi,

                              Did you not just forget the starting { ?
                              Like this:

                              { 
                                module: "MMM-soccer",
                                position: "top_right",
                                disabled: false,
                                config: {
                                  api_key: 'My API-key',
                                  colored: false,
                                  show: 'GERMANY',
                                  focus_on: false,
                                  max_teams: false,
                                  logos: false,
                                  leagues: {
                                    "GERMANY": "BL1",
                                  }
                                }
                              },
                              

                              Did you run:

                              cd ~/MagicMirror; npm run config:check
                              

                              ??

                              MagicMirror version: 2.33.0
                              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                              Raspbian GNU/Linux 12 (bookworm)

                              Test environment:
                              MagicMirror version: v2.33.0
                              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                              Raspbian GNU/Linux 12 (bookworm)

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                Tobi91
                                last edited by

                                Hi,

                                thank you for your fast response.

                                I was not missing an open bracket (Sry forgot to put it in the message).

                                I could not run config:check. Even though I updated my Magic Mirror to the latest version, it seems I am missing the script.

                                But I put my config into a syntax checker and there are no errors.

                                Thanks again.

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

                                  Hello,
                                  I would like to display several leagues. But my module shows only “Loading …”.
                                  Where is the mistake? Do you have any tip

                                      {
                                          module: "MMM-soccer",
                                          position: "bottom_right",
                                          config: {
                                              api_key: "XXXX129ce6f9XXXXXXXXXXXXXXXXX",
                                              colored: "true",
                                              logos: "true",
                                              leagues:{
                                                "GERMANY": "BL1",
                                                "GERMANY": "DFB",
                                                "GERMANY": "BL2",
                                                "EUROPE": "CL",
                                                "WORLD": "WC",
                                              },
                                          }
                                      },
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • evroomE Offline
                                    evroom
                                    last edited by

                                    @mrSnatz said in MMM-Soccer - Soccer Standings:

                                    Do you have any tip

                                    Hi,

                                    Try this:

                                    {
                                        module: 'MMM-soccer',
                                        position: 'bottom_right',
                                        config: {
                                            api_key: 'XXXX129ce6f9XXXXXXXXXXXXXXXXX',
                                            colored: true,
                                            logos: true,
                                            leagues: {
                                              GERMANY: 'BL1',
                                              GERMANY: 'DFB',
                                              GERMANY: 'BL2',
                                              EUROPE: 'CL',
                                              WORLD: 'WC',
                                            },
                                        }
                                    },
                                    

                                    MagicMirror version: 2.33.0
                                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                    Raspbian GNU/Linux 12 (bookworm)

                                    Test environment:
                                    MagicMirror version: v2.33.0
                                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                    Raspbian GNU/Linux 12 (bookworm)

                                    1 Reply Last reply Reply Quote 0
                                    • evroomE Offline
                                      evroom
                                      last edited by

                                      Btw,

                                      Not all leagues are for free:

                                      https://www.football-data.org/coverage

                                      So, for example DFB and BL2 will not work.
                                      You might need to remove those or comment them (with //).

                                      And you might need this entry:

                                      show: 'GERMANY',
                                      

                                      But I am not sure what the connection is between this and the leagues entries.

                                      MagicMirror version: 2.33.0
                                      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                      Raspbian GNU/Linux 12 (bookworm)

                                      Test environment:
                                      MagicMirror version: v2.33.0
                                      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                      Raspbian GNU/Linux 12 (bookworm)

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

                                        @evroom said in MMM-Soccer - Soccer Standings:

                                        show: ‘GERMANY’,

                                        OK. Thank you very much. Have excluded the paid. Now it works.

                                        1 Reply Last reply Reply Quote 0
                                        • zdenekZ Offline
                                          zdenek
                                          last edited by

                                          hi all, can be the module used for whatever league from he full list of leagues fromhttp://api.football-data.org/v2/competitions ? In my case

                                          {"id":2062,"name":"Czech Republic"},"name":"Synot Liga","code":null,"emblemUrl":null,"plan":"TIER_FOUR","currentSeason":{"id":171,"startDate":"2018-07-20","endDate":"2019-04-27","currentMatchday":30,"winner":null},"numberOfAvailableSeasons":2,"lastUpdated":"2019-06-02T06:20:02Z"}
                                          

                                          or any idea, any module for Czech league?

                                          thanks, Zdeněk

                                          1 Reply Last reply Reply Quote 0
                                          • evroomE Offline
                                            evroom
                                            last edited by

                                            @zdenek

                                            Unfortunately for you: no

                                            See this list for free and paid competitions:
                                            https://www.football-data.org/coverage

                                            MagicMirror version: 2.33.0
                                            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            Test environment:
                                            MagicMirror version: v2.33.0
                                            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                            Raspbian GNU/Linux 12 (bookworm)

                                            zdenekZ 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
                                            • 9 / 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