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-MLB

    Scheduled Pinned Locked Moved Sport
    35 Posts 10 Posters 29.1k Views 10 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.
    • J Offline
      jimmrr
      last edited by

      @cowboysdude
      Hi, i’ve tried to install this on my magicmirror running on a pi zero, the module will not load in the browser. Any ideas? I have node v6.10.0 and npm 3.10.10.

      pi@raspberrypi:~/MagicMirror $ node serveronly
      Starting MagicMirror: v2.1.0
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Initializing new module helper ...
      No helper found for module: clock.
      No helper found for module: calendar_monthly.
      Initializing new module helper ...
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      All module helpers loaded.
      Starting server op port 8080 ...
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: MMM-MLB
      Starting module: MMM-MLB
      Connecting socket for: calendar
      Starting node helper for: calendar
      Sockets connected & modules started ...
      
      Ready to go! Please point your browser to: http://localhost:8080
      
      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @jimmrr
        last edited by

        @jimmrr i guess you use the midori browser, which cant handle es6 and this module makes use of es6 features

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

        1 Reply Last reply Reply Quote 1
        • D Offline
          Durnumosis @cowboysdude
          last edited by

          @cowboysdude Thank you so much for your work on this module! I was digging through the code to see how you did it and noticed there’s some code for getting the MLB standings. Is this something that you are actively working on? It would be great to see the scores as well as the standings. Thanks again for a great module!

          cowboysdudeC 1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer @Durnumosis
            last edited by cowboysdude

            @Durnumosis Well yes I am working on that part :) I’m running into snags so it’s going to be a while… still trying to figure it all out :)

            Of course the standings is part of the voice part [MMM-voice]… I am also working on a standalone standings module… no voice required…

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

              Question guys, I have the focus_on set to “Yankees” but today they happen to be off so all I see is the header, with the MLB logo and the text MLB Scores 04/20/2017. Is there a way to hide that if the team that is set in the focus_on is not playing that day?

              cowboysdudeC 1 Reply Last reply Reply Quote 0
              • cowboysdudeC Offline
                cowboysdude Module Developer @ooom416354
                last edited by

                @ooom416354 I will have to check into that. :) It’s going to take a little while.

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

                  @cowboysdude no problem, figured it would be a bit difficult

                  cowboysdudeC 1 Reply Last reply Reply Quote 0
                  • cowboysdudeC Offline
                    cowboysdude Module Developer @ooom416354
                    last edited by

                    @ooom416354 Just from a time aspect :) My business is burying me right now… it’s that time of the year… ;)

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

                      @cowboysdude ha i know the feeling. Thanks again!

                      1 Reply Last reply Reply Quote 1
                      • S Offline
                        shanecrozier
                        last edited by

                        It loads and shows scores and such but no logos not even MLB. Both are set to true

                        Any ideas ?

                        cowboysdudeC 1 Reply Last reply Reply Quote 0
                        • cowboysdudeC Offline
                          cowboysdude Module Developer @shanecrozier
                          last edited by

                          @shanecrozier I only have one… I just deleted and reinstalled on mine and it’s working fine…

                          SO in the MMM-MLB directory make sure the icon folder is there ;)

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            shanecrozier @cowboysdude
                            last edited by

                            @cowboysdude yes it is already checked that and it has all the icons in it

                            cowboysdudeC 1 Reply Last reply Reply Quote 0
                            • cowboysdudeC Offline
                              cowboysdude Module Developer @shanecrozier
                              last edited by

                              @shanecrozier Well I would say reinstall it because it doesn’t require npm install to run…

                              Like I said I just downloaded it and reinstalled it and it’s working. So not really sure what’s going there as I"m not able to reproduce the issue unless the icons dir isn’t there.

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                shanecrozier
                                last edited by

                                Ok will try that thanks for the help

                                1 Reply Last reply Reply Quote 1
                                • emloweE Offline
                                  emlowe Module Developer
                                  last edited by

                                  I made a small change to this module.

                                  If you add the following:

                                  awayTempColumn.setAttribute(“team-name”, games.away_team_name);
                                  homeTempColumn.setAttribute(“team-name”, games.home_team_name);

                                  Then you can do this in your custom.css:

                                  .MMM-MLB .awayteam[team-name=“Giants”] { color: #FB5B1F; font-weight: bold; }

                                  .MMM-MLB .hometeam[team-name=“Giants”] { color: #FB5B1F; font-weight: bold; }

                                  And now, my Giants are in Giant orange…

                                  -Earle

                                  Mykle1M 1 Reply Last reply Reply Quote 2
                                  • Mykle1M Offline
                                    Mykle1 Project Sponsor Module Developer @emlowe
                                    last edited by

                                    @emlowe said in MMM-MLB:

                                    And now, my Giants are in Giant orange…

                                    Go Gints!

                                    Create a working config
                                    How to add modules

                                    1 Reply Last reply Reply Quote 0
                                    • cowboysdudeC Offline
                                      cowboysdude Module Developer
                                      last edited by

                                      Thank you @emlowe and from kolbyjack for his new changes which are:

                                      Center text in R/H/E columns
                                      Add team record next to team name
                                      Make status and venue text after table optional
                                      Simplify table creation by reducing code duplication
                                      Show scores from yesterday until 4pm UTC (noon EDT/9am PDT)

                                      Go to:
                                      ~MagicMirror/modules/MMM-MLB
                                      do a git pull to update :)

                                      1 Reply Last reply Reply Quote 0
                                      • cowboysdudeC Offline
                                        cowboysdude Module Developer
                                        last edited by

                                        Description:

                                        [Thanks to kolbyjack!!! - His changes]

                                        • Create individual widget types for pregame, ingame, postgame, postponed game, and no game
                                        • Pregame: Show start time and propable pitchers
                                        • In game: Show inning state, runners on base, count, outs, pitcher, and batter
                                        • Postgame: Show R/H/E, winning pitcher, losing pitcher, and save pitcher
                                        • Postponed game: Show reason for postponing (if known)
                                        • No game: Explicitly show that the focus_on team doesn’t have a game today

                                        Screenshots:

                                        0_1522802427421_Capture.PNG

                                        Download:

                                        [card:cowboysdude/MMM-MLB]

                                        Version 1.0.8

                                        Mykle1M 1 Reply Last reply Reply Quote 2
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @cowboysdude
                                          last edited by

                                          @cowboysdude said in MMM-MLB:

                                          kolbyjack

                                          Kudos to you for the module and kolbyjack for his input.

                                          Create a working config
                                          How to add modules

                                          1 Reply Last reply Reply Quote 0
                                          • W Offline
                                            wishsolotion
                                            last edited by

                                            Damn, this is a cool module! I’m building an MM Sports computer for someone as a gift and this is already . I don’t know how you geniuses do it, however I’m happy you do. I tip my hat to you, sir, and I thanks for sharing this high-quality advent of yours. 👏🏼

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