This module fetches a MTG random card from Scryfall Api. Depending on configurations, it will fetch commanders only (legendary creatures) or random cards.
Clone this repo to your modules directory and add the configuration.
cd MagicMirror/modules
git clone https://github.com/crisvdn/MMM-MTG.git # or secure shell link
# optional
cd MMM-MTG # navigate to module
git switch -d v1.0 # check out the release u want.
Minimal configuration
{
module: "MMM-MTG",
position: "bottom_right", // location
},
Configuration | Values | Summary | Default |
---|---|---|---|
showCommandersOnly | true/false |
Shows legendary creatures only or random cards | true |
fetchInterval | 0-X | Fetch interval in minutes. 0 is disabled. | 1 |
sizePx | 0-x px | Max size in height (string) | 450px |
Example configuration
{
module: "MMM-MTG",
position: "bottom_right", // location
config: {
showCommandersOnly: false,
fetchInterval: 10, // every 10 minutes
sizePx: "300px",
}
},