@strawberry-3-141 hey mate, just went through some of your code as well as the API itself. i see there’s a page for ‘closest stations’ and a ‘cheapest stations’. is it possible to get like a page of ‘favorites’ where i can input stationcode and display those?
i don’t really need cheapest and closest.
ps. ive also figured out that only P95 and Diesel work at this stage. all good.
cheers
Read the statement by Michael Teeuw here.
Posts
-
RE: NSW Fuel Prices
-
RE: NSW Fuel Prices
@strawberry-3-141
thanks. i’ve just done some testing.couple of comments so far:
- your ‘E5’ is picking up P95. Can you change the heading to P95?
- your diesel (DL) price is correct for stations that have diesel. however, if the station has premium diesel (PDL), it shows as “>155.9”.
The possible fuel types the API serves are the following:
Ethanol 94 (E10)
Unleaded 91 (U91)
Ethanol 105 (E85)
Premium 95 (P95)
Premium 98 (P98)
Diesel (DL)
Premium Diesel (PDL)
Biodiesel 20 (B20)
LPG (LPG)
CNG/NGV (CNG)
EV charge (EV)Are all these fuel types supported, or just E5 and Diesel at this stage? If I change the fuel type to E10 for instance, would it work?
Also, I have a list of favorite stations I want to keep tabs on. Is it possible to feed those specific stations in and get the price of those?
thanks for all your help so far, much appreciated!
-
RE: NSW Fuel Prices
@strawberry-3-141 hey thanks for putting this together. just trying to test the config options. can you let me know what you put into your config file? API, lat,lng etc?
-
RE: NSW Fuel Prices
@strawberry-3-141 fantastic, looking forward to it. thanks once again.
-
RE: NSW Fuel Prices
@strawberry-3-141 i’d expect nothing less from our government. thanks for taking a look!
-
RE: NSW Fuel Prices
@strawberry-3-141 hey mate, mine just got approved, so I think you can expect yours soon as well
-
RE: NSW Fuel Prices
@strawberry-3-141 Yep. That’s NSW government for you. Mine is also still pending. zzz.
-
RE: NSW Fuel Prices
@strawberry-3-141 I think they need to approve it. Hopefully it gets approved during business hours. Let me know how you go in a few days time.
-
RE: NSW Fuel Prices
@strawberry-3-141 that would be incredible, thank you for your time and effort. once you’ve done it, PM me your bitcoin address and I’ll be happy to show you my appreciation ;)
-
NSW Fuel Prices
Hi,
I was wondering if someone would be interested in creating a module for the prices of fuel in NSW, Australia? The API can be found here: https://api.nsw.gov.au/fuel-price-check/apisThanks