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 562.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.
    • 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
                  • J Offline
                    j.e.f.f Project Sponsor Module Developer @j.e.f.f
                    last edited by

                    @j.e.f.f Forgot to mention… in order to run the new code, execute git pull in the MMM-MyScoreboard directory, then git checkout add_more_soccer

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gashion
                      last edited by

                      Hi,

                      First of all, this module looks great! So thank you, @j.e.f.f for this.

                      Second: Is there a way i could add European soccer leagues? I see that @fabbr has added premier league. Is there a way you could upgrade this module so it would get the rest European soccer leagues? (Premier League,Spanish league, Champions League)

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

                        @gashion In fact, we are working on that as we speak. I have taken the changes that @fabbr has initiated and made them more generic so that adding more leagues should be easy. We’re testing it right now with EPL, Brazillian League 1, FIFA World Cup, Bundesliga, and Conmebol Libertadores.

                        If you want to try out the new code base, you can do so by checking out the branch add_more_soccer:

                        1. First install the module if you haven’t already
                        2. type git pull in the MMM-MyScoreboard module
                        3. type git checkout add_more_soccer

                        You can see the updated README here so that you can see what league names to use in your config.
                        https://github.com/jclarke0000/MMM-MyScoreboard/blob/add_more_soccer/README.md

                        Let me know if you see anything wrong

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

                          @gashion Also, it would be helpful if you can list the leagues that you’re interested on this way we can start updating it with the most popular ones.

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            gashion
                            last edited by

                            @j.e.f.f great to hear that u guys r on it! Thank you so much!! I will try it asap.

                            @fabbr I think biggest/most popular European leagues, like; Seria A, La Liga, Bundesliga, French Ligue 1, Premier League, Champions League, Europa League. These i think r the most popular.

                            Also, is it possible to get the League Standings?

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

                              @gashion I will try adding those ligues soon. for the Standing you can use this module: https://github.com/fewieden/MMM-soccer

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                gashion
                                last edited by

                                @j.e.f.f @fabbr

                                I’m only getting NBA scores on my mirror. Here’s my settings in config, what have i done wrong?

                                {
                                  			module: "MMM-MyScoreboard",
                                  			position: "bottom_right",
                                  			classes: "default everyone",
                                  			header: "My Scoreboard",
                                  			config: {
                                    			showLeagueSeparators: true,
                                    			colored: true,
                                    			viewStyle: "mediumLogos",
                                    				sports: [
                                      					{
                                        				league: "EPL",
                                       	 				teams: ["LIV", "MNC", "TOT", "MAN", "ARS", "CHE", "EVE", "LEI"]
                                     					},
                                      					{
                                        				league: "FIFAWC",
                                        				teams: [""],
                                        				},
                                						{
                                        				league: "BUNDESLIGA",
                                        				teams: ["BVB", "BMU"],
                                        				},
                                      					{
                                        				league: "NBA",
                                        				teams: ["CHI", "LAL", "GS", "CLE",]
                                      					},
                                    				]
                                
                                  			}
                                		},
                                
                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  j.e.f.f Project Sponsor Module Developer @gashion
                                  last edited by j.e.f.f

                                  @gashion likely nothing :). The app is designed to only show games that are scheduled or in progress “today.” Only NBA is in progress right now. You won’t see EPL or Bundesliga matches until March 31, and FIFA World Cup doesn’t get underway until June.

                                  Just to be sure though… to have support for the new soccer leagues you need to be on the add_more_soccer branch:

                                  git pull
                                  git checkout add_more_soccer
                                  

                                  Also, in your config, you’ve specified an array with a single element of an empty string. This won’t match anything, and therefore FIFA games will never be shown. If you want to see all teams just leave out the teams parameter altogether.

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    gashion
                                    last edited by gashion

                                    @j.e.f.f said in MMM-MyScoreboard:

                                    If you want to see all teams just leave out the teams parameter altogether.

                                    Will this apply on every league and sport? If i just add like this:

                                           	 	{
                                            				league: "EPL",
                                           	 				},
                                          					{
                                            				league: "FIFAWC",
                                            				},
                                    					{
                                            				league: "BUNDESLIGA",
                                            				},
                                          					{
                                            				league: "NHL",
                                            				},
                                          					{
                                            				league: "NBA",
                                            				},
                                           	 	}
                                    

                                    Will it show all the games?

                                    and i have support for the new soccer leagues.

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

                                      @gashion yes, that’s correct.

                                      1 Reply Last reply Reply Quote 0
                                      • X Offline
                                        xclsior
                                        last edited by

                                        For some reason, the formatting is off on my display. It displays the module header but the scores are displayed in one line across the middle of the screen. Please help!

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

                                          @xclsior can you post a screenshot and your config?

                                          X 2 Replies Last reply Reply Quote 0
                                          • X Offline
                                            xclsior @j.e.f.f
                                            last edited by

                                            Here is the config:

                                            {
                                            	  module: "MMM-MyScoreboard",
                                            	  position: "top_right",
                                            	  classes: "default_everyone",
                                            	  header: "My Scoreboard",
                                            	  config: {
                                            		    showLeagueSeparators: true,
                                            		    colored: true,
                                            		    viewStyle: "oneLineWithLogos",
                                            		    sports: [
                                            		      {
                                            		        league: "NBA",
                                            		        teams: [""],
                                            		        groups: ["East","West"]
                                            		      }			  		      		
                                            			    	   ]
                                            	 	     }
                                            },
                                            
                                            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