Skip to content

rajniszp/MMM-MD

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-MD

Write MD. Render it on the MagicMirror!

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

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})

About

Write MD. Render it on the MagicMirror!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%