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
      last edited by strawberry 3.141

      Version 2.1.0

      Requires version >= 2.14 of MagicMirror!

      Added

      • Integrated MMM-Modal

      Changed

      • Using remote logos
      • Preview pictures

      Fixed

      • Fade effect
      • Focus_on in modal highlights correct team
      • Help modal shows correct voice commands

      Removed

      • Logo downloader
      • Doclet integration


      https://github.com/fewieden/MMM-soccer

      [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
      • E Offline
        Egnos
        last edited by

        Hi,
        I tried the module but on the MM I don’t see anything.

        My config.js

        {
        				module: 'MMM-soccer',
        				position: 'bottom_right',
        				disabled: false,
        				config: {
        					api_key: false,
        					colored: true,
        					show: 'ITALY',
        					focus_on: false,
        					logos: true,
        					max_teams: false,
        					leagues: {ITALY: 'SA'},
        						}
        		},
        

        MM output:

        pi@MagicMirror:~/MagicMirror $ npm start
        
        > magicmirror@2.10.1 start /home/pi/MagicMirror
        > ./run-start.sh
        
        [02:57:33.259] [LOG]    Starting MagicMirror: v2.10.1
        [02:57:33.272] [LOG]    Loading config ...
        [02:57:33.282] [LOG]    Loading module helpers ...
        [02:57:33.286] [LOG]    No helper found for module: alert.
        [02:57:33.382] [LOG]    Initializing new module helper ...
        [02:57:33.384] [LOG]    Module helper loaded: updatenotification
        [02:57:33.386] [LOG]    No helper found for module: clock.
        [02:57:34.112] [LOG]    Initializing new module helper ...
        [02:57:34.113] [LOG]    Module helper loaded: calendar
        [02:57:34.114] [LOG]    No helper found for module: compliments.
        [02:57:34.115] [LOG]    No helper found for module: currentweather.
        [02:57:34.122] [LOG]    No helper found for module: weatherforecast.
        [02:57:34.176] [LOG]    Initializing new module helper ...
        [02:57:34.177] [LOG]    Module helper loaded: newsfeed
        [02:57:34.829] [LOG]    Initializing new module helper ...
        [02:57:34.830] [LOG]    Module helper loaded: MMM-soccer
        [02:57:34.831] [LOG]    All module helpers loaded.
        [02:57:34.832] [LOG]    Starting server on port 8080 ... 
        [02:57:34.856] [LOG]    Server started ...
        [02:57:34.858] [LOG]    Connecting socket for: updatenotification
        [02:57:34.859] [LOG]    Connecting socket for: calendar
        [02:57:34.860] [LOG]    Starting node helper for: calendar
        [02:57:34.861] [LOG]    Connecting socket for: newsfeed
        [02:57:34.862] [LOG]    Starting module: newsfeed
        [02:57:34.863] [LOG]    Connecting socket for: MMM-soccer
        [02:57:34.864] [LOG]    Starting module: MMM-soccer
        [02:57:34.865] [LOG]    Sockets connected & modules started ...
        [02:57:35.140] [LOG]    Launching application.
        [02:57:38.216] [LOG]    Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
        [02:57:38.364] [LOG]    Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
        
        

        Where am I wrong?
        Can you help me?

        Thanks.

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

          @Egnos Requires version >= 2.14 of MagicMirror!

          [02:57:33.259] [LOG] Starting MagicMirror: v2.10.1

          Your mirror is not up to date

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

          E 1 Reply Last reply Reply Quote 1
          • E Offline
            Egnos @strawberry 3.141
            last edited by

            @strawberry-3-141 ok thanks!
            I have updated Magic Mirror to the latest version.
            Now I only see “LOADING IN PROGRESS”, below the error:

            [ERROR] Getting league table: 403 Forbidden
            

            Where am I wrong now?

            Many Thanks.

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

              @Egnos seeing your previous post with the config, your league probably requires a free API key.

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

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                Egnos @strawberry 3.141
                last edited by

                @strawberry-3-141
                The Italian Serie aA championship should be free. Also if I try to enter the site in the section of the Italian Serie A championship but I get this error:

                Italy Serie A

                Are you sure the site works?

                Many thanks.

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

                  @Egnos the module doesn’t make use of the site native-stats.org. You need to specify the api key in the config such as api_key: 'YOUR_API_KEY',. https://www.football-data.org/client/register

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

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    Egnos @strawberry 3.141
                    last edited by

                    @strawberry-3-141 with the Api Key works!
                    Thanks.

                    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

                      2.2.1

                      Fixed

                      • Nunjuck template was rendering one team less than specified in config

                      https://github.com/fewieden/MMM-soccer

                      [card:fewieden/MMM-soccer]

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

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

                        @strawberry-3-141

                        Hello,
                        I’ve been here for a few hours trying to get Portugal’s first league up and running, and from what I see it’s free, but it’s always charging and it doesn’t work. if you put germany it works correctly.

                        i try: don’t work
                        {
                        module: ‘MMM-soccer’,
                        position: ‘top_left’,
                        config: {
                        api_key: ‘24ea5f89c975401c90bdccb9dd5c16df’,
                        show: ‘PORTUGAL’,
                        league: {“PORTUGAL”: “PPL”},
                        logos: false,
                        colored: false,
                        max_teams: 7
                        }
                        }
                        this: dont work
                        {
                        module: ‘MMM-soccer’,
                        position: ‘top_left’,
                        config: {
                        api_key: ‘24ea5f89c975401c90bdccb9dd5c16df’,
                        show: ‘PORTUGAL’,
                        logos: false,
                        colored: false,
                        max_teams: 7
                        }
                        }

                        this: work fine

                        {
                        module: ‘MMM-soccer’,
                        position: ‘top_left’,
                        config: {
                        api_key: ‘24ea5f89c975401c90bdccb9dd5c16df’,
                        show: ‘GERMANY’,
                        logos: false,
                        colored: false,
                        max_teams: 7
                        }
                        }

                        thank so mutch

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

                          @hugopvl

                          I found the problem,

                          inside the folder of the module:

                          file MMM-soccer.js

                          defaults: {
                              api_key: false,
                              colored: false,
                              **show: 'PORTUGAL',**
                              focus_on: false,
                              max_teams: false,
                              logos: false,
                              leagues: {
                                  **PORTUGAL: 'PPL',**
                                  FRANCE: 'FL1',
                                  ENGLAND: 'PL',
                                  SPAIN: 'PD',
                                  ITALY: 'SA'
                              }
                          

                          so I think the module is only loading the leagues that are in the list as default, I added Portugal as default and added it to the leagues in the list below and it already works correctly.

                          THX

                          S 1 Reply Last reply Reply Quote 0
                          • 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

                                            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
                                            • 11 / 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