• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 460.0k 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
    last edited by Mar 22, 2018, 12:43 PM

    @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 Mar 22, 2018, 1:07 PM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @fabbr
      last edited by Mar 22, 2018, 1:07 PM

      @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 Mar 22, 2018, 1:22 PM Reply Quote 0
      • F Offline
        fabbr @j.e.f.f
        last edited by Mar 22, 2018, 1:22 PM

        @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 Mar 22, 2018, 1:26 PM Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @fabbr
          last edited by Mar 22, 2018, 1:26 PM

          @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 Mar 22, 2018, 6:41 PM Reply Quote 1
          • F Offline
            fabbr @j.e.f.f
            last edited by fabbr Mar 22, 2018, 6:44 PM Mar 22, 2018, 6:41 PM

            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 Mar 22, 2018, 6:44 PM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @fabbr
              last edited by Mar 22, 2018, 6:44 PM

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

              F 1 Reply Last reply Mar 22, 2018, 6:46 PM Reply Quote 0
              • F Offline
                fabbr @j.e.f.f
                last edited by Mar 22, 2018, 6:46 PM

                @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 Mar 22, 2018, 7:13 PM Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer @fabbr
                  last edited by Mar 22, 2018, 7:13 PM

                  @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 Mar 23, 2018, 2:01 AM Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer
                    last edited by Mar 23, 2018, 1:32 AM

                    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 Mar 23, 2018, 2:01 AM

                      @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 Mar 25, 2018, 6:01 PM Reply Quote 0
                      • 1
                      • 2
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 27
                      • 28
                      • 10 / 28
                      10 / 28
                      • First post
                        99/277
                        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