Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 1.74 KB

README.md

File metadata and controls

66 lines (51 loc) · 1.74 KB

MMM-Pelletpreise

Chart module for MagicMirror². The module displays pellet prices for the current year based on Chart.js and the API of heizpellets24.de.

Screenshot

Installation

In your terminal, go to your MagicMirror's Module folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/eckonator/MMM-Pelletpreise.git

Install dependencies:

cd ~/MagicMirror/modules/MMM-Pelletpreise
npm install

After MagicMirror Update, maybe it can help to run:

cd ~/MagicMirror/modules/MMM-Pelletpreise
./node_modules/.bin/MagicMirror-rebuild

Configure the module in your config.js file.

Using the module

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

modules: [
    {
        module: 'MMM-Pelletpreise',
        position: 'middle_center',
        header: 'Pelletspreise / aktuelles Jahr',
        config: {
            amount         : 3500, // amount in kg
            updateInterval : 86400, // 1 day in seconds
            width          : 1200,   // width in pixel
            height         : 800    // height in pixel
        }
    }
]

Configuration options

The following property can be configured:

Option Description Default value
amount Amount in kg 3000
updateInterval Update Interval in seconds 86400
width Chart width in px. 1200
height Chart height in px. 800