Skip to content

jupadin/MMM-F1

Repository files navigation

MMM-F1

License

This module is an extention for the MagicMirror.

The module is based on the work of ianperrin and uses the jolpi.ca API, maintained by jolpica. The curuit layouts are also taken from ianperrin and can be found there! :)

To-Do's

  • Implement fetcher object analog to newsfetcher
  • Update README with new configuration options
  • 🎉 Implement logic to focus on more than a single driver or constructeur

Installation

Open a terminal session, navigate to your MagicMirror's modules folder and execute git clone https://github.com/jupadin/MMM-F1.git, such that a new folder called MMM-F1 will be created.

Activate the module by adding it to the config.js file of the MagicMirror as shown below.

The table below lists all possible configuration options.

cd modules
git clone https://github.com/jupadin/MMM-F1.git
cd MMM-F1
npm install

Using the module

    modules: [
        {
            module: "MMM-F1",
            header: "MMM-F1",
            position: "top_left",
            config: {
                animationSpeed: 2000,
                updateInterval: 86400000,
                focusOnDrivers: VER,
                showHeaderAsIcons: false,
                showFooter: true,
            }
        }
    ]

Configuration options

The following configuration options can be set and/or changed:

Module

Option Type Default Description
animationSpeed int 2000 Animation speed to fade in the module on startup [milliseconds] (2 seconds)
updateInterval int 86400000 How often the table shall be updated [milliseconds] (1 day)
focusOnDrivers string false Highlight driver (example: "VER")
showHeaderAsIcons bool false Display header as icons
showFooter bool true Display footer with information about last update

About

MagicMirror² module to display the current F1 standings.

Topics

Resources

License

Stars

Watchers

Forks

Contributors