MagicMirror² module to display the local gas prices in Germany.
- Clone this repository in your MagicMirror installation into the folder modules:
git clone https://github.com/wiesty/MMM-Tankerkoenig
- Get your free* API key from creativecommons.tankerkoenig.de.
- Head over to Tankerkoenig Station API Helper and copy your IDs.
- Search your station and modify the config template below.
- Add configuration to your
config.js
.
{
module: "MMM-Tankerkoenig",
position: "bottom_right",
config: {
apiKey: "00000000-0000-0000-0000-000000000000",
updateInterval: 600000, // update interval in ms (10 mins)
stationNames: {
"24a381e3-0d72-416d-bfd8-b2f65f6e5802": "Esso Tankstelle", // ID with custom name
"474e5046-deaf-4f9b-9a32-9797b778f047": "Total Berlin", // another ID possible
},
fuelTypes: ["e5", "e10", "diesel"] // filter gas types
}
},
🚀 Simple Version of Tankerkoenig API
Looking to add more features in the future. Big thanks to Tankerkoenig for providing this great API – consider supporting them! 🙌