Skip to content

A MagicMirror2 module that shows a different text each week.

License

Notifications You must be signed in to change notification settings

retroflex/MMM-TextPerWeek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

MMM-TextPerWeek

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.

Installation

  1. Clone repo:
	cd MagicMirror/modules/
	git clone https://github.com/retroflex/MMM-TextPerWeek
  1. Add the module to the ../MagicMirror/config/config.js.

Examples

Example showing a letter each week, starting at week 7. For weeks other that 7-10, nothing ('') is shown.

screenshot

{
  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.

screenshot

{
	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'
		}
	}
},

About

A MagicMirror2 module that shows a different text each week.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published