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.2k 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.
    • 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
            • lavolp3L Offline
              lavolp3 Module Developer @matze86
              last edited by lavolp3

              @matze86
              Hm. The module has a range of future and recent games.
              Then it searches for the index of the first game after the current date.
              THen takes that value as index, so index should be the next game, index-1 the last and index+1 the one after the next.

              Does your workaround actually work?
              Then I’m thinking wrong.

              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

                On monday it still displayed the last Game with „Index“
                Today it works as you described. So this is the best Solution (for me)
                next

                Other Topic:
                league

                When will the matchday in „league“ change to the next?

                Is it possible to add More columns to the table like this? Or to add up/down arrows? Or to add further Information like CL-Position/EL-Position and so on?

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

                  @matze86 said in MMM-soccer v2:

                  Is it possible to add More columns to the table like this? Or to add up/down arrows? Or to add further Information like CL-Position/EL-Position and so on?

                  I added played games as a column just today . Up and down arrows are a good idea but I need to check if the API gives the most recent table. I don’t think so.
                  Good idea!
                  They positions (relegation, qualifications) is most probably not possible.
                  I’ll check.

                  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

                    Great! I‘ll Update the Module soon

                    Maybe with a different colour for the Position?

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

                      @matze86 said in MMM-soccer v2:

                      @lavolp3

                      Great! I‘ll Update the Module soon

                      Maybe with a different colour for the Position?

                      So I checked the API output. Unfortunately we don’t have a reference for the recent table position.

                      
                      "table": [{
                      	"position": 1,
                      	"team": {
                      		"id": 5,
                      		"name": "FC Bayern München",
                      		"crestUrl": "https://crests.football-data.org/5.svg"
                      	},
                      	"playedGames": 26,
                      	"form": "W,W,W,W,L",
                      	"won": 19,
                      	"draw": 4,
                      	"lost": 3,
                      	"points": 61,
                      	"goalsFor": 78,
                      	"goalsAgainst": 35,
                      	"goalDifference": 43
                        },
                        ...
                      

                      We would have to call the API again for the last matchday’s table, which consumes API calls.
                      I’m not sure if I want that.
                      I still very much like the idea however.

                      Also, you can see there’s no reference to relegation or qualification ranks

                      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

                        Allright… Too Bad…

                        Here you can see my momentary Soccer Dashboard. I copied your module three times with different configs.
                        But i‘m Not statisfied with the Symbols of fontawesome. Are there other Styles possible?
                        I think the api also does Not give the Information about the time of Match?

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