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

    Scheduled Pinned Locked Moved Sport
    277 Posts 60 Posters 563.6k Views 63 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.
    • J Offline
      j.e.f.f Project Sponsor Module Developer @sanj926
      last edited by

      @sanj926 Top 25 now works! Turns out the ranking was in in the feed all along. So if you specify "Top 25" in your groups array for either NCAAF or NCAAM, the games list will filter on teams in the top 25 rankings.

      v2.1.1 released!

      1 Reply Last reply Reply Quote 0
      • P-Bo726P Offline
        P-Bo726
        last edited by

        Great work. Thanks again for your hard work and dedication to this module. I hope you enjoy working on it as much as we enjoy using it.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @P-Bo726
          last edited by

          @P-Bo726 Thanks! I certainly did enjoy it. I learned a lot!

          1 Reply Last reply Reply Quote 0
          • S Offline
            sanj926 @j.e.f.f
            last edited by

            @j.e.f.f
            Does the NCAAM not support displaying the teams involved in the NCAA March madness bracket challenge?

            J 3 Replies Last reply Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @sanj926
              last edited by

              @sanj926 to be honest I’m not sure. I just assumed that it would be the case as part of the feed I’m using.

              I’m guessing from your note this is not the case… I’ll see if there’s something I can do to retrieve it.

              1 Reply Last reply Reply Quote 0
              • J Offline
                j.e.f.f Project Sponsor Module Developer @sanj926
                last edited by

                @sanj926 It looks like ESPN groups March Madness differently than . The way my provider system is set up, I can only query for one group at a time. I’ll need to set up March Madness as if it were it’s own league. Stay tuned…

                1 Reply Last reply Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer @sanj926
                  last edited by

                  @sanj926 OK. Support for March Madness has been added. You configure it as if it were a separate league. I’ve also added a label parameter you can specify to change the name that is displayed in the league separator (if you’re using it). That way you could have it display something like “March Madness” instead of “NCAAM_MM”

                  Example:

                  {
                    module: "MMM-MyScoreboard",
                    position: "top_right",
                    classes: "default everyone",
                    header: "My Scoreboard",
                    config: {
                      showLeagueSeparators: true,
                      colored: true,
                      viewStyle: "mediumLogos",
                      sports: [
                        {
                          league: "NCAAM"    //Division I
                        },
                        {
                          league: "NCAAM_MM",    //March Madness
                          label: "March Madness"
                        }
                      ]
                  
                    }
                  },
                  

                  It’s kind of a hacky solution… I would have preferred to treat March Madness as if it were a subgroup, much like specifying a division, but I don’t think it’s possible to retrieve Division I and March Madness in the same API call. It will take a bit of rearchitecting my provider system to allow multiple calls for a single league. This will have to do for now.

                  1 Reply Last reply Reply Quote 1
                  • F Offline
                    fabbr
                    last edited by

                    @j.e.f.f Your module is great! I have been testing it to try to make some changes and notice that the JSON

                    https://www.sportsnet.ca/wp-content/uploads/scoreboard.json

                    doesn’t seem to be updating. I checked the dates and they are wrong. Is that a mistake of mine?

                    I was trying to make it work with Premier League games :)

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      j.e.f.f Project Sponsor Module Developer @fabbr
                      last edited by

                      @fabbr You’re working off of an old code base. The module was updated at version 2.0.4 to fix the feed URL for Sportsnet. Current version is 2.2.

                      F 1 Reply Last reply Reply Quote 0
                      • F Offline
                        fabbr @j.e.f.f
                        last edited by

                        @j.e.f.f Hey Jeff. I am sure I am doing something wrong, but I am reading it from the GitHub link: https://github.com/jclarke0000/MMM-MyScoreboard and on providers/SNET.json that is the link I saw.

                        But I am looking at ESPN and they have support for all the soccer leagues imaginable … I will look into that.

                        thank you very much for the great module!

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          j.e.f.f Project Sponsor Module Developer @fabbr
                          last edited by

                          @fabbr I see where the confusion is coming from. At the top of the file there is a comment block that explains the feed. That part still refers to the old URL. But if you take a look at line 106, you’ll see the new URL:

                          request({url: "http://www.sportsnet.ca/wp-content/files/scoreboard.json", method: "GET"}, ...
                          
                          F 1 Reply Last reply Reply Quote 1
                          • F Offline
                            fabbr @j.e.f.f
                            last edited by fabbr

                            Hey @j.e.f.f I played with the Module and was able to implement data to be pulled for English Premier League and Brazilian League 1. I also changed how the module get the logos for those competitions (straight from ESPN API).

                            I would like to show it to you so you can double check and possibly implement it. What is the best way for me to share this code with you?

                            alt text

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              j.e.f.f Project Sponsor Module Developer @fabbr
                              last edited by

                              @fabbr maybe package it up in a ZIP file and share via Dropbox or Google drive?

                              F 1 Reply Last reply Reply Quote 0
                              • F Offline
                                fabbr @j.e.f.f
                                last edited by

                                @j.e.f.f Here is the link. I only changed 2 files so no reason to include de other ones: https://www.dropbox.com/s/9awmiyvah10m242/MMM-ScoreBoard.zip?dl=0

                                Please give me some feedback as I am not as experienced programmer as you!

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  j.e.f.f Project Sponsor Module Developer @fabbr
                                  last edited by

                                  @fabbr Looks pretty good. Maybe submit a pull request and I’ll merge it into a branch for testing. Then if it looks like everything is OK after a few days, we can merge to master.

                                  Can you also add the list of team short codes to README.md, and if there are any groups, they need to be added to MMM-MyScoreboard.js. See line 535 through the end of the file for examples.

                                  F 1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer
                                    last edited by

                                    Hands down THE best sports module… getting better all the time. Nice job!

                                    1 Reply Last reply Reply Quote 1
                                    • F Offline
                                      fabbr @j.e.f.f
                                      last edited by

                                      @j.e.f.f Added the Pull Request. double check because this was the first time I used GitHub with another person. haha

                                      J 1 Reply Last reply Reply Quote 0
                                      • lazarusL Offline
                                        lazarus
                                        last edited by

                                        First off love the module… One issue I’m running into is the rolloverHours option.

                                        Here is a sample of my config… Let me know if I’ve missed something or placed it improperly. Thanks in advance.

                                        {
                                          module: "MMM-MyScoreboard",
                                          position: "bottom_right",
                                          classes: "default everyone",
                                          header: "Scoreboard",
                                          config: {
                                            rolloverHours: 10,
                                            showLeagueSeparators: true,
                                            colored: true,
                                            viewStyle: "mediumLogos",
                                            sports: [
                                              {
                                                league: "NHL",
                                                teams: ["DET", "VGK"],
                                              },
                                              {
                                                league: "NCAAF",
                                                teams: ["ND"]
                                              },
                                              {
                                                league: "NFL",
                                                teams: ["DAL"]
                                              },
                                              {
                                                league: "MLB",
                                                teams: ["DET"]
                                              },
                                            ]
                                        
                                          }
                                        },
                                        
                                        
                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          j.e.f.f Project Sponsor Module Developer @lazarus
                                          last edited by

                                          @lazarus your config looks good. This will continue to show yesterday’s game until 10:00 AM, after which time you’ll start to see today’s games.

                                          There is one small wrinkle with this though. A number of the sports you have selected are provided by the Sportsnet feed. That feed only has yesterday’s games until 12:00 PM Eastern time. So if you are on Pacific time, for example, yesterday’s games will only be available until 9:00 AM, after which time they will disappear from the feed. The sports affected in your config are NHL, NBA, and MLB.

                                          Does that explain your issue or is the problem
                                          Something else?

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            j.e.f.f Project Sponsor Module Developer @fabbr
                                            last edited by

                                            @fabbr I pulled in your request to a new branch named add_more_soccer. I made some small tweaks to the code to normalize with the way I’ve handled other leagues. Namely, I’ve used BRAS (all uppercase) for the config for Brazilian League instead of Bras and the README has been updated with information on the new leagues.

                                            One thing I’ve noticed is that there is nothing in the code the handle a game in progress in overtime. What does the ESPN feed report for overtime? e.g.: game.status.type.id (assuming 24) and game.status.period (assuming 3). And how should it be displayed? Is it “ET” for “Extra Time?” e.g.: 9' ET

                                            Nice work so far!

                                            J 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
                                            • 7
                                            • 8
                                            • 13
                                            • 14
                                            • 6 / 14
                                            • 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