Giter Club home page Giter Club logo

mmm-mlb's Introduction

Module: MMM-MLB

The module allows you to view daily scores and standings for the MLB.

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/cowboysdude/MMM-MLB.git

Configure the module in your config.js file.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
  {
    module: "MMM-MLB",
    position: "top_center",
    config: { // See "Configuration options" for more information.
      maxWidth: "400px",
      header: true,
      logo: true,
      focus_on: ["Indians", "Braves", "Yankees"]
    }
  }
]

Configuration options

The following properties can be configured:

Option Default Description
updateInterval 3*60000 How often (in ms) to update data from the server.
animationSpeed 10 How long (in ms) animate transitions.
initialLoadDelay 2500 How long (in ms) to wait before initial data load.
maxWidth "400px" Maximum width (in css units) of the widget.
rotateInterval 5 * 1000 How often (in ms) to rotate between scores/divisions.
header true Whether or not to display a header showing the mode and date at the top of the widget.
logo false Whether or not to display the MLB logo in the header.
focus_on [] When set, games or divisions involving the listed teams will be displayed. (Thank you strawberry!)
mode "scoreboard" Set to "standings" to display standings.

Custom CSS

Custom.css colors you can configure:

.MMM-MLB .header
.MMM-MLB .status
.MMM-MLB .r
.MMM-MLB .h
.MMM-MLB .e
.MMM-MLB .hometeam
.MMM-MLB .awayteam
.MMM-MLB .status2
.MMM-MLB .status3
.MMM-MLB .status4

mmm-mlb's People

Contributors

cowboysdude avatar fewieden avatar kolbyjack avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

lukeas14

mmm-mlb's Issues

I am attempting to display for multiple teams but not working

I attempted to provide all three teams as per config sample and only the 1st team scores are displayed. I then created 3 configs, one per team and that again only displayed the first team scores.

{
module: "MMM-MLB",
position: "bottom_left",
config: { // See "Configuration options" for more information.
maxWidth: "400px",
header: true,
logo: true,
focus_on: ["Yankees"]
}
},
{
module: "MMM-MLB",
position: "bottom_left",
config: { // See "Configuration options" for more information.
maxWidth: "400px",
header: true,
logo: true,
focus_on: ["Toronto"]
}
},
{
module: "MMM-MLB",
position: "bottom_left",
config: { // See "Configuration options" for more information.
maxWidth: "400px",
header: true,
logo: true,
focus_on: ["Boston"]
}
},

OR

{
module: "MMM-MLB",
position: "bottom_left",
config: { // See "Configuration options" for more information.
maxWidth: "400px",
header: true,
logo: true,
focus_on: ["Yankees" ,"Boston", "Toronto"]
}
},

2023 Season - “MLB SCORES” header is showing but nothing else.

This is the start of the 2023 season. The MLB SCORES header is showing but nothing else. Did the website source (url) change where the module is getting the info from? The module seems to be running without any errors.
I tried to do a “git pull” in the MMM-MLB directory and everything is up to date.
This module was working fine last season (2022). But at the start of this season it is not working. This leads me to believe that the source url has maybe changed?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

npm
package.json

  • Check this box to trigger a request for Renovate to run again on this repository

Not Displaying Standings

The result is just a header stating MLB STANDINGS with no data below.

{`

                    module: "MMM-MLB",
                    position: "bottom_left",
                    config: { // See "Configuration options" for more information.
                    maxWidth: "400px",
                    header: true,
                    logo: true,
                    focus_on: ["Yankees"],
                    mode: "standings"
                    }
            },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.