A MagicMirror² module that shows a different text (or image or anything really) each week.
Thanks to eouia for writing the actual code! My contribution was just to upload it here on GitHub in case anyone else finds it useful.
- Clone repo:
cd MagicMirror/modules/
git clone https://github.com/retroflex/MMM-TextPerWeek
- Add the module to the ../MagicMirror/config/config.js.
Example showing a letter each week, starting at week 7. For weeks other that 7-10, nothing ('') is shown.
{
module: 'MMM-TextPerWeek',
position: 'bottom_right',
header: 'Letter of the Week',
config: {
texts: {
'default': '',
7: 'A',
8: 'B',
9: 'C',
10: 'D'
}
}
}
Example with images and text for a few weeks and a default text for other weeks.
{
module: 'MMM-TextPerWeek',
position: 'bottom_right',
header: 'Animal of the Week',
config: {
texts: {
'default': 'No animal this week',
7: '<img src="https://img.icons8.com/color/48/000000/budgie.png" /><br />Budgie',
14: '<img src="https://img.icons8.com/color/48/000000/unicorn.png" /><br />Unicorn',
18: '<img src="https://img.icons8.com/color/48/000000/bee.png" /><br />Bee'
}
}
},