Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting no data for MLB major league baseball #76

Open
commo11 opened this issue Apr 9, 2023 · 1 comment
Open

Getting no data for MLB major league baseball #76

commo11 opened this issue Apr 9, 2023 · 1 comment

Comments

@commo11
Copy link

commo11 commented Apr 9, 2023

{
  module: "MMM-MyScoreboard",
  position: "bottom_left",
  classes: "default everyone",
  header: "Scoreboard",
  config: {
    showLeagueSeparators: true,
    colored: false,
    viewStyle: "stackedWithLogos",
    highlightWinners:true,
    showRankings: true,
    rolloverHours: 10,
    sports: [
      {league: "NHL", teams: ["CHI"] },
      {league: "NBA", teams: ["CHI"] },
      {league: "MLB", teams: ["CHW"] },
      {league: "NFL", teams: ["CHI"] },
            ]
           }
},

I don't really understand whats going on I am getting information from NBA but not MLB or NHL, I'm thinking it has something to do with SNET.js but not sure . Their was a White Soxs game today but nothing displayed.

@Dresch360
Copy link

Dresch360 commented Apr 11, 2023

Quick (and dirty) solution - Change them all to ESPN instead of SNET

IN MMM-MYSCOREBOARD.JS
//North American Leagues
"NBA": {provider: "ESPN", logoFormat: "svg"},
"NHL": {provider: "ESPN", logoFormat: "svg"},
"NFL": {provider: "ESPN", logoFormat: "svg"},
"CFL": {provider: "ESPN", logoFormat: "svg"},
"MLB": {provider: "ESPN", logoFormat: "svg"},
"MLS": {provider: "ESPN", logoFormat: "url", homeTeamFirst: true},
"NCAAF": {provider: "ESPN", logoFormat: "url"},
"NCAAM": {provider: "ESPN", logoFormat: "url"},
"NCAAM_MM": {provider: "ESPN",logoFormat: "url"},
"NCAAW": {provider: "ESPN", logoFormat: "url"},
"WNBA": {provider: "ESPN", logoFormat: "url"},

IN ESPN.JS
module.exports = {

PROVIDER_NAME: "ESPN",

LEAGUE_PATHS: {

//North American Leagues
"CFL": "football/cfl",
"MLS": "soccer/mls",
"NHL": "hockey/nhl",
"MLB": "baseball/mlb",
"NFL": "football/nfl",
"NCAAF": "football/college-football",
"NBA": "basketball/nba",
"WNBA": "basketball/wnba",
"NCAAM": "basketball/mens-college-basketball",
"NCAAM_MM": "basketball/mens-college-basketball",
"NCAAW" : "basketball/womens-college-basketball/",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants