Skip to content

Repository files navigation

MMM-SpencerHill

MagicMirror² module to display broadcasting dates for Bud Spencer and Terence Hill movies in Austria, Germany and Switzerland.

Requirements

Installation

  • Clone this repository into your /MagicMirror/modules directory.
  • Update the /MagicMirror/config/config.js to include the module:
{
  module: "MMM-SpencerHill",
  position: "top_center",
  config: {
    // overwrite default config values here
  }
}

Configuration

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

Examples

Screenshot of the module with default configuration values:

Example: Default Configuration

Development

Requirements

  • Node version 22.11.0 or higher
  • Docker version 27.2.0 or higher (only for testing)

Commands

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

About

MagicMirror² module to display broadcasting dates for Bud Spencer and Terence Hill movies in Austria, Germany and Switzerland

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages