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

[Tankerkoenig] Lower minimum refresh interval #10070

Merged
merged 1 commit into from
Feb 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bundles/org.openhab.binding.tankerkoenig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The binding uses the Tankerkönig API <https://www.tankerkoenig.de> for collecti
Special thanks to the creators of Tankerkönig for providing an easy way to get data from the &lsqb;MTS-K&rsqb; (Markttransparenzstelle für Kraftstoffe).

Tankerkönig is providing this service for free, however they request to prevent overloading of their server by reducing the number of web-requests.
This binding handles those requests (minimum Refresh Interval is 10 minutes, a webserver does handle a maximum of 10 stations).
This binding handles those requests (minimum Refresh Interval is 5 minutes, a webserver does handle a maximum of 10 stations).
The data will be updated for each Station individually after the initialization and after each Refresh Interval for all (open) stations (Note: changing the Webservice will cause the Refresh Interval to restart).
Additionally one may select the mode Opening-Times in which only those Stations get polled which are actually open.
For a correct usage of opening times the binding needs the information if the actual day is a holiday.
Expand Down Expand Up @@ -49,7 +49,7 @@ The binding has no configuration options itself, all configuration is done at 'B

## Thing configuration

The Webservice (bridge) needs to be configured with the personal API-Key, the desired Refresh Interval (the time interval between price-updates, default 60 minutes, minimum 10 minutes) and the Opening-Times mode selection (in this mode price-updates are only requested from stations that are actually open).
The Webservice (bridge) needs to be configured with the personal API-Key, the desired Refresh Interval (the time interval between price-updates, default 60 minutes, minimum 5 minutes) and the Opening-Times mode selection (in this mode price-updates are only requested from stations that are actually open).
A single Webservice can handle up to 10 Stations.

Each Station needs to be configured with a LocationID and the Webservice to which it is linked.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ thing-type.tankerkoenig.webservice.description = Der Tankerk
thing-type.config.tankerkoenig.webservice.apikey.label=API-Key
thing-type.config.tankerkoenig.webservice.apikey.description=Tankerk�nig API-Key. Der Schl�ssel ist auf der Tankerk�nig Webseite erh�ltlich.
thing-type.config.tankerkoenig.webservice.refresh.label=Aktualisierungsintervall
thing-type.config.tankerkoenig.webservice.refresh.description=Spezifiziert das Aktualisierungsintervall in Minuten. Minimum 10 Minuten.
thing-type.config.tankerkoenig.webservice.refresh.description=Spezifiziert das Aktualisierungsintervall in Minuten. Minimum 5 Minuten.
thing-type.config.tankerkoenig.webservice.modeOpeningTime.label=�ffnungszeiten
thing-type.config.tankerkoenig.webservice.modeOpeningTime.description=Im Mode �ffnungszeiten werden nur die zur Zeit ge�ffneten Tankstellen abgefragt.
thing-type.tankerkoenig.station.label=Tankstelle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<label>API-Key</label>
<description>API-Key. Necessary registration on the Tankerkönig website.</description>
</parameter>
<parameter name="refresh" type="integer" min="10" unit="min">
<parameter name="refresh" type="integer" min="5" unit="min">
<label>Refresh Time</label>
<description>Sets the refresh time. Minimum is 10 minutes.</description>
<description>Sets the refresh time. Minimum is 5 minutes.</description>
<default>60</default>
</parameter>
<parameter name="modeOpeningTime" type="boolean">
Expand Down