Read the statement by Michael Teeuw here.
MMM-MyScoreboard
-
@P-Bo726 I’m travelling all this week but I’ll see what I can do when I get back.
-
+1 to NCAAF
This would be amazing -
@P-Bo726 So it looks like I’d need to make a pretty significant rewrite to make this module work with multiple instances. Right now my node_helper module stores quite a bit of instance information, including what supported sports modules are required – this part in particular poses a real problem being stored as instance configuration, as opposed to a global module configuration.
I’ll spend some time thinking about how this might be architected, but I don’t think this will happen any time soon, sorry to say.
If you wanted to get your hands dirty, you could manually make multiple instances of this module, but it’s really hacky. Make a copy of the MMM-MyScoreboard directory (Say, MMM-MyScoreBoard2). rename MMM-MyScorboard.js to MMM-MyScoreboard2.js. Do the same to the CSS file and rename it to MMM-MyScoreboard2.css. In the MMM-MyScoreboard2.js file, you’ll need to adjust line 12
Module.register("MMM-MyScoreboard"
to readModule.register("MMM-MyScoreboard2"
and similarly line 38return ["MMM-MyScoreboard.css"];
toreturn ["MMM-MyScoreboard2.css"];
Finally, do a search and replace in MMM-MyScoreboard2.css and replace all instances of
MMM-MyScoreboard
withMMM-MyScoreboard2
.Now you have two independent modules - MMM-MyScoreboard and MMM-MyScoreboard2 - that you can configure separately in your config file.
You can do this as many times as you like, so long as each time you are using a different name.
-
Thank you for the response. I’ll take a look at that hack you provided. If you find some "free’’ time and want to work on the multiple instances I would still find some value in it. No pressure, no hurry. I appreciate all the work you have put into this module and the MM forum in general. Great work!
-
@P-Bo726 Need to get NFL up and running before anything else. Pre-season starts this week!
-
Could you get this working with Pointstreak? Lots of minority leagues/sports use Pointstreak such as the UK Elite Ice Hockey League (EIHL)
-
@Krisalexroberts-0 I’ll take a look to see if there is a public data feed available for this. If so, it should be doable. It will take some time to amass all of the logos and such, but I like the potential for many leagues working with a single API.
I still have to finish with NFL – I had it working with last night’s game, but I’d like to run it against next week’s preseason lineup to see if there are any gotchas before I release it.
So far I have requests for NCAAF, Pointstreak and eSports. Should be an interesting summer!
-
@j.e.f.f you’re a star!
I don’t know if this helps: https://github.com/eikeco/pointstreak-leauge-table
-
@Krisalexroberts-0 it does. Seems to be hit or miss as to which leagues have data feeds. Are there specific leagues that you’re looking to see incorporated? Doesn’t look like I can just incorporate blanket pointstreak support.
-
I’m selfish so only care about EIHL