• 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 414.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.
  • J Offline
    j.e.f.f Project Sponsor Module Developer @BKeyport
    last edited by Nov 22, 2018, 10:21 PM

    @bkeyport said in MMM-MyScoreboard:

    hey, @vinp -

    I filed this as an issue on the main fork - was wondering if you’d be interested in adding this for me, as I’m just a beginner in javascript and don’t fully understand what’s going on here.

    For leagues that are currently “Out of Season” or off for the day, can we get output like “[league name] - No games scheduled” - This would prevent blank screens in my case, where I have MMM-Carousel running to page between sports.

    “MLB - No Games Scheduled”
    “NBA - No Games Scheduled”
    “NCAAF - No Games Scheduled”
    etc.

    My module is intended to use as little space as possible. When no games are scheduled for your current config, either because the sport is out of season or there are simply no games scheduled for that particular day, the sport is completely hidden to reclaim space.

    1 Reply Last reply Reply Quote 1
    • B Offline
      BKeyport Module Developer
      last edited by Nov 22, 2018, 11:07 PM

      Right, and I’m suggesting an optional change to that, so that I can eliminate the blank screens… I’d love to see a simple one line “NCAAF - No games scheduled” item available if selected by the user.

      If I was any good at JS, I’d do it myself, but adulting has kept me away from hobby programming.

      The "E" in "Javascript" stands for "Easy"

      1 Reply Last reply Reply Quote 0
      • C Offline
        cyberphox
        last edited by Nov 23, 2018, 2:32 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • C Offline
          cyberphox
          last edited by Nov 24, 2018, 1:27 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • B Offline
            BKeyport Module Developer
            last edited by Nov 24, 2018, 4:31 AM

            So, I did end up forking it (Off of VInP’s fork), if for nothing else to try and figure out how to do things.

            https://github.com/BKeyport/MMM-MyScoreboard

            All I’ve changed so far from VinP’s changes is line 454 - “var anyGames = true;” instead of “false”

            This results in the headers showing, which in my config results in no blank screens.

            The "E" in "Javascript" stands for "Easy"

            V 1 Reply Last reply Nov 24, 2018, 3:25 PM Reply Quote 0
            • V Offline
              vinp Module Developer @BKeyport
              last edited by vinp Nov 24, 2018, 3:34 PM Nov 24, 2018, 3:25 PM

              @bkeyport Good! Always neat to try it on your own. I’ve seen and learned a lot from different MM devs. I’ve made changes to mine to show a “No scores to display” message if there are NO sports to display at all. All you need to do, if you use my fork is to add showNoSportsText: true in the config for the module. git pull of course too :) I do agree with @j-e-f-f, to try to keep the module as small as possible.

              C 1 Reply Last reply Nov 24, 2018, 4:05 PM Reply Quote 1
              • C Offline
                cowboysdude Module Developer @vinp
                last edited by Nov 24, 2018, 4:05 PM

                @vinp But that’s the fun of doing this…you get to build something that you want as a user. Generally speaking most developers don’t mind helping you if you ask…others not so much LOL

                I try to help people with my modules but in all honesty I’m not going to completely rewrite something for one person… doesn’t make sense to do that. BUT yes I have had people do a fork then I help them get what they need for their own personal mirror :)

                That’s the entire reason for the “MagicMirror project”… some people see “MagicMirror” but forget the word ‘project’ LOL I have told people that this is the project you want as it offers so many options, way more than the others.

                1 Reply Last reply Reply Quote 2
                • B Offline
                  BKeyport Module Developer
                  last edited by Nov 25, 2018, 8:26 AM

                  Cool, Thanks, Vince - I’ve merged your updates into my fork, and I’m playing with it now. Thinking about playing around with the other (what I would consider) improvement cases I wanna do, having two or three modules to show scoreboards that are all different does irritate me to no end… :)

                  The "E" in "Javascript" stands for "Easy"

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BKeyport Module Developer
                    last edited by Nov 25, 2018, 8:33 AM

                    FWIW, I seem to have a legit bug - the group “Pac-12” seems to go random on teams in NCAAF. (using my fork of VinP’s fork of the module), I’ve overridden it by putting all the teams in individually for now.

                    The "E" in "Javascript" stands for "Easy"

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BKeyport Module Developer
                      last edited by Nov 25, 2018, 9:31 AM

                      Vince, Your mod works perfectly - once I undo mine.

                      Thanks for the head start to see how it’s modified. Will be fun to learn.

                      The "E" in "Javascript" stands for "Easy"

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 15
                      • 16
                      • 17
                      • 18
                      • 19
                      • 27
                      • 28
                      • 17 / 28
                      17 / 28
                      • First post
                        164/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