MMM-MD

Go to GitHub repository


Table of contents
  1. What you need
  2. Usage
  3. Properties (Config Section)
  4. Notifications
  5. Screenshots
  6. Documents path

tl;dr

Write MD. Render it on the MagicMirror!


This module enables you to write whatever you want directly rendering it on your MagicMirror screen!


What you need

You just need:

Any MD syntax is supported. Multimedia is supported too! Autoscroll if content is too much.


Usage

  1. Locate: ~/MagicMirror/modules
  2. Clone:

     git clone https://www.github.com/AndreaGrandieri/MMM-MD
    
  3. Add fragment to ~/MagicMirror/config/config.js

     {
         module: "MMM-MD",
         position: "center",
         config: {
             // Alternative configuration properties are optional
         }
     }
    
  4. Build:

     cd ~/MagicMirror/modules/MMM-MD
     npm install
    

    or

     cd ~/MagicMirror
    
     # "npm-recursive-install" needs to be installed separately 
     npm-recursive-install 
    

Properties (Config Section)

Property Type Values Default Value Mandatory Description
interval Integer Any value >= 45 (ms) 50 (ms) OPTIONAL Autoscroll velocity.
staller Integer Any value >= 0 (ms) 100 (ms) OPTIONAL Time before restarting from TOP after reaching autoscroll BOTTOM limit.
width String Any CSS valid string value "calc(100 % - 25 %)" OPTIONAL Module width.
height String Any CSS valid string value "500px" OPTIONAL Module height.
docname String Path to a valid document. The document has to be placed into: ./modules/MMM-MD/public/ "content.md" OPTIONAL MD document to parse markdown from.

Notifications

Notifications are a piece of software used by modules to communicate with:

  • MagicMirror OS
  • Other modules
  • Human actors

None.


Screenshots

Module interface (1):

module_focus

Module interface (2):

module_overview


Documents path

All MD documents and assets (multimedia) has to be placed into ./modules/MMM-MD/public/ to be used by the module. Only one document at time can be active and rendered.

To point an asset from the MD document, you will need to follow this path pattern:

![{assetName}](modules/MMM-MD/public/{assetName.extension})