Closed fbloemhof closed 11 months ago
Hm, it has something to do with my specific coordinates it seems.
Using this automation, the addon is not responding?
service: mqtt.publish
data:
topic: dgp/gas_stations
payload: |-
{
"fuel_type": "euro95",
"radius": 8,
"latitude": 53.219383,
"longitude": 6.566502,
"to_publish": 3
}
Whilst using this from your example it does, but doesn't find anything:
service: mqtt.publish
data:
topic: dgp/gas_stations
payload: |-
{
"fuel_type": "euro95",
"radius": 8,
"latitude": 6,
"longitude": 53,
"to_publish": 3
}
What probably is caused because lat long are mixed up here (there are no gas stations in the Indian Ocean...).
[2023-09-28 20:00:00] INFO : Received payload '{
"fuel_type": "euro95",
"radius": 8,
"latitude": 6,
"longitude": 53,
"to_publish": 3
}' on topic 'dgp/gas_stations'
[2023-09-28 20:00:04] INFO : There are '0' stations within range for fuel type 'euro95'
After swapping them back, the addon doesn't respond again...
Started working again after restarting (or changing the log level?).
When using a radius of 9 or higher, DGP gives the error 'list index out of range'.
Using the example automation with adjusted radius:
The logging shows: