fewieden / MMM-Fuel

Gas Station price Module for MagicMirror²
MIT License
62 stars 24 forks source link

Feature Request: Show Prices for NSW #76

Open nirvine opened 3 years ago

nirvine commented 3 years ago

Thank you so much for including NSW! There are now more fuel types than only diesel and P95. Fuel Type Code Ethanol 94 E94 Ethanol 105 E105 Unleaded 91 U91 Premium 95 P95 Premium 98 P98 Diesel DL Premium Diesel PDL Biodiesel 20 B20 LPG LPG CNG/NGV CNG LNG LNG EV charge EV Hydrogen H2 Inclusion of these these options would be much appreciated. It would also be great if I could show the price of the fuel, rather than just the distance of the station.

fewieden commented 3 years ago

Hi @nirvine, you can already specify price only, see the example below:

{
  module: "MMM-Fuel",
  position: "top_right",
  config: {
    provider: "nsw",
    api_key: "XXX",
    secret: "XXX",
    radius: 5,
    lat: -33.8716165,
    lng: 151.1620273,
    types: ["diesel"],
    showDistance: false
  }
}

nsw-price-only

I will mark this issue for the additional fuel types as pull request welcome, as I don't have much time myself.

nirvine commented 3 years ago

I worked out why I was not seeing price - I had edited the nsw.js file to show P98 instead of deisel, but had not changed the value in both places in the file. Fixed, thanks.