MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Dysantic
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    Dysantic

    @Dysantic

    1
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location Earth

    Dysantic Unfollow Follow

    Best posts made by Dysantic

    • RE: MMM-MyScoreboard

      @crcowan
      Sportsnet made a change to the hostname for the API, yet their old hostname (and the one this module uses) still has access to the “pre-game” data, which is why we still see the game time, but no live updates or post-game scores.

      A quick fix is to go into the “SNET.js” file, and look for:

      var url = "https://mobile-statsv2.sportsnet.ca/ticker?day=" + this.gameDate.format("YYYY-MM-DD");
      

      Update the hostname from “mobile-statsv2.sportsnet.ca” to “stats-api.sportsnet.ca” like so:

      var url = "https://stats-api.sportsnet.ca/ticker?day=" + this.gameDate.format("YYYY-MM-DD");
      

      The API output is still formatted as the module expects, and all should work again.

      I’ve submitted a pull request, and hopefully I did this correctly… it’s my first time submitting an update via GitHub:

      https://github.com/jclarke0000/MMM-MyScoreboard/pull/91

      posted in Sport
      D
      Dysantic

    Latest posts made by Dysantic

    • RE: MMM-MyScoreboard

      @crcowan
      Sportsnet made a change to the hostname for the API, yet their old hostname (and the one this module uses) still has access to the “pre-game” data, which is why we still see the game time, but no live updates or post-game scores.

      A quick fix is to go into the “SNET.js” file, and look for:

      var url = "https://mobile-statsv2.sportsnet.ca/ticker?day=" + this.gameDate.format("YYYY-MM-DD");
      

      Update the hostname from “mobile-statsv2.sportsnet.ca” to “stats-api.sportsnet.ca” like so:

      var url = "https://stats-api.sportsnet.ca/ticker?day=" + this.gameDate.format("YYYY-MM-DD");
      

      The API output is still formatted as the module expects, and all should work again.

      I’ve submitted a pull request, and hopefully I did this correctly… it’s my first time submitting an update via GitHub:

      https://github.com/jclarke0000/MMM-MyScoreboard/pull/91

      posted in Sport
      D
      Dysantic