Skip to content

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

License

Notifications You must be signed in to change notification settings

eckonator/MMM-Pelletpreise

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published