MagicMirror² module for learning a word every time you look in the mirror.
Navigate into your MagicMirror's modules folder and execute
git clone https://github.com/thekampany/MMM-learnlanguage
This module shows a word of a language you want to learn, alternating with the meaning in English. Train yourself. You will have to learn the grammar of the language somewhere else. This just helps in getting to know a set of commonly used words. The set of commonly used words is stored in a CSV file per language.
option | description |
---|---|
language |
"danish" , "esperanto" , "french" , "frisian" , "german" , "italian" , "japanese" , "spanish" or "swedish" . Has to match the name of the CSV file that contains the wordpairs. |
nextWordInterval |
In milliseconds. The interval between wordpairs. Example: 24*60*60*1000 (eyery 24 hours).Default: 12*60*60*1000 (every 12 hours). |
showpair |
"showboth" or "alternating" Default: alternating |
toggleInterval |
In milliseconds. Toggle time between own language word and foreign language word. Only relevant if "showpair": "alternating" .Default: 10*1000 (every 10 seconds). |
wordpaircssclassname |
Influences the fontsize, uses the CSS from main CSS. |
showHeader |
Display header and horizontal rule above wordpairs. Default: true |
Here are two examples for an entry in config.js
:
Spanish - new wordpair every 12 hours with hidden header
{
module: "MMM-learnlanguage",
position: "top_right",
config: {
language: "spanish",
nextWordInterval: 12*60*60*1000,
showpair: "showboth",
wordpaircssclassname: "bright medium",
showHeader: false
}
},
If multiple languages are learned in your household, you can also run multiple instances of the module by adding the module settings multiple times into the config.js
.
German and Esperanto - new word every 24 hours - words are shown alternating every 5 seconds
{
module: "MMM-learnlanguage",
position: "top_right",
config: {
language: "german",
nextWordInterval: 24*60*60*1000,
showpair: "alternating",
toggleInterval: 5*1000,
wordpaircssclassname: "bright large"
}
},
{
module: "MMM-learnlanguage",
position: "top_right",
config: {
language: "esperanto",
nextWordInterval: 24*60*1000,
showpair: "alternating",
toggleInterval: 5*1000,
wordpaircssclassname: "bright large"
}
},
- Use a translation API in order to be able to translate from any to any language.