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 v2

    Scheduled Pinned Locked Moved Sport
    52 Posts 9 Posters 27.3k Views 9 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor @lavolp3
      last edited by

      @lavolp3 Hi, does the module work?
      do I need a api ?
      Thanks in advance…
      greetings from Germany

      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @Stoffbeuteluwe
        last edited by

        @Stoffbeuteluwe HI,

        live mode seems broken, will fix it tomorrow, but apart from that it works, yes.
        You need a free api key from football-data.org.

        Try it out and let me know if you find any problems.

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

        StoffbeuteluweS 1 Reply Last reply Reply Quote 0
        • StoffbeuteluweS Offline
          Stoffbeuteluwe Project Sponsor @lavolp3
          last edited by

          @lavolp3 Hi, do i have to use the API out of the Email and that’s it?..or do I have to do something else with the API?
          Thanks in advance

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            lavolp3 Module Developer @Stoffbeuteluwe
            last edited by

            @Stoffbeuteluwe Yes use the key that you have received and put it in your config and that’s it.

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

            StoffbeuteluweS 1 Reply Last reply Reply Quote 0
            • StoffbeuteluweS Offline
              Stoffbeuteluwe Project Sponsor @lavolp3
              last edited by

              @lavolp3 thank you

              1 Reply Last reply Reply Quote 0
              • D Offline
                dirk-graetz
                last edited by

                Hi lavolp3,
                your module is crashing if showMatches = false
                kind regards

                lavolp3L 1 Reply Last reply Reply Quote 0
                • lavolp3L Offline
                  lavolp3 Module Developer @dirk-graetz
                  last edited by

                  @dirk-graetz thanks! Will have a look into it. Have to admit that I am not good in debugging my modules.

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

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nero
                    last edited by

                    Does this show the Championship, Leagues 1 and 2 in England? Thanks

                    lavolp3L 1 Reply Last reply Reply Quote 0
                    • lavolp3L Offline
                      lavolp3 Module Developer @Nero
                      last edited by

                      @Nero No, only Premier League for England.

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

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        matze86 @lavolp3
                        last edited by

                        Hey @lavolp3

                        I want to show the next matches of my team and this doesn’t work.
                        If I change ‘league’ to ‘next’ (or ‘daily’) the screen displays only the header of the league table ("teams, games & goal difference).

                        focus_on in combination with " matchtype: ‘league’ " works. My team is highlighted. (see the first config):

                        {
                            module: 'MMM-soccer',
                            position: 'top_right',
                            config: {
                               api_key: 'my api',
                               show: ['BL1'],
                               colored: true,	
                               focus_on: {
                        	     'BL1': 'FC Bayern München',
                               },
                               matchType: 'league'
                           }
                        },
                        		    	
                        

                        here is my “next” config of this module, which doesn’t work.

                        {
                            module: 'MMM-soccer',
                            position: 'top_right',
                            config: {
                               api_key: 'my api',
                               show: ['BL1'],
                               colored: true,	
                               focus_on: {
                        	     'BL1': 'FC Bayern München',
                               },
                               matchType: 'next',
                               numberOfNextMatches: 5
                           }
                        },
                        
                        lavolp3L 2 Replies Last reply Reply Quote 0
                        • lavolp3L Offline
                          lavolp3 Module Developer @matze86
                          last edited by lavolp3

                          @matze86 The setup works for me and shows me the next 5 matches of Bayern München.

                          It actually also shows the last match so I might have to check that.

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

                          1 Reply Last reply Reply Quote 0
                          • lavolp3L Offline
                            lavolp3 Module Developer @matze86
                            last edited by

                            @matze86 CAn you open the magicmirror page in your browser and check the developer’s tools (f12 --> console) for any errors?
                            You might also activate debug mode in your config (debug: true) to get more output from the module.

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

                            M 2 Replies Last reply Reply Quote 0
                            • M Offline
                              matze86 @lavolp3
                              last edited by matze86

                              @lavolp3
                              i tried to start my mirror n server mode, but than i got these errors…

                              17.03.2021 20:05.53.544] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                              was compiled against a different Node.js version using
                              NODE_MODULE_VERSION 76. This version of Node.js requires
                              NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
                              the module (for instance, using `npm rebuild` or `npm install`).
                              [17.03.2021 20:05.53.547] [LOG]   Loading module helpers ...
                              [17.03.2021 20:05.53.550] [LOG]   No helper found for module: alert.
                              [17.03.2021 20:05.53.551] [LOG]   Initializing new module helper ...
                              [17.03.2021 20:05.53.551] [LOG]   Module helper loaded: updatenotification
                              [17.03.2021 20:05.53.552] [LOG]   No helper found for module: clock.
                              [17.03.2021 20:05.53.558] [ERROR] Whoops! There was an uncaught exception...
                              [17.03.2021 20:05.53.563] [ERROR] Error: The module '/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/build/Release/epoll.node'
                              was compiled against a different Node.js version using
                              NODE_MODULE_VERSION 76. This version of Node.js requires
                              NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
                              the module (for instance, using `npm rebuild` or `npm install`).
                                  at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
                                  at Module.load (internal/modules/cjs/loader.js:928:32)
                                  at Function.Module._load (internal/modules/cjs/loader.js:769:14)
                                  at Module.require (internal/modules/cjs/loader.js:952:19)
                                  at require (internal/modules/cjs/helpers.js:88:18)
                                  at bindings (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/bindings/bindings.js:112:48)
                                  at /home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:7:31
                                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Navigate/node_modules/epoll/epoll.js:15:3)
                                  at Module._compile (internal/modules/cjs/loader.js:1063:30)
                                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
                              
                              

                              i reinstalled in the following order:
                              the module “navigate”, npm, node.js, mirror software,
                              but it doen’t change anything. i have to check this before i can try further…

                              with npm run start the mirror works well…

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                matze86 @lavolp3
                                last edited by

                                @lavolp3

                                here is the output from the console

                                MMM-soccer: "received a Socket Notification: MATCHES"
                                MMM-soccer.js:432 MMM-soccer: "Calculating Team Display Boundaries"
                                MMM-soccer.js:432 MMM-soccer: "Focus on Team"
                                MMM-soccer.js:432 MMM-soccer: "Finding focus team for table..."
                                MMM-soccer.js:432 MMM-soccer: "Focus Team found: FC Bayern München"
                                MMM-soccer.js:432 MMM-soccer: "No Focus Team found! Please check your entry!"
                                ReferenceError: numberOfNextMatches is not defined
                                    at Class.prepareMatches (MMM-soccer.js:232)
                                    at Class.getTemplateData (MMM-soccer.js:182)
                                    at module.js:89
                                    at new Promise (<anonymous>)
                                    at Class.getDom (module.js:86)
                                    at main.js:114
                                    at new Promise (<anonymous>)
                                    at updateDom (main.js:113)
                                    at Object.updateDom (main.js:551)
                                    at Class.updateDom (module.js:364)
                                

                                Why did it say, that no focus team has found? It is highlighted in “league mode”
                                Furthermore i did not edit the MMM-soccer.js. so i don’t have any idea, why numberOfNextMatches is not defined

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

                                  i saw, that the focus for table was not found. thats correct. it is only highlighted in the current matchday…

                                  lavolp3L 2 Replies Last reply Reply Quote 0
                                  • lavolp3L Offline
                                    lavolp3 Module Developer @matze86
                                    last edited by

                                    @matze86 ok I’ll check that error.

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

                                    1 Reply Last reply Reply Quote 0
                                    • lavolp3L Offline
                                      lavolp3 Module Developer @matze86
                                      last edited by

                                      @matze86 OK i pushed a fix.
                                      Please do a git pull and let me know if it works better now.

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

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        matze86 @lavolp3
                                        last edited by

                                        @lavolp3

                                        It worked! Very nice! Thx a lot👍🏻

                                        Now i‘m „fighting“ with the css and the alignment in the table. See the picture for more Details

                                        lavolp3L 1 Reply Last reply Reply Quote 0
                                        • lavolp3L Offline
                                          lavolp3 Module Developer @matze86
                                          last edited by

                                          @matze86 yeah another issue i have just now realized. Give me a bit of time.

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

                                          lavolp3L M 2 Replies Last reply Reply Quote 0
                                          • lavolp3L Offline
                                            lavolp3 Module Developer @lavolp3
                                            last edited by

                                            @lavolp3 should be fixed now. Only one css line
                                            Again, please do a git pull

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

                                            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
                                            • 2 / 3
                                            • 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