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.
    • C Offline
      chassain 0
      last edited by

      Hello,

      Some errors after npm install

      pi@raspberrypi:~/MagicMirror/modules/MMM-soccer $ npm install
      npm ERR! code EJSONPARSE
      npm ERR! file /home/pi/MagicMirror/modules/MMM-soccer/package.json
      npm ERR! JSON.parse Failed to parse json
      npm ERR! JSON.parse Unexpected string in JSON at position 312 while parsing '{
      npm ERR! JSON.parse   "name": "mmm-soccer v2",
      npm ERR! JSON.parse   "version"'
      npm ERR! JSON.parse Failed to parse package.json data.
      npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-02-28T14_41_48_433Z-debug.log
      
      
      lavolp3L 1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer @chassain 0
        last edited by

        @chassain-0 thanks!
        Please do a git pull and try again.
        There was a missing comma in package.json.

        Let me know if it works.

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

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          chassain 0 @lavolp3
          last edited by

          @lavolp3
          better but still…

          
          npm WARN Invalid name: "mmm-soccer v2"
          npm WARN MMM-soccer No description
          npm WARN MMM-soccer No repository field.
          npm WARN MMM-soccer No README data
          npm WARN MMM-soccer No license field.
          
          added 8 packages from 1 contributor in 4.453s
          found 0 vulnerabilities
          
          C 1 Reply Last reply Reply Quote 0
          • C Offline
            chassain 0 @chassain 0
            last edited by

            @chassain-0
            name changed in package.json and it’s ok

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

              @chassain-0 yeah has also been changed in origin/master now.
              Recognized this as well.
              Sorry for the hickups and looking forward to any comments.

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

              C 2 Replies Last reply Reply Quote 0
              • C Offline
                chassain 0 @lavolp3
                last edited by

                @lavolp3 thanks to you. I m going to try now

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chassain 0 @lavolp3
                  last edited by

                  @lavolp3 Nice job…:)

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

                    Node_helper.js needed to be fixed.
                    Please do a git pull and restart the mirror if you experience problems.

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

                    StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                    • C Offline
                      chassain 0
                      last edited by

                      i understand live is ok now with api calls ? i like it

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

                        @chassain-0 It should but as I see it doesn’t seem to work. Will check tonight or tomorrow.

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

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

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