Skip to content

Module for MagicMirror to fetch (random) MTG cards

License

Notifications You must be signed in to change notification settings

crisvdn/MMM-MTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-MTG

Introduction

This module fetches a MTG random card from Scryfall Api. Depending on configurations, it will fetch commanders only (legendary creatures) or random cards.

Example of MTG module

Installation

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.

Configuration

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",
    }
},

About

Module for MagicMirror to fetch (random) MTG cards

Resources

License

Stars

Watchers

Forks

Packages

No packages published