fewieden / MMM-soccer

European Soccer Standings Module for MagicMirror²
MIT License
32 stars 24 forks source link

Compact standings table for smaller screens - version 1 #1

Closed ianperrin closed 8 years ago

ianperrin commented 8 years ago

Hi

This pull request includes a number of changes I have made to allow for a first version of the module which can generate a compact standings table focused on a specific team.

This is achieved by using the newly added focus_on and surrounding_teams config options as follows:

modules: [
    {
        module: 'MMM-soccer',
        position: 'top_right', // This can be any of the regions.
        config: {
                api_key: false,
                show: 'GERMANY',
                focus_on: 'FC Schalke 04',
                surrounding_teams: 3;
                leagues: {
                    "GERMANY":430,
                    "FRANCE": 434,
                    "ENGLAND": 426,
                    "SPAIN": 436,
                    "ITALY": 438 
                }
        }
    },
]

Also included are

Hope you can use it.

fewieden commented 8 years ago

Hey Ian Perrin, thanks for contributing.

Before I can merge your features there is stuff to do: