Skip to content

MagicMirror² module which will show CS:GO matches provided by HLTV

License

Notifications You must be signed in to change notification settings

Helpi90/MMM-HLTV

 
 

Repository files navigation

MMM-HLTV

This is a maintained fork from maartenpaauw

MagicMirror² module which will show CS:GO matches provided by HLTV

This is a module for the MagicMirror² which displays the current and upcoming Counter-Strike: Global Offensive matches.

View scoreboard and result

Installation

To install the module, use your terminal to:

  1. Navigate to your MagicMirror's modules folder. If you are using the default installation directory, use the command: cd ~/MagicMirror/modules.
  2. Copy the module to your computer by executing the following command: git clone https://github.com/helpi90/MMM-HLTV.git.
  3. Navigate to the MMM-HLTV module directory with cd MMM-HLTV.
  4. Install hltv with npm i hltv && npm install

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: 'MMM-HLTV',
            header: "Counter-Strike: Global Offensive",
            config: {
                'onlyTeam': '',
                'onlyEvent': '',
                'switchView': false,
            },
        },
    ],
}

Configuration options

Option Description
updateInterval Optional The update interval in milliseconds

Type: int
Default: 60000 (1 minute)
amount Optional The amount of matches to show

Type: int
Default: 5
stars Optional The minimum number of stars a match must have

Type: int
Default: 0
preferWhite Optional Whether the module may use colors

Type: bool
Default: false
showLogos Optional whether the logos of the teams may be displayed

Type: bool
Default: true
onlyTeam Optional Only show team. Supports multiple strings, separated by comma (",")

Type: string
Default: ' '
onlyEvent Optional Only show Event. Supports multiple strings, separated by comma (",")

Type: string
Default: ' '
switchView Optional rotate view (matches/results). Is a match live, it will only show matches

Type: bool
Default: false

Built With

  • HLTV - HLTV API wrapper.

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

About

MagicMirror² module which will show CS:GO matches provided by HLTV

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.0%
  • HTML 32.2%
  • CSS 1.8%