This is a module for the MagicMirror² which displays a fuel prices from Tankerkoenig.
Heavliy inspired by MMM-Fuel but with the following differences:
- Only support tankerkoenig.de
- Always sort by price
- No address, map and distance. You should know where your stations are located
- No table header to save space
- Dim stations which are closed
- Always round prices to 2 digits because it is easier for the eye to compare the last digit
Fuel Price Data by Tankerkönig are licensed under CC BY 4.0. Creative Commons Icons by Ricardo Barros are licensed under CC BY 4.0. Changed colors to match MagicMirror'S dimmed class.
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/terenc3/MMM-Tankerkoenig.git
Configure the module in your config.js
file.
Request a key at https://creativecommons.tankerkoenig.de/ with a valid e-mail and select MagicMirror as purpose.
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: 'MMM-Tankerkoenig',
header: 'Super (E10)',
config: {
// See below for configurable options
}
}
]
}
Option | Type | Default | Description |
---|---|---|---|
updateInterval |
number |
600 |
Update interval in seconds. Not less then 300 (5min) according to Terms |
maxWidth |
string |
200px |
Max width of the module |
url |
string |
https://creativecommons.tankerkoenig.de/json/list.php |
Address to fetch prices from. |
api_key |
string |
null |
API Key from https://creativecommons.tankerkoenig.de/ |
lat |
number |
52.0973 |
Latitude of your location |
lng |
number |
12.8717 |
Longiude of your location |
type |
string |
e10 |
Fuel type must be one of e5 , e10 or diesel |
radius |
number |
25 |
Radius to search, max 25 |