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.
To install the module, use your terminal to:
- Navigate to your MagicMirror's modules folder. If you are using the default installation directory, use the command:
cd ~/MagicMirror/modules
. - Copy the module to your computer by executing the following command:
git clone https://github.com/helpi90/MMM-HLTV.git
. - Navigate to the MMM-HLTV module directory with
cd MMM-HLTV
. - Install hltv with
npm i hltv && npm install
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,
},
},
],
}
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 |
- HLTV - HLTV API wrapper.
- Helpi - Initial work - Helpi90
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details