QRCode module for MagicMirror². Show QRCode image of encoded text.
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 installGo to the module’s folder inside your MagicMirror's module folder and pull the latest version:
cd ~/MagicMirror/modules/MMM-QRCode
git pull
npm installTo use this module, add the basic example to the modules array in the config/config.js file:
{
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).
}
}, {
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"
}
},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 |
