Shows the cricket scores on a Magic Mirror
In your terminal, go to your MagicMirror's Module folder and clone MMM-Cricket-Scores:
cd ~/MagicMirror/modules
git clone https://github.com/Dennis-Rosenbaum/MMM-Cricket-Scores.git
cd ~/MagicMirror/modules/MMM-Cricket-Scores
git pull
npm update
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-Cricket-Scores',
position: 'lower_third',
config: {
}
}
]
Option | Possible values | Default | Description |
---|---|---|---|
numberOfDays |
[number] | 2 | Range between today and today - numberOfDays to show the scores for |
resultSwitchInterval |
[number] | 10 | Switch to the next result every so seconds |
The dom will look like this:
<div>
<div class="result">
<div>
RESULT ·
<span class="title">[title]</span> ·
<span class="ground">[ground]</span>
</div>
<div class="teams">
<div class="team">
<div style="float: left">
<img src="[imageUrl]" width="20" height="20">
<span class="teamname">[teamName]</span>
</div>
<div style="float: right">
<span class="scoreInfo">[scoreInfo]</span>
<span class="score">[score]</span>
</div>
<div style="clear:both"></div>
</div>
</div>
<div>
<span class="status">[status]</span>
</div>
</div>
<div class="pager">
<span><</span>
<span>view result [current]/[total]</span>
<span>></span>
</div>
</div>