Skip to content

A Module for magic mirror which shows upcoming anniversaries

Notifications You must be signed in to change notification settings

dennisklad/MMM-Birthdays

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module: MMM-Birthdays, a module to display upcoming birthdays

image

The MMM-Birthdays modules is derived from the inital development BIRTHDAYS created by Marco Merens.

You can now see what will be the age of someone and his/her birthdate.

The 'BIRTHDAYS' module is a costum module for MagicMirror. It displays the name, birthday and remaining days of a list of people sorted by whoever is next.

The names and birthdays are provided on configuration. The module then calculates which one is next and the remaining days. The dates are recalculated every hour.

Installation instructions

Just pull down this repo and copy it in the modules folder under your Magic Mirror installation folder

cd ~/MagicMirror/modules/
git clone https://github.com/dennisklad/MMM-Birthdays MMM-Birthdays
cd MMM-Birthdays
npm i

Using the module

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

modules: [
  {
    module: "MMM-Birthdays",
    header: "Birthdays",
    position: "top_left", // This can be any of the regions.
    config: {
      // See 'Configuration options' for more information.
      limit: 4,
      people: [
        { name: "Marco", birthdate: "1973-12-30" },
        { name: "Steve", birthdate: "1988-11-25" }
        // You can add more names by adding more lines of the same format.
      ]
    }
  }
];

Configuration options

Option Description
limit This is number of birthdays you want to show in the future. Default is 4. It's the length of the table.
people This is an array of people with their name and birthdates. The date is in ISO formaty YYYY-MM-DD. Default is just a example of one.

About

A Module for magic mirror which shows upcoming anniversaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.6%
  • Nunjucks 18.4%