• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 396.6k 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.
  • E Offline
    evroom
    last edited by Jul 27, 2018, 3:51 PM

    It looks like I mixed up things.

    You have:
    MMM-soccer: uses api.football-data.org - api v1
    MagicMirror-FootballLeagues: api.football-data.org - api v1
    MMM-SoccerLiveScore: uses www.ta4-images.de

    Modules using api.football-data.org - api v1 - are not working and that leaves MMM-SoccerLiveScore as the only module working at this moment.

    Now … I promised to have a look at MMM-Soccer, which is MMM-soccer (small detail), to see if I can get v2 working.
    So I started with github (never used it before) and got MM working on my MacBook.
    Stupidly I got a copy of MMM-SoccerLiveScore and was surprised to see it working.
    Only then I realised that my comments were based on MagicMirror-FootballLeagues and not on MMM-Soccer.
    Not even speaking about MMM-SoccerLiveScore.

    Probably the heat-wave melted my brains, or what was left of it.

    What to do ?

    On the one hand we have MMM-SoccerLiveScore.
    Install it. Configure it. Run it. Go with it.
    Nothing needed.
    I have it running myself.

    Then we have MMM-soccer and MagicMirror-FootballLeagues.
    Both need to be adapted to run with api v2.
    MagicMirror-FootballLeagues, owner @master117, looks to be more up-to-date and a better start than MMM-soccer.
    It says to be a spin.off of MMM-SoccerLiveScore, but I do not know exactly why.
    And I do not know if an adapted MagicMirror-FootballLeagues will have more possibilities over the other(s).

    I might give it a try, just for the fun of it.

    MagicMirror version: 2.30.0
    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    Test environment:
    MagicMirror version: v2.30.0
    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

    S 1 Reply Last reply Jul 28, 2018, 6:12 AM Reply Quote 1
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @evroom
      last edited by Jul 28, 2018, 6:12 AM

      @evroom I never heard of footballleagues.

      When I’m correct then soccerlivescroe display the matches and this module display the standings so the modules follow different approaches.

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

      1 Reply Last reply Reply Quote 0
      • E Offline
        evroom
        last edited by Jul 28, 2018, 9:39 AM

        Both modules display matches and standings.
        https://github.com/master117/MagicMirror-FootballLeagues
        https://github.com/LukeSkywalker92/MMM-SoccerLiveScore
        Differences might be in the extra possibilities of the api and therefore additional possibilities for the module.
        For example football-data.org v2 can show you the squad.

        MagicMirror version: 2.30.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.30.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        1 Reply Last reply Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer
          last edited by Jul 29, 2018, 7:20 PM

          I updated the module to work with api v2. One problem that I figured out so far is that the api no longer provides links to the club logos, therefore I added a config option logos to hide them.

          It’s under construction and can be tested on the develop branch

          git checkout develop

          [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
            evroom
            last edited by evroom Jul 30, 2018, 9:14 PM Jul 30, 2018, 9:13 PM

            @strawberry-3-141 ,

            I have it running. Added “NETHERLANDS”, 2003.

            I found out that v1 is still available, but only for pre-World Cup stuff.
            But that means you can use v1 for the logos:
            http://api.football-data.org/v1/teams/57
            http://upload.wikimedia.org/wikipedia/en/5/53/Arsenal_FC.svg

            You could add a separate league number_league name_team_logo.json file, with a collection of team logos.
            Per league, per team.
            Then users can add missing logos themselves and perhaps share their collection with you to be put on github.
            Just an idea.

            In the meantime I will try to contact the football-data.org person to ask what happened to the logos in v2.

            Hope you are not offended when I say that SoccerLiveScore has it all.
            Except for 2 things that are unique for your module:
            focus and number of teams to show on the table.
            Cannot say if the sources of data is equally well maintained, so cannot say if it is worth the trouble of coding, unless it brings you pleasure.

            MagicMirror version: 2.30.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.30.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            S 1 Reply Last reply Jul 30, 2018, 9:33 PM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @evroom
              last edited by strawberry 3.141 Jul 30, 2018, 9:33 PM Jul 30, 2018, 9:33 PM

              @evroom well we had problems in v1 already that logos were taken down due to copyrights and I sent the api owner updated links, that were never added, so I don’t think that it will come back in v2. For the same reason I also don’t want to host the files on github. I think mostly the german league was the problem, why I added a logic to overwrite broken image links from the api.

              It looked like this:

              {
              		'CLUBNAME': 'https://CLUBLOGO.svg'
                  },
              

              if you want to start collecting the logo links in an object where the key is the club name then i can add them to my list. But I don’t have the time to do so myself.

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

              1 Reply Last reply Reply Quote 1
              • E Offline
                evroom
                last edited by Jul 30, 2018, 9:47 PM

                @strawberry-3-141 ,

                Thanks for the background info.
                Did not know it was an issue before, but then again I am a novice MM user.

                Time and mood is always an issue.
                Better for cold evenings or weekends, not when it is 35 degrees and having spent 8 hours behind a PC in a relatively hot office 😀

                MagicMirror version: 2.30.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.30.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                1 Reply Last reply Reply Quote 1
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer
                  last edited by Oct 17, 2018, 8:16 PM

                  I just released version 2 of this module

                  Added

                  • Club logo downloader
                  • New config option logos.
                  • Swedish translations
                  • Documentation
                  • Doclets.io integration
                  • Contributing guidelines
                  • Issue template
                  • Pull request template
                  • Editor config

                  Changed

                  • Switched from Api v1 to v2.
                  • Updated league ids.
                  • Switched rendering from js to nunjuck template.
                  • Updated travis-ci config.
                  • Disabled markdown lint rules MD024 and MD026

                  [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
                    evroom
                    last edited by Oct 19, 2018, 9:41 AM

                    Hi,

                    Great job on version 2.0.
                    I have it running.
                    Added Eredivisie and some logos; all fine.

                    Just one question.
                    In your example your header is left aligned and shows “1. BUNDESLIGA 2015/16”.
                    Not updated to show the version 2.0 example.
                    When I choose the Bundesliga I just get “BUNDESLIGA” and it is right aligned.
                    How do I get it at least left aligned ?
                    I tried adding this to the custom.css, but it doesn’t work:

                    .MMM-soccer .header {
                        text-align: left;
                    }
                    

                    MagicMirror version: 2.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    S 1 Reply Last reply Oct 20, 2018, 2:51 PM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer @evroom
                      last edited by strawberry 3.141 Oct 20, 2018, 2:52 PM Oct 20, 2018, 2:51 PM

                      @evroom your try was pretty close, the correct one is

                      .MMM-soccer header {
                         text-align: left;
                      }
                      

                      the header is not a class, but a tag, that’s why you don’t have a leading . there.

                      It also depends on the position of the module, if you have it e.g. in top_left it’s automatically on the left.

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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 14
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 20
                      • 21
                      • 16 / 21
                      • 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