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-NHL - NHL Score and Schedule module

    Scheduled Pinned Locked Moved Sport
    26 Posts 14 Posters 21.4k Views 13 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.
    • T Offline
      Trentent
      last edited by yawns

      Description:

      Hello, I have created a module that shows the NHL schedule and scores for the previous day, today, and (optional) days in the future. I copied the brilliant NFL score module than proceeded to make numerous modifications to enable it to work with the NHL and their feeds.

      Several of the features of the NFL module has been removed or have gone untested (follwed team/voice/statistics) so this module is pretty basic in comparison but accomplishes what I was looking for.

      I am a total newb to javascript and have not coded in a node.js architecture before so I’m sure I’ve done lots wrong or have lots of mistakes that could use correcting. If you see some, feel free to submit back or just fork and take that responsibility away from me :)

      Thanks for looking!

      Screenshot:

      0_1480838925896_example.jpg

      Download:

      [card:Trentent/MMM-NHL]


      Initial Version

      1 Reply Last reply Reply Quote 1
      • T Offline
        Trentent
        last edited by

        This post is deleted!
        strawberry 3.141S 1 Reply Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @Trentent
          last edited by

          @Trentent there are still some unused leftovers from the nfl module in your code and you could have saved same time :D already made a nhl module, but now people can choose different styles

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

          1 Reply Last reply Reply Quote 1
          • T Offline
            Trentent
            last edited by

            I swear I tried finding an NHL module and couldn’t so decided to try making it myself! Heh, well thanks for making one!

            ooom416354O 1 Reply Last reply Reply Quote 0
            • ooom416354O Offline
              ooom416354 @Trentent
              last edited by

              @Trentent Hey, I just did this with the NFL module but am wondering if I can only show one team in the NHL module? I tried focus_on: [‘NYI’] (yes I am an Isles fan, ugh). This didn’t work, is there something else I need to change?

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

                @ooom416354 try focus_on: [2]

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

                S ooom416354O 2 Replies Last reply Reply Quote 0
                • S Offline
                  Sunburned @strawberry 3.141
                  last edited by

                  @strawberry-3.141 said in NHL Score and Schedule module:

                  focus_on: [2]

                  Thanks for posting this! Really only interesting the NY Rangers. The full list of teams can be found in the .js file.

                  https://github.com/Trentent/MMM-NHL/blob/master/MMM-NHL.js

                  1 Reply Last reply Reply Quote 0
                  • ooom416354O Offline
                    ooom416354 @strawberry 3.141
                    last edited by

                    @strawberry-3.141

                    @strawberry-3.141 said in NHL Score and Schedule module:

                    @ooom416354 try focus_on: [2]

                    worked perfectly, thanks!

                    1 Reply Last reply Reply Quote 0
                    • ooom416354O Offline
                      ooom416354
                      last edited by

                      anyone having an issue today with the module? i am just seeing Loading… and was wondering if it was just me or some other issue

                      ooom416354O 1 Reply Last reply Reply Quote 0
                      • ooom416354O Offline
                        ooom416354 @ooom416354
                        last edited by

                        @ooom416354 said in NHL Score and Schedule module:

                        anyone having an issue today with the module? i am just seeing Loading… and was wondering if it was just me or some other issue

                        think i figured it out, no games on the schedule for the christmas break.

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          HungoverRex
                          last edited by

                          Hey guys,

                          I have installed MMM-NHL in modules and edited my config.js file which shows the modules on my MagicMirror. However, I cannot see the schedule list, there are games on tonight. Any suggestions?
                          0_1484528104908_Screen Shot 2017-01-15 at 4.45.14 PM.png
                          0_1484528455505_Screen Shot 2017-01-15 at 5.00.19 PM.png

                          in_a_daysI strawberry 3.141S 2 Replies Last reply Reply Quote 0
                          • in_a_daysI Offline
                            in_a_days @HungoverRex
                            last edited by in_a_days

                            @HungoverRex

                            Did you maybe skip installing the dependencies? Navagate to the modules/MMM-NHL folder and

                            sudo npm install

                            Restart your mirror and you should have scores.

                            What ship would bear me ever back across so wide a Sea?

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

                              @HungoverRex remove the quotes from your booleans, this should be the problem.

                              {
                                module:"MMM-NHL",
                                position: "lower_third",
                                config: {
                                  colored: false,
                                  focus_on: false,
                                  format: "ddd h:mm",
                                  reloadInterval: 1800000,
                                  datesToLookAhead: 1
                                }
                              }
                              

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

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                Atheose
                                last edited by

                                This is an awesome module! Thanks for the work.

                                One question for you. I’ve got it set to focus on my team. However, it only shows the previous game if it occurred yesterday. Is it possible to change this so it pulls the previous two or three days’ worth of games?

                                For example: the Dallas Stars played on Saturday. They had an off-day Sunday, and it is now Monday. Yet it does now show Saturday’s game. I’ve looked at the .js file and nothing jumps out at me. Any ideas?

                                Thanks again!

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  l8kerjuan
                                  last edited by l8kerjuan

                                  getting “Loading” on my screen. Any ideas of what i am missing? @Trentent

                                  {
                                  module: ‘MMM-NHL’,
                                  position: ‘middle_center’,
                                  config: {
                                  colored: false,
                                  focus_on: false,
                                  format: ‘ddd h:mm’,
                                  reloadInterval: 1800000,
                                  datesToLookAhead: 1
                                  }
                                  },

                                  1 Reply Last reply Reply Quote 0
                                  • ooom416354O Offline
                                    ooom416354
                                    last edited by

                                    I have a small issue with the module, wondering if it’s something I screwed up. Basically it will refresh with the realtime scores for any games listed on the mirror. But after the game ends it will not add on any new scores and remove the old scores as the days move forward. for example, I have focus on the NY Islanders and they played Saturday, Sunday and Tuesday. They are scheduled to play tonight as well. On my mirror right now are the 3 previous games but not the next 3. If I reload the entire page it will update with tonights game and any future ones. Is there something I need to do to get it to update automatically without having to refresh the whole mirror?

                                    A ooom416354O 2 Replies Last reply Reply Quote 0
                                    • A Offline
                                      Atheose @ooom416354
                                      last edited by

                                      @ooom416354 I am having this exact issue now as well. It began last week. If I refresh the mirror the scores/schedule updates, but otherwise it does not.

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

                                        I’ve been playing with this module during the playoffs, and I’ve found a few bugs that were causing this module to fail. I’ve fixed them in my local copy, but I don’t know how to go about getting them incorporated into the official download.

                                        I’ve also changed the visual formatting for myself, and am willing to share if anyone wants it:
                                        0_1492924456676_Screen Shot 2017-04-23 at 1.13.59 AM.png

                                        Thanks for this wonderful module! Been fun watching the playoffs and tweaking this at the same time. I’d like to make similar ones for other sports – NBA, MLB, CFL – and I’m willing to provide front-end formatting if someone would take care of coding the data fetch.

                                        • Jeff
                                        R 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          reflektor @j.e.f.f
                                          last edited by

                                          @j.e.f.f I’d love to get a copy of your fixes and visual tweaks! Maybe upload the .zip somewhere and share?

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

                                            @reflektor Sure. I’ve done more or less the same for MLB and NBA too. Basically in each case it is a rewrite of the getDom() portion of the module, along with styles to support the new markup. Also I changed the logos to use SVG files so they would scale to whatever size I needed. Spent quite a bit of time playing around with proportions before I settled on this. PM me and I can send you the files.

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