Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Show Prices for NSW #76

Open
nirvine opened this issue Sep 9, 2021 · 2 comments
Open

Feature Request: Show Prices for NSW #76

nirvine opened this issue Sep 9, 2021 · 2 comments

Comments

@nirvine
Copy link

nirvine commented Sep 9, 2021

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
Copy link
Owner

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
Copy link
Author

nirvine commented Sep 12, 2021

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.

@fewieden fewieden added this to ToDos Jul 9, 2022
@fewieden fewieden moved this to 📋 Backlog in ToDos Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants