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.

    NFL Score Module

    Scheduled Pinned Locked Moved Sport
    95 Posts 20 Posters 122.6k Views 25 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer @justjim1220
      last edited by

      @justjim1220 It’s not setup to show any preseason games…on the Github page it shows config options and this is one of them:

      `focus_on	 Display only matches with teams of this array e.g. ['NYG', 'DAL', 'NE'].`
      

      This is how it’s used:

           `{ 
               module: 'MMM-NFL', 
               position: 'top_right', 
               config: { 
               focus_on:  ['NYG', 'DAL', 'NE']  //JUST an example to show ONLY those 3 teams
               } 
               }
      
      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @cowboysdude
        last edited by

        @cowboysdude

        Ok, here’s a screen shot of what it looks like…

        0_1534233213612_Screenshot (29).png

        As you can see… It says ‘NFL Pre-Season 2017’ in the header.

        the actual list of games are from the final regular season week of 2017.

        It doesn’t show, in the Readme regarding any modes to use in the config.

        added the ‘focus_on’ in the config, nothing changed…

        0_1534233142592_Screenshot (44).png

        which by the way, is also not explained or covered in the Readme,

        0_1534233048779_Screenshot (45).png

        I’ve had this module for quite a while now, have never been informed of any changes.
        But, I decided to trash it and restart it with a fresh install of the module…

        I noticed several differences in the first one I had and the current one…

        the files of the one I’ve had for a while…
        0_1534233660047_Screenshot (46).png

        the files of the one I downloaded and installed a little while ago…
        0_1534233742373_Screenshot (47).png

        this is the difference of the MMM-NFL.js files…
        0_1534234651388_Screenshot (48).png

        the latest one shows modes for Pre-Season, Regular-Season, & Post-Season…

        If I use the modes, Pre & Post, I get a blank mirror, and this error in my terminal…
        0_1534234889112_Screenshot (38).png

        here’s what it looks like with the 'Regular-Season" mode and the ‘focus_on’ added in the config…
        0_1534234291088_Screenshot (49).png

        I also get a blank screen with the same error in my terminal when leaving out the mode and the focus_on.

        So, now you can see why I have had so many problems with it!

        "Life's Too Short To Dance With Ugly People"
        Jim Hallock - 1995

        1 Reply Last reply Reply Quote 0
        • justjim1220J Offline
          justjim1220 Module Developer
          last edited by

          After further research, I found that the dependencies needed to be manually installed.
          this fixed the blank pages problem.

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

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

            focus_on has been there for over a year…so not sure what readme you’re looking at but on Github it is clearly in the readme and has been…

            `   Config Options
                Option	Default	Description
                colored	false	Remove black/white filter of logos/helmets.
                helmets	false	Show helmets instead of logo.
                focus_on	false	Display only matches with teams of this array e.g. ['NYG', 'DAL'].
                format	'ddd h:mm'	In which format the date should be displayed. All Options
                reloadInterval	1800000 (30 mins)	How often should the data be fetched
            

            As for pre season scores…it’s impossible. It uses one of two urls for the data and neither show pre season…they show reg or post season…

            So A. Either you’ve changed something or B. you’re not using this module…

            I know this module like it was my own… it doesn’t do Pre Season football. I’m looking at the raw data…the regular and post season scores are from 2017…

            justjim1220J 1 Reply Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @cowboysdude
              last edited by

              @cowboysdude

              I think I figured it out…

              I’ve been getting it from your repository list and not from the 3rd party list. Look at them and you’ll see the same differences I have been experiencing

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              cowboysdudeC 1 Reply Last reply Reply Quote 1
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer
                last edited by

                Dimensional shift in progress.

                Create a working config
                How to add modules

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

                  @justjim1220 said in NFL Score Module:

                  @cowboysdude

                  I think I figured it out…

                  I’ve been getting it from your repository list and not from the 3rd party list. Look at them and you’ll see the same differences I have been experiencing

                  ALWAYS go to the source just in case there have been changes…

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    darbos @cowboysdude
                    last edited by

                    @cowboysdude Hey again, I believe Im reading this right, so the 2017 is normal for now (module doesnt track preseason) and when the regular season starts we will start seeing the 2018 games/scores? No need to update any links or anything? Thanks!

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

                      @darbos said in NFL Score Module:

                      @cowboysdude Hey again, I believe Im reading this right, so the 2017 is normal for now (module doesnt track preseason) and when the regular season starts we will start seeing the 2018 games/scores? No need to update any links or anything? Thanks!

                      Yes sir that’s exactly what will happen :)

                      D 1 Reply Last reply Reply Quote 2
                      • D Offline
                        darbos @cowboysdude
                        last edited by

                        @cowboysdude Good stuff! Thank you sir!

                        1 Reply Last reply Reply Quote 1
                        • A Offline
                          Achilles
                          last edited by

                          Anyone else’s module not update today? I still have NFL 2017 Regular Season showing…

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sgault @Achilles
                            last edited by

                            @achilles
                            Same here. I was hoping it would update but no go. I look at the url that it goes out to check and it appears that NFL.com isn’t updating it. I’m wondering if developer of this module may need to do some tweeking or instructions so we as users can.

                            1 Reply Last reply Reply Quote 0
                            • strawberry 3.141S Offline
                              strawberry 3.141 Project Sponsor Module Developer
                              last edited by

                              There are several options (good and bad ones), but I’m busy. Therefore I will wait at least until this weekend, before I take an action here. Getting a new api most of the times also means rewriting most of the module which is time intensive. Maybe there are also volunteers.

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

                              Mykle1M 1 Reply Last reply Reply Quote 1
                              • Mykle1M Offline
                                Mykle1 Project Sponsor Module Developer @strawberry 3.141
                                last edited by

                                @strawberry-3-141 said in NFL Score Module:

                                Maybe there are also volunteers.

                                :thumbsup:

                                Create a working config
                                How to add modules

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

                                  According to Stackoverflow the xml service is discontinued and is now using JSON for the 2018 season. Here’s the JSON file http://www.nfl.com/liveupdate/scores/scores.json

                                  G 1 Reply Last reply Reply Quote 1
                                  • G Offline
                                    gama @gama
                                    last edited by

                                    @gama said in NFL Score Module:

                                    According to Stackoverflow the xml service is discontinued and is now using JSON for the 2018 season. Here’s the JSON file http://www.nfl.com/liveupdate/scores/scores.json

                                    Just noticed that someone replied with an AJAX version that appeared to have the same output as the XML file. I plugged it in to the node_helper.js file and it works!

                                    Here’s the AJAX version http://www.nfl.com/ajax/scorestrip?season=2018&seasonType=REG&week=1

                                    justjim1220J strawberry 3.141S 2 Replies Last reply Reply Quote 0
                                    • justjim1220J Offline
                                      justjim1220 Module Developer @gama
                                      last edited by

                                      @gama

                                      Could you explain how you 'plugged it into the node_helper.js file?
                                      I would greatly appreciate it!

                                      TIA!!!

                                      "Life's Too Short To Dance With Ugly People"
                                      Jim Hallock - 1995

                                      1 Reply Last reply Reply Quote 0
                                      • strawberry 3.141S Offline
                                        strawberry 3.141 Project Sponsor Module Developer @gama
                                        last edited by

                                        @gama the problem with this link is, that you need to change it every week. In order to work automatically you need to create a logic to change the week and seasontype and year automatically.

                                        I previously tried to create a logic just to determine if it is regular or post season and the mirrors of the peaople started going crazy flickering regular and post season.

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

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

                                          I will be going on vacation from this Friday until the 27th…going here ->

                                          https://www.galvestonbeachinfo.com/

                                          1 Reply Last reply Reply Quote 0
                                          • strawberry 3.141S Offline
                                            strawberry 3.141 Project Sponsor Module Developer
                                            last edited by

                                            nfl updated the data source and is now on week 2 season 2018. so it should work now again as expected.

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

                                            1 Reply Last reply Reply Quote 1

                                            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
                                            • 4 / 5
                                            • 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