Read the statement by Michael Teeuw here.
MMM-MyScoreboard
-
@sdetweil i dont understand sam…
did you mean like this?
.MMM-MyScoreboard .box-score AND stackedWithLogos AND home-team-first .score AND visitor { left: 120px; font-size: 0.8rem; }
-
@1a2a3a I was specifying the logic of you selector clause
. means class
if there are multiple . in a string with no spaces it means
all these classes MUST be specified on the element explicitlyso you have some weak ands (with spaces)
.MMM-MyScoreboard (weak and) .box-score.stackedWithLogos.home-team-first (weak and) .score.visitorand some ABSOLUTE ands
.box-score(ABSOLUTE and).stackedWithLogos(ABSOLUTE and).home-team-first
all these classes MUST be on the same element
class=“box-score stackedWithLogos home-team-first”
and
.score(ABSOLUTE and).visitor
class=“score visitor” -
weak? absolute?
-
<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) -
I haven’t dove into the code but do you know if the W-L record of the teams could easily be displayed?
-
@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.
-
@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 mousein 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 -
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. -
It appears that the SportsNet feed is not updating during the day. It shows a scores of zero all day.
-
@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:
-