Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

European Soccer Standings Module for MagicMirror²

License

NotificationsYou must be signed in to change notification settings

fewieden/MMM-soccer

Repository files navigation

European Soccer Standings Module for MagicMirror²

Example

Dependencies

Installation

  • Clone this repo into~/MagicMirror/modules directory.
  • Configure your~/MagicMirror/config/config.js:
{module:'MMM-soccer',position:'bottom_right',config:{// add your config options here}}
  • Run commandnpm i --production in~/MagicMirror/modules/MMM-soccer directory.
  • Optional: Get a free api keyhere

Config Options

OptionDefaultDescription
api_keyfalseEither false (limited to 50 requests a day) or an API Key obtained fromhttp://api.football-data.org/register (limited to 50 requests a minute) .
coloredfalseBoolean to show club logos in color or not.
show'GERMANY'Which league should be displayed 'GERMANY', 'FRANCE', 'ENGLAND', 'SPAIN' or 'ITALY'
focus_onfalseWhich team should the standings focus on per league e.g. {"GERMANY": "FC Bayern München", "FRANCE": "Olympique Lyonnais"}. Omit this option or set to false to show the full league table.
max_teamsfalseHow many teams should be displayed. Omit this option or set to false to show the full league table.
leagues{"GERMANY": "BL1", "FRANCE": "FL1", "ENGLAND": "PL", "SPAIN": "PD", "ITALY": "SA"}A collection of leagues obtained fromhttp://api.football-data.org/v2/competitions
logosfalseBoolean to show club logos or not.

OPTIONAL: Voice Control and Modal

This module supports voice control byMMM-voice andMMM-Modal.In order to use this feature, it's required to install the voice and modal modules. There are no extra config options for voice control and modals needed.

Mode

The voice control mode for this module isSOCCER

List of all Voice Commands

  • OPEN HELP -> Shows the information from the readme here with mode and all commands.
  • CLOSE HELP -> Hides the help information.
  • SHOW STANDINGS OF COUNTRY NAME -> Switch standings to specific league.Valid country names are (Default: GERMANY, FRANCE, ENGLAND, SPAIN or ITALY)set in config. (Effect stays until your mirror restarts, for permanent changeyou have to edit the config)
  • EXPAND VIEW -> Expands the standings table and shows all teams.
  • COLLAPSE VIEW -> Collapse the expanded view.

Developer

  • npm run lint - Lints JS and CSS files.
  • npm run docs - Generates documentation.

[8]ページ先頭

©2009-2025 Movatter.jp