Skip to content

uxigene/MMM-QRCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-QRCode

QRCode module for MagicMirror². Show QRCode image of encoded text.

Screenshot

Screenshot

Installation

Open up your terminal and simply paste the following code

cd ~/MagicMirror/modules
git clone https://github.com/uxigene/MMM-QRCode
cd MMM-QRCode
npm install

Update

Go to the module’s folder inside your MagicMirror's module folder and pull the latest version:

cd ~/MagicMirror/modules/MMM-QRCode
git pull
npm install

Configuration

To use this module, add the basic example to the modules array in the config/config.js file:

Basic example

    {
        module: "MMM-QRCode",
        position: "bottom_right",
        config: {
            text: "Your Message", // enter your message ur URL here.
            showRaw: true,        // true = to show the text, false = to hide the text.
            imageSize: 150,       // size is in px (both the height and with are equal).
            colorDark: "#fff",    // set qrcode px color.
            colorLight: "#000"    // set background color (by default color is BLACK).
        }
    },

Example with URL and header

    {
        module: "MMM-QRCode",
        position: "bottom_right",
        header: "Scan me",
        config: {
            text: "https://www.youtube.com/watch?v=xmmBWdNWvY4",
            showRaw: false,
            imageSize: 250,
            colorDark: "#ADFF2F",
            colorLight: "#4B0082"
        }
    },

Configuration options

The following property can be configured:

Option Description Default value
colorDark Draw color "#fff"
colorLight Background color "#000"
imageSize Size of the image in px 150
showRaw Show raw text true
text The text or URL to be encoded

About

QRCode module for MagicMirror². Show QRCode image of encoded text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •