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

Option to exclude stations #24

Open
bergnerj opened this issue Apr 17, 2024 · 0 comments
Open

Option to exclude stations #24

bergnerj opened this issue Apr 17, 2024 · 0 comments
Assignees

Comments

@bergnerj
Copy link

Hello,

I use the exporter to monitor the gas prices in an area of 10 km around where I live. This is very nice and very convenient to decide when to go for new gas.

However, within this radius, there are two stations on a rest areaalong the motorway.
Naturally, they are way more expensive than all the other stations in the area and I would like to exclude them from the list of stations I monitor.
Of course, I could just provide a quite extensive list of all the stations I actually want to include, which I actually tried:

tankerkoenig_exporter --tankerkoenig.api-key $api_key --tankerkoenig.stations="$id1" --tankerkoenig.stations="$id2" ...

However, that approach results in the following error for me:

retentioner: error: create exporter: could not retrieve station details for station xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: invalid character '<' looking for beginning of value
Ultimately, I don't think that creating such a list is the way to go, anyway.

Would it be possible to include a "--tankerkoenig.exclude"-flag that could be used to omit particular gas stations?

@lukasmalkmus lukasmalkmus self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants