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
    51 Posts 8 Posters 22.3k Views 8 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.
    • 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
                  • M Offline
                    matze86 @lavolp3
                    last edited by

                    @lavolp3
                    I fixed it by my own

                    I can send you the css of you want

                    Is ist possible to delete the last games of my team?

                    I only found a Solution to reduce it from 3 to 2 , by editing line 247 (changing the number in bracktes), but each other Number than 3 will only reduce it to 2 Games

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

                      @matze86 Change line 249 in MMM-soccer.js from

                      for (var i = index - 1; i < filteredMatches.length; i++) {
                                          nextMatches.push(filteredMatches[i]);
                                      }
                      

                      to

                      
                      for (var i = index; i < filteredMatches.length; i++) {
                                          nextMatches.push(filteredMatches[i]);
                                      }
                      

                      (Remove the “- 1”)

                      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

                        i changed it to “+ 1”, because with with i = index it will still display the last game. Or when will the module update the game list? i think on the next matchday?

                        lavolp3L 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 2 / 6
                        • 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