Skip to content
European Soccer Standings Module for MagicMirror²
JavaScript HTML CSS
Branch: master
Clone or download
1
Latest commit 8c2d6f0 Oct 17, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Documentation Oct 17, 2018
public club logo downloader Sep 2, 2018
scripts linting Sep 16, 2018
translations Added sv.json Oct 11, 2018
.codeclimate.yml Documentation Oct 17, 2018
.doclets.yml Documentation Oct 17, 2018
.editorconfig Documentation Oct 17, 2018
.eslintignore Documentation Oct 17, 2018
.eslintrc Documentation Oct 17, 2018
.gitignore Code comments, loading/no data messages, focus_on and surrounding_tea… Aug 2, 2016
.mdlrc Documentation Oct 17, 2018
.stylelintrc Documentation Oct 17, 2018
.travis.yml Documentation Oct 17, 2018
CHANGELOG.md linting + changelog Oct 17, 2018
LICENSE Initial commit Jul 28, 2016
MMM-soccer.css css linting Feb 4, 2017
MMM-soccer.js linting + changelog Oct 17, 2018
MMM-soccer.njk nunjuck template Sep 17, 2018
README.md Update README.md Oct 17, 2018
jsdoc.json Documentation Oct 17, 2018
node_helper.js Documentation Oct 17, 2018
package.json Documentation Oct 17, 2018

README.md

MMM-soccer GitHub license Build Status Code Climate Known Vulnerabilities API Doc

European Soccer Standings Module for MagicMirror²

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory.

  2. Configure your ~/MagicMirror/config/config.js:

    {
        module: 'MMM-soccer',
        position: 'bottom_right',
        config: {
            ...
        }
    }
    
  3. Run command npm i --production in ~/MagicMirror/modules/MMM-soccer directory.

  4. Optional: Get a free api key here

Config Options

Option Default Description
api_key false Either false (limited to 50 requests a day) or an API Key obtained from http://api.football-data.org/register (limited to 50 requests a minute) .
colored false Boolean to show club logos in color or not.
show 'GERMANY' Which league should be displayed 'GERMANY', 'FRANCE', 'ENGLAND', 'SPAIN' or 'ITALY'
focus_on false Which 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_teams false How 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 from http://api.football-data.org/v2/competitions
logos false Boolean to show club logos or not.

Logos

As the v2 api doesn't provide logos anymore, I developed a club logo downloader. It supports the five major leagues as above named. To run the downloader you need to execute the following steps.

  1. Go to the module directory cd ~/MagicMirror/modules/MMM-soccer.
  2. Execute node scripts/downloader COUNTRYNAME.
  3. Run this command for all the leagues you want to display on the mirror.
  4. Don't forget to activate the display of the logos in the config.

If there isn't every club logo, you can also place them manually in the public directory of the module, the logos need to be in svg format and the name of the file has to match the displayed name.

OPTIONAL: Voice Control

This module supports voice control by MMM-voice. In order to use this feature, it's required to install the voice module. There are no extra config options for voice control needed.

Mode

The voice control mode for this module is SOCCER

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 change you have to edit the config)
  • EXPAND VIEW -> Expands the standings table and shows all teams.
  • COLLAPSE VIEW -> Collapse the expanded view.
You can’t perform that action at this time.