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-SoccerLiveScore

    Scheduled Pinned Locked Moved Sport
    187 Posts 37 Posters 288.9k Views 35 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.
    • N Offline
      np27np27 @0m4r
      last edited by

      @0m4r
      No I don’t think it’s updating for me.
      Maybe I need to delete the whole module and start again. I did get a few errors during the update to your new changes.
      Can I reinstall from the main branch or do I reinstall and then update again how you mentioned above?

      1 Reply Last reply Reply Quote 0
      • 0m4r0 Offline
        0m4r Module Developer
        last edited by 0m4r

        @np27np27 I am sorry to hear that :(
        you should try again from the feature/node-fetch .

        if you see any errors, would you please cut&paste them in here so I can have a look at them?

        would you also mind showing me your config for the module?

        https://github.com/0m4r

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          np27np27 @0m4r
          last edited by

          @0m4r
          Ok ive reinstalled and successfully updated to the feature/fetch-node branch. I think it all installed error free this time!!

          Lets see how things look later today after during the premier league games. I’ll let you know how it goes.

          My config for the module:

          	{
          		disabled: false,
          		module: 'MMM-SoccerLiveScore',
          		position: 'top_right',
          		header: 'Live-Scores',
          		config: {
          			leagues: [17],
            			showNames: true,
           			showLogos: true,
           			displayTime: 20 * 1000,
            			showStandings: true,
            			showTables: true,
            			showScorers: false,
          		}
          	},
          
          1 Reply Last reply Reply Quote 0
          • 0m4r0 Offline
            0m4r Module Developer
            last edited by 0m4r

            @np27np27

            65345670-e11e-422e-98f2-536d1a99a962-image.png

            and can you see something like this in the logs:
            MMM-SoccerLiveScore next request for league "Premier League (17)" on Tue Dec 14 2021 14:34:37 GMT+0100 (Central European Standard Time) for Round 17

            https://github.com/0m4r

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              np27np27 @0m4r
              last edited by

              @0m4r
              Yes the next request date seems to be updating now. So I think its working. Brentford vs ManU is postponed today so it’s a little difficult to gauge if it’s truly working at the moment. Will confirm it later tonight when the rest of the games go live!

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

                @0m4r
                It seems to be updating fine now and the api calls all look good and at the right times during live games. Thanks for fixing the module 👍🏾👍🏾

                I do have a bug to report… The module does not handle postponed games well. It does not recognise postponed games, starts these matches as normal and they never end or complete. I see this with the Brentford-ManU game from last night. According to the module the game started and is still playing 😂.

                0m4r0 1 Reply Last reply Reply Quote 1
                • 0m4r0 Offline
                  0m4r Module Developer @np27np27
                  last edited by

                  @np27np27 if you pull once again, I did a quick fix to mark them in orange.
                  I will look into the API requests side of the things… but better too many than too few! :D

                  https://github.com/0m4r

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    np27np27 @0m4r
                    last edited by

                    @0m4r
                    Hi, yes just updated and noticed the change to orange! Maybe a change to P-P would be better but I guess it all depends on how you have written the code and the api calls. 👍🏾
                    But it all seems to work now, thanks again 😊😊

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

                      @0m4r looks like the module is still not updating on my system. It seemed to update for a day or two but now has stopped.
                      How does it seem on your mm2?

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

                        @0m4r ,the api call date changes on the module but the data is stuck and not updating.

                        0m4r0 2 Replies Last reply Reply Quote 0
                        • 0m4r0 Offline
                          0m4r Module Developer @np27np27
                          last edited by

                          @np27np27 I’ll check that :(

                          https://github.com/0m4r

                          1 Reply Last reply Reply Quote 0
                          • 0m4r0 Offline
                            0m4r Module Developer @np27np27
                            last edited by

                            @np27np27 I am checking right now the results for “Serie A” and they seem to update…

                            https://github.com/0m4r

                            N 1 Reply Last reply Reply Quote 0
                            • N Offline
                              np27np27 @0m4r
                              last edited by

                              @0m4r
                              Hey, yes just looking at the premier league scores today and it all seems to be updating OK so far. Not sure what was going on last time. Maybe it is OK then?

                              0m4r0 1 Reply Last reply Reply Quote 1
                              • 0m4r0 Offline
                                0m4r Module Developer @np27np27
                                last edited by

                                @np27np27 well, I hope so!
                                Let’s keep an eye on it and see if it really works or if it is just a feeling we have!
                                Thanks for the feedback!

                                https://github.com/0m4r

                                N 1 Reply Last reply Reply Quote 0
                                • N Offline
                                  np27np27 @0m4r
                                  last edited by

                                  Hi @0m4r,

                                  It seems to be stuck again for me. I think its happening on the last game on a game week there are multiple days. See screenshot attached taken today on the 28th.
                                  IMG_20211228_065448~2.jpg

                                  0m4r0 2 Replies Last reply Reply Quote 0
                                  • 0m4r0 Offline
                                    0m4r Module Developer @np27np27
                                    last edited by

                                    @np27np27 thanks for the hint - I will be looking into it.

                                    https://github.com/0m4r

                                    1 Reply Last reply Reply Quote 0
                                    • 0m4r0 Offline
                                      0m4r Module Developer @np27np27
                                      last edited by

                                      @np27np27 I put in a fix, not sure it works 100% :P

                                      I have noticed tho, my approach is not really the best, will need to re-think it and re-implement it. I’d like to reach a point where the API calls are done only if and when needed to reduce network traffic and avoid overloading the API service provider too.

                                      https://github.com/0m4r

                                      N 2 Replies Last reply Reply Quote 0
                                      • N Offline
                                        np27np27 @0m4r
                                        last edited by

                                        @0m4r
                                        OK thanks. Do I update it as you have mentioned before? Or a full reinstall?

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          np27np27 @0m4r
                                          last edited by

                                          @0m4r
                                          Also, how do I find new league ID numbers. African nations Cup?

                                          0m4r0 1 Reply Last reply Reply Quote 0
                                          • 0m4r0 Offline
                                            0m4r Module Developer @np27np27
                                            last edited by

                                            @np27np27 you can switch back to the master branch and do a git pull.

                                            It does not look like the Africa nation cup is supported by the APIs :(

                                            https://github.com/0m4r

                                            N 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
                                            • 4
                                            • 5
                                            • 6
                                            • 9
                                            • 10
                                            • 4 / 10
                                            • 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