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.
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
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.
]
}
}
];
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. |