Skip to content

MagicMirror² Module to display the local gas prices in Germany.

License

Notifications You must be signed in to change notification settings

wiesty/MMM-Tankerkoenig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-Tankerkoenig GitHub license

MagicMirror² module to display the local gas prices in Germany.

example

Installation

  1. Clone this repository in your MagicMirror installation into the folder modules: git clone https://github.com/wiesty/MMM-Tankerkoenig
  2. Get your free* API key from creativecommons.tankerkoenig.de.
  3. Head over to Tankerkoenig Station API Helper and copy your IDs.
  4. Search your station and modify the config template below.
  5. Add configuration to your config.js.

Config

{
    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
    }
},

Notes

Right now this is a simple version of the Tankerkoenig API. Might add more features some time.

To reduce the network traffic, you have to enter the name of the desired station manually :-)

*No guarantee of information accuracy - API may transition from Free to Paid version at any time.

About

MagicMirror² Module to display the local gas prices in Germany.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages