myTselection / Carbu_com

Actual fuel prices (super, diesel, lpg) per gasstation supported for Belgium, France, Luxembourg, Spain, Netherlands, Germany, Italy and US! Home Assistant custom component HACS integration for BE/FR/LU based on carbu.com and mazout.com site to compare and save on your actual fuel oil/heating oil (mazout) and fuel (diesel, super and lpg) purchases.
MIT License
23 stars 6 forks source link

service: carbu_com.get_lowest_fuel_price #38

Closed mupsje closed 10 months ago

mupsje commented 10 months ago

Hello, great job. before this I scraped the sites also.

Quick Q:

I noticed that the service: carbu_com.get_lowest_fuel_price is only working for BE? because I only get data when i use like.

service: carbu_com.get_lowest_fuel_price
data: 
  fuel_type: diesel
  country: BE
  postalcode: 3620
  max_distance: 10

if I do

service: carbu_com.get_lowest_fuel_price
data: 
  fuel_type: diesel
  country: NL
  postalcode: 6051 JR
  max_distance: 10

I get errors

thanks for the answer ;)

myTselection commented 10 months ago

Thx for the feedback! Based on this example I could fix a bug: in case no town was given "None" was used as town name (and not found). Empty town in service call will now be ignored.