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 562.8k 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.
    • 1 Offline
      1a2a3a @sdetweil
      last edited by

      @sdetweil

      weak? absolute?

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @1a2a3a
        last edited by sdetweil

        @1a2a3a

          <div class="MMM-MyScoreboard"> 
             <div class="box-score">
                   <div class="stackedWithLogos home-team-first">
                         <div >some text </div>
             <div class="box-score stackedWithLogos home-team-first>hit the jackpot</div>
         </div>
        

        because your second part of the selector clause has no spaces,
        ALL THREE classes MUST appear in the class= of the element (absolute AND)

        so the element with ‘some text’ will NOT be selectable
        but element WITH all three, hit the jackpot, WILL BE selectable
        (selectable depending on the next 2 classes, which I didn’t show)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 2 Replies Last reply Reply Quote 0
        • S Offline
          SirFM @sdetweil
          last edited by

          I haven’t dove into the code but do you know if the W-L record of the teams could easily be displayed?

          1 Reply Last reply Reply Quote 0
          • 1 Offline
            1a2a3a @sdetweil
            last edited by

            @sdetweil I can’t Sam, I really can’t. Spent 3 days trying to get this and cron job for schedule on off on Wayland. Managed to get cron to work finally, but no dice on this.

            S 1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @1a2a3a
              last edited by sdetweil

              @1a2a3a i understand… open the developers window on the MM browser (best to use the PC browser)

              ctrl-shift-i

              select the elements tab
              select the pointer in the top left of the elements tab
              move the mouse pointer over the MM web page contents to you get to the MMM-MyScoreboard module, all the content should be highlighted
              click mouse

              in the developers window, the (selected by click) module content will be shown
              with all the classes and explicit attributes attached…

              see this topic with screen shots to help see my post here
              https://forum.magicmirror.builders/post/90135

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 Offline
                1a2a3a
                last edited by 1a2a3a

                anyone having issue with the module? its not showing anything now despite games being on.

                getting something like this in the dev mode

                M-MyScoreboard] Updating Scores
                module.js:367 Parameter mismatch in module.hide: callback is not an optional parameter!
                main.js:671 module tries to update the DOM without being displayed.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  crcowan
                  last edited by

                  It appears that the SportsNet feed is not updating during the day. It shows a scores of zero all day.

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dysantic @crcowan
                    last edited by

                    @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

                    W blake_northrupB 2 Replies Last reply Reply Quote 1
                    • S sdetweil referenced this topic on
                    • W Offline
                      wyovino @Dysantic
                      last edited by

                      @sdetweil

                      I’d like to increase the size of the start time for an upcoming game. Which element in the CSS file would that be?

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @wyovino
                        last edited by sdetweil

                        @wyovino I do not know

                        you can look at the css provided by the module in the module folder. it may give you info about that content style

                        you can also use the developer window to examine and change styles to determine how to set custom.css

                        see this post

                        https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues/2?_=1720443608424

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        W 1 Reply Last reply Reply Quote 1
                        • E Offline
                          ericsprime18
                          last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wyovino @sdetweil
                            last edited by

                            For anyone else interested, I changed the following in the MMM-MyScoreboard.css file:

                            In the "MMM-MyScoreboard .box-score .status " section

                            From:
                            font-size: 20px;
                            font-weight: 400;

                            To:
                            font-sze: 30px;
                            font-weight: bold;l

                            1 Reply Last reply Reply Quote 0
                            • blake_northrupB Offline
                              blake_northrup @Dysantic
                              last edited by

                              @Dysantic Thank you for this fix @Dysantic! Works like a charm!

                              1 Reply Last reply Reply Quote 0
                              • O Offline
                                ogunn
                                last edited by

                                @blake_northrup can you post your config code for your scoreboard because I still can’t get it to load. Thanks,

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  dathbe @ogunn
                                  last edited by

                                  FYI, i have taken over maintaining this module and have made some updates. anyone interested can check out at https://github.com/dathbe/MMM-MyScoreboard .

                                  open an issue if you have problems or a suggestion.

                                  BKeyportB 1 Reply Last reply Reply Quote 1
                                  • BKeyportB Offline
                                    BKeyport Module Developer @dathbe
                                    last edited by

                                    @dathbe Thank you. I’ve wanted to install this module again, but I have worries about longevity.

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

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dathbe @BKeyport
                                      last edited by

                                      @BKeyport Awesome. Unrelated, but I love your MMM-Multimonth.

                                      1 Reply Last reply Reply Quote 1

                                      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
                                      • 10
                                      • 11
                                      • 12
                                      • 13
                                      • 14
                                      • 14 / 14
                                      • 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