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 @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
                        • F Offline
                          fabbr @strawberry 3.141
                          last edited by

                          @strawberry-3.141 Here you can find the SVG, you’re looking for Serie-A: https://github.com/hugomiura/escudos-times-brasil-svg

                          Here’s the API: [{“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”},

                          The strong thing is that if I use:
                          leagues: {“BRAZIL”: 444},
                          for the configuration it doesn’t show up. but If I use:
                          leagues: {“ENGLAND”: 444},

                          What am I doing wrong?

                          Thank you again, this is a great module!

                          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 strawberry 3.141

                            @fabbr When I go to that page it says svg files are invalid

                            I need single svg files anyways (each team) with the api name of the team.
                            Here are the current icon fixes per team https://github.com/fewieden/MMM-soccer/blob/master/MMM-soccer.js#L13-L18

                            When you tried leagues: {'BRAZIL': 444} did you also set show: 'BRAZIL'

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

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

                              @strawberry-3.141
                              leagues: {'BRAZIL': 444} and show: 'BRAZIL' worked! I changed the icon fix to include all the teams for the 2017 and 2018 competition that is about to start! Thank you!

                                  icon_fixes: {
                                      '1. FSV Mainz 05': 'https://upload.wikimedia.org/wikipedia/commons/d/d6/FSV_Mainz_05_Logo.png',
                              		'FC Bayern München': 'https://upload.wikimedia.org/wikipedia/commons/1/1f/Logo_FC_Bayern_M%C3%BCnchen_%282002%E2%80%932017%29.svg',
                              		'SPAL Ferrara': 'https://upload.wikimedia.org/wikipedia/de/e/e7/SPAL_Ferrara.svg',
                              		'Benevento Calcio': 'https://upload.wikimedia.org/wikipedia/de/4/48/Benevento_Calcio_Logo.svg',
                              		
                              		///Campeonato Brasileiro:
                              		
                              		'Corinthians': 'https://upload.wikimedia.org/wikipedia/en/1/1f/Sport_Club_Corinthians_Paulista_Logo.png',
                              		'Palmeiras': 'https://upload.wikimedia.org/wikipedia/commons/1/10/Palmeiras_logo.svg',
                              		'Cruzeiro': 'https://upload.wikimedia.org/wikipedia/pt/3/36/EC_Noroeste.PNG',
                              		'Santos FC': 'https://upload.wikimedia.org/wikipedia/commons/3/35/Santos_logo.svg',
                              		'EC Flamengo': 'https://upload.wikimedia.org/wikipedia/en/c/c9/Flamengo_logo.svg',
                              		'Vasco da Gama': 'https://upload.wikimedia.org/wikipedia/en/1/1a/ClubDeRegatasVascoDaGama.svg',
                              		'Atlético Mineiro': 'https://upload.wikimedia.org/wikipedia/en/5/5f/Clube_Atlético_Mineiro_crest.svg',
                              		'Chapecoense': 'https://upload.wikimedia.org/wikipedia/en/9/97/Associação_Chapecoense_de_Futebol_%282016%29.png',
                              		'Grémio': 'https://upload.wikimedia.org/wikipedia/en/f/f1/Gremio.svg',
                              		'Botafogo': 'https://upload.wikimedia.org/wikipedia/commons/5/52/Botafogo_de_Futebol_e_Regatas_logo.svg',
                              		'Atlético PR': 'https://upload.wikimedia.org/wikipedia/commons/b/b3/CA_Paranaense.svg',
                              		'Bahia': 'https://upload.wikimedia.org/wikipedia/en/b/b1/Esporte_Clube_Bahia_logo.png',
                              		'Sao Paulo': 'https://upload.wikimedia.org/wikipedia/commons/6/6f/Brasao_do_Sao_Paulo_Futebol_Clube.svg',
                              		'Fluminense FC': 'https://upload.wikimedia.org/wikipedia/en/9/9e/Fluminense_fc_logo.svg',
                              		'Sport Recife': 'https://upload.wikimedia.org/wikipedia/en/4/45/Sport_Club_Recife.svg',
                              		'EC Vitória': 'https://upload.wikimedia.org/wikipedia/en/4/49/Esporte_Clube_Vitória_logo.svg',
                              		'Coritiba FC': 'https://upload.wikimedia.org/wikipedia/commons/3/38/Coritiba_FBC_%282011%29_-_PR.svg',
                              		'Avaí SC': 'https://upload.wikimedia.org/wikipedia/commons/f/fe/Avai_FC_%2805-E%29_-_SC.svg',
                              		'Ponte Preta': 'https://upload.wikimedia.org/wikipedia/commons/7/7e/Escudo_Oficial_Ponte_Preta.png',
                              		'Atlético Goianiense': 'http://3.bp.blogspot.com/-Bm9JF0ZGdeQ/VR7uvQxyGLI/AAAAAAAAAj0/F-1Qss9wms0/s1600/atletico%2Bgo%2Bfirst.png',
                              		//2018 New Teams:
                              		'América': 'https://upload.wikimedia.org/wikipedia/commons/a/ac/Escudo_do_America_Futebol_Clube.svg',
                              		'Ceará': 'https://upload.wikimedia.org/wikipedia/en/7/7d/Ceará_SC.png',
                              		'Internacional': 'https://upload.wikimedia.org/wikipedia/commons/f/f1/Escudo_do_Sport_Club_Internacional.svg',
                              		'Paraná': 'https://upload.wikimedia.org/wikipedia/en/d/df/Parana.png'
                                  },
                              

                              alt text

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

                                Is there an easy way to have multiple competitions showing at the same time? Like Having Champions League, EPL and MLS ?

                                I tried to create another entry on config.js but it only takes the options of the first entry.

                                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 it doesn’t work out of the box, what you could do however is a workaround described in here https://forum.magicmirror.builders/post/19432

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

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

                                    @strawberry-3.141 Thank you for the reply! So I did:

                                    1. Copied the Module folder
                                    2. Renamed it to module2
                                    3. Rename de module.js to module2.js
                                    4. On module2.js I changed the Module.register to module2
                                    5. Added another block on config.js with the new module2 options

                                    And … it didn’t work.

                                    Did I do something wrong?

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

                                      @fabbr I have modified the module so that it works properly, cycling more than one league. No module-copying necessary. I haven’t made a pull request on github, as suggested by the module author, yet though. I’ll try to do that over Easter.
                                      If you’re really keen, I could just zip my folder with this code change and share it with you for the time being.

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

                                        @Henrik That is so amazing. I love this community. If you won’t mind putting it on a shared folder on dropbox or google drive, just send me link to it and I will check it out. Thanks!

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

                                          @fabbr I’ve sent the details. Note that I did this a couple of months ago and there have been a minor change or two, like updated team logos, to the module since then.

                                          1 Reply Last reply Reply Quote 1
                                          • C Offline
                                            conkhidot
                                            last edited by

                                            Hey community,

                                            have anyone tried it with the new season 18/19 ?

                                            strawberry 3.141S 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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 6 / 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