Skip to content

This MagicMirror module displays oil prices for the current year.

License

Notifications You must be signed in to change notification settings

eckonator/MMM-Oelpreise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-Oelpreise

Chart module for MagicMirror². The module displays oil prices for the current year based on Chart.js and the API of heizoel24.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-Oelpreise.git

Install dependencies:

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

After MagicMirror Update, maybe it can help to run:

cd ~/MagicMirror/modules/MMM-Oelpreise
./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-Oelpreise',
        position: 'middle_center',
        header: 'Ölspreise / aktuelles Jahr',
        config: {
            amount         : '3000',  // amount in liter
            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 liter 3000
updateInterval Update Interval in seconds 86400
width Chart width in px. 1200
height Chart height in px. 800

About

This MagicMirror module displays oil prices for the current year.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published