pantherale0 / pyfuelprices

An expandable Python fuel prices library
MIT License
2 stars 2 forks source link

Australia: Add QLD Fuel Watch Data Source #9

Closed GaryFlynn closed 3 months ago

GaryFlynn commented 5 months ago

Hi @pantherale0

Absolutely loved your HA integration for the UK, however now back in Australia and it looks like only WA Fuel Watch is currently supported. Would it be possible to add the data source QLD Fuel Watch to pyfuelprices and also ha-fuelprices?

https://www.fuelpricesqld.com.au/#developers

pantherale0 commented 3 months ago

Docs for official API:

https://www.fuelpricesqld.com.au/documents/FuelPricesQLDDirectAPI(OUT)v1.6.pdf

This module doesn't currently allow passing setup parameters such as an API token to a data source. I might see if I can pull the data from one of these other apps instead, especially as some of the docs are missing / not working for me. Although I am in the UK so that might be a issue perhaps.

https://www.energyandclimate.qld.gov.au/about/initiatives/fuel-price-reporting/apps-websites

Some initial discovery,Fuel Map app uses the following endpoints:

Get stations in an area:

http://www.fuelmap.com.au/app/getprices2.php

Get all stations:

http://www.fuelmap.com.au/app/getstations.php

Get station prices

http://www.fuelmap.com.au/app/getstationprices2.php
pantherale0 commented 3 months ago

FuelSnoop added for next version

image