MagicMirror² module to display broadcasting dates for Bud Spencer and Terence Hill movies in Austria, Germany and Switzerland.
- Finished the installation of MagicMirror².
- Clone this repository into your
/MagicMirror/modulesdirectory. - Update the
/MagicMirror/config/config.jsto include the module:
{
module: "MMM-SpencerHill",
position: "top_center",
config: {
// overwrite default config values here
}
}These are the possible configuration options and their default values:
{
module: "MMM-SpencerHill",
position: "top_center",
config: {
// Set the base URL for fetching the broadcast data.
baseUrl: 'https://spencerhilldb.de/tvtermine.php',
// Set the header above the module. Leave empty to hide the header.
header: 'Bud Spencer & Terence Hill',
// Set the update interval in miliseconds in which the data will be fetched.
updateInterval: 3600000, // 1 hour
// Set a list of television channels that should not be displayed.
blacklist: [],
// Set a list of television channels that should be displayed and discard the rest.
whitelist: [],
// Set the locale for the module to German 'de' or English 'en'.
locale: 'de',
}
}Screenshot of the module with default configuration values:
- Node version 22.11.0 or higher
- Docker version 27.2.0 or higher (only for testing)
To install all packages run:
npm install
To develop on the module and automatically reload the build run:
npm run dev
To build the project and bundle it:
npm run build
To check for linting errors in the code:
npm run lint:check
To fix the linting errors in the code:
npm run lint:fix
To test the built files in a fresh environment:
docker compose up
