iobroker-community-adapters / iobroker.tankerkoenig Goto Github PK
View Code? Open in Web Editor NEWSpritpreis Adapter für ioBroker
Home Page: http://www.iobroker.net
License: MIT License
Spritpreis Adapter für ioBroker
Home Page: http://www.iobroker.net
License: MIT License
Lose Ideensammlung für die Weiterentwicklung des Adapters:
Dear Adapter develop,
Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.
Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16
Please add both versions to the adapter testing which is executed on commits.
If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!
On questions please talk to us at ioBroker/ioBroker.js-controller#1138
Please close the issue after you checked it.
Thank you very much for your support!
js-controller: 3.3.1
Admin 5.0.11
Tankerkönig Spritpreise: 2.0.10
Using new js-controller 3.3.1 will throw the following warnings:
This is just an extract from the log file. There are more states which are affected
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e10.feed" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e10.short" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e5.3rd" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e5.combined" has been written without ack-flag with value ""
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e5.feed" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.e5.short" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.8.status" has been written without ack-flag with value ""
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.diesel.3rd" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.diesel.combined" has been written without ack-flag with value ""
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.diesel.feed" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.diesel.short" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.e10.3rd" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.e10.combined" has been written without ack-flag with value ""
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.e10.feed" has been written without ack-flag with value "0"
tankerkoenig.0 (431) Read-only state "tankerkoenig.0.stations.9.e10.short" has been written without ack-flag with value "0"
and
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.2.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.2.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.2.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.3.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.3.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.3.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.4.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.4.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.4.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.5.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.5.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.5.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.6.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.6.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.6.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.7.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.7.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.7.e5.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.8.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.8.e10.short" has wrong type "number" but has to be "string"
tankerkoenig.0 (431) State value to set for "tankerkoenig.0.stations.8.e5.short" has wrong type "number" but has to be "string"
Hallo, seit einigen Stunden kommen hunderte Requests/Sekunde auf das Tankerkönig-API von mehreren Usern, die wahrscheinlich diese Software einsetzen. Bitte die Änderung wieder zurücknehmen, sonst müssen wir unseren API-Server vom Netz nehmen. Es wäre schön, wenn im Request-Header eine Info über die Software (incl Version) mitgeschickt würde, dann können wir besser reagieren.
When saving the tankerkoenig API key nothing happens in the UI.
In the browser console the following error is found:
Uncaught ReferenceError: Invalid left-hand side in assignment
at save (index_m.html?0:166)
at HTMLAnchorElement. (adapter-settings.js:196)
at HTMLAnchorElement.dispatch (jquery-3.2.1.min.js:3)
at HTMLAnchorElement.q.handle (jquery-3.2.1.min.js:3)
This error has its origin in index_m.html:157:
if (apikey_string.match(patt) === null)
unfortunately results in false, although my API-key should match the regex pattern, see:
https://regex101.com/r/w9EzeR/2
Is it possible to implement a workaround there?
I am an automatic service from ioBroker that searches adapters and makes suggestions.
I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.
Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.
Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.
Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.
On questions, the other developers will support in the forum or via GitHub issues too.
If no detection is possible, simply close this issue and I won't bother you again. ;-)
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Hi,
the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.
You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.
Please update your systems to js-controller 2.0 and check your adapter.
Please close this issue once you have checked your adapter or received successfull reports from users.
Thank you very much for your support. Please contact us in the other Threads or Forum on any question.
schön wäre es, wenn man durch setzen eines Datenpunktes die Aktualisierung der Preise anstoßen könnte.
Dieser Datenpunkt sollte dann automatisch nach Verarbeitungsende zurückgesetzt werden.
Hey,
Stable Repo still has v1.0.0. When still the most stable version, everything great, if not please update in stable-repo.
(see https://github.com/ioBroker/ioBroker.repositories)
Thanx for checking
Ingo F
Hallo,
ich habe gerade den Adapter installiert und eingerichtet.
Beim Start des Adapters erhalte ich folgende Warnmeldung:
tankerkoenig.0 | 2021-12-18 18:06:52.224 | warn | This object will not be created in future versions. Please report this to the developer. tankerkoenig.0 | 2021-12-18 18:06:52.223 | warn | Object tankerkoenig.0.tank is invalid: obj.type has to exist
Was ist denn mit der Variable geplant? Kann ich die ggf. löschen?
Wäre ja schön, wenn man den bevorzugten Sprittyp angeben kann und der Adapter gibt auf den Sprittyp bezogen den 1. , 2. und 3. Platz zurück.
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pix---/ioBroker.tankerkoenig
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
Halo, gibt es eine Möglichkeit ,Autogas einzubinden?
Hallo zusammen,
habe den Adapter mehrfach neu installiert jetzt auch über Github 2.0.5.
Kann die Einstellungen nicht speichern.
API Key und Tankstellen werden mit "good" betitelt.
Woran kann das liegen?
Danke schon mal
Hello,
while starting tankerkoenig on my new system i get a message that i should report something to the developer. Herewith i do it:
The message is in the LOGs:
`
tankerkoenig.0 | 2021-01-03 12:31:42.612 | warn | (18592) This object will not be created in future versions. Please report this to the developer. |
---|---|---|---|
tankerkoenig.0 | 2021-01-03 12:31:42.612 | warn | (18592) Object tankerkoenig.0.tank is invalid: obj.type has to exist |
`
Version: stable=2.0.5 (439 days old) => latest=2.0.9 (15 days old)
Installs: stable=2750 (49.73%), latest=1351 (24.43%), total=5530
Click to edit
Die Preise bleiben leer also 0 € alles.
liegt das an
Node.js v16.15.1 oder js controller 4.0.23 ????
Version: stable=2.0.5 (375 days old) => latest=2.0.6 (322 days old)
Installs: stable=2634 (51.28%), latest=2124 (41.35%), total=5137
Click to edit
Ich habe im Admin Modus schon den Neustart der Instanz eingestellt.
Wird nicht aktualisiert.
Wenn ich manuell auf "Neu laden" klicken, werden die Kurse erneuert
Dear Adapter developer,
with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.
If something is not correct this is logged as 'warning' or 'info' log.
Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1301
Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.
More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui
Please close the issue after you checked it.
Thank you very much for your support!
Hallo,
erst mal danke für den tollen Adapter!
Auf meiner Vis-Startseite würde ich gerne die günstigte Tanke anzeigen.
Um das richtige Icon anzuzeigen würde ich gerne das widget "Image 8"-stateful verwenden.
Bräuchte dazu aber die Nummer der Station um die richtige URL des Bildes zuzuordnen.
Ich würde mich freuen wenn der zusätzliche Datenpunkt bei jeder Spritsorte noch dazu kommt.
z.b. tankerkoenig.0.stations.cheapest.diesel.stationid
Gruß xbow42
can be deleted
I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/Pix---/ioBroker.tankerkoenig
Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info
The upcoming version 2.0.0 of js-controller will support a new mode for low memory devices. For this, a few minor adjustments to the adapter must be made. Please follow these instructions: https://forum.iobroker.net/viewtopic.php?f=24&t=20387#p213466
Ich möchte die Tabelle mit dem JSON-Widget in VIS darstellen, es wird aber nichts angezeigt. Im Datenpunkt liegen die Daten in folgendem Format:
{"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","prices":{"6d38e242-65c7-4f07-9ed9-73e58796ce50":{"status":"open","e5":1.429,"e10":1.409,"diesel":1.299},"af93b17c-8eba-4245-84dd-9feb83032ab5":{"status":"open","e5":1.439,"e10":1.419,"diesel":1.319},"3eddd11c-8b0a-4075-8509-de79becbf9d3":{"status":"open","e5":1.379,"e10":1.359,"diesel":1.259},"00060788-0004-4444-8888-acdc00000004":{"status":"open","e5":1.364,"e10":1.344,"diesel":1.224},"51d4b4a6-a095-1aa0-e100-80009459e03a":{"status":"open","e5":1.329,"e10":1.309,"diesel":1.179},"51d4b4d3-a095-1aa0-e100-80009459e03a":{"status":"open","e5":1.409,"e10":1.389,"diesel":1.279}}
Der Standardtext im Widget gibt folgende Struktur vor:
[{"Title": "first", "Value": 1, "_Description": "Value1"}, {"Title": "second", "Value": 2, "_Description": "Value2"}]
Die komplette Ausgabe ist mit eckigen Klammern umschlossen. Wie ist das zu beheben?
Hallo,
der Adapter funktioniert perfekt.
Ich komme jedoch bei einer Tankstelle 3cent Rabatt auf den Liter Sprit. Wie kann ich denn die Werte angleichen?
This happens by starting the adapter.
2020-03-29 18:09:03.890 - debug: tankerkoenig.0 (8417) Einstellung/Eintrag Nr. 8 ist leer 2020-03-29 18:09:03.890 - debug: tankerkoenig.0 (8417) Einstellung/Eintrag Nr. 7 ist leer 2020-03-29 18:09:03.890 - debug: tankerkoenig.0 (8417) Einstellung/Eintrag Nr. 6 ist leer 2020-03-29 18:09:03.889 - debug: tankerkoenig.0 (8417) Einstellung/Eintrag Nr. 9 ist leer 2020-03-29 18:09:03.791 - info: tankerkoenig.0 (8417) Reading data from tankerkoenig ... 2020-03-29 18:09:03.783 - debug: tankerkoenig.0 (8417) API Key Länge: 36 Zeichen 2020-03-29 18:09:03.782 - info: tankerkoenig.0 (8417) Sync time set to 5 minutes or 300000 ms 2020-03-29 18:09:03.782 - debug: tankerkoenig.0 (8417) Option is true 2020-03-29 18:09:03.777 - debug: tankerkoenig.0 (8417) Schedule restart: * * * * * 2020-03-29 18:09:03.750 - info: tankerkoenig.0 (8417) starting. Version 2.0.6 in /opt/iobroker/node_modules/iobroker.tankerkoenig, node: v10.19.0 2020-03-29 18:09:02.396 - debug: tankerkoenig.0 (8417) statesDB connected 2020-03-29 18:09:02.396 - debug: tankerkoenig.0 (8417) States connected to redis: 127.0.0.1:9000 2020-03-29 18:09:02.391 - debug: tankerkoenig.0 (8417) States create User PubSub Client 2020-03-29 18:09:02.391 - debug: tankerkoenig.0 (8417) States create System PubSub Client 2020-03-29 18:09:02.388 - debug: tankerkoenig.0 (8417) Redis States: Use Redis connection: 127.0.0.1:9000 2020-03-29 18:09:02.387 - debug: tankerkoenig.0 (8417) objectDB connected 2020-03-29 18:09:02.384 - debug: tankerkoenig.0 (8417) Objects connected to redis: 127.0.0.1:9001 2020-03-29 18:09:02.378 - debug: tankerkoenig.0 (8417) Objects create User PubSub Client 2020-03-29 18:09:02.378 - debug: tankerkoenig.0 (8417) Objects create System PubSub Client 2020-03-29 18:09:02.378 - debug: tankerkoenig.0 (8417) Objects client initialize lua scripts 2020-03-29 18:09:02.377 - debug: tankerkoenig.0 (8417) Objects client ready ... initialize now 2020-03-29 18:09:02.365 - debug: tankerkoenig.0 (8417) Redis Objects: Use Redis connection: 127.0.0.1:9001 2020-03-29 18:09:02.032 - info: host.iobroker instance system.adapter.tankerkoenig.0 started with pid 8417 2020-03-29 18:09:01.021 - info: host.iobroker Restart adapter system.adapter.tankerkoenig.0 because enabled 2020-03-29 18:09:01.021 - error: host.iobroker instance system.adapter.tankerkoenig.0 terminated with code 156 (156) 2020-03-29 18:09:00.509 - info: tankerkoenig.0 (8399) Terminated (START_IMMEDIATELY_AFTER_STOP): Without reason 2020-03-29 18:09:00.508 - info: tankerkoenig.0 (8399) terminating 2020-03-29 18:09:00.004 - info: tankerkoenig.0 (8399) Scheduled restart. 2020-03-29 18:08:44.070 - debug: tankerkoenig.0 (8399) Einstellung/Eintrag Nr. 6 ist leer 2020-03-29 18:08:44.069 - debug: tankerkoenig.0 (8399) Einstellung/Eintrag Nr. 9 ist leer 2020-03-29 18:08:44.069 - debug: tankerkoenig.0 (8399) Einstellung/Eintrag Nr. 8 ist leer 2020-03-29 18:08:44.069 - debug: tankerkoenig.0 (8399) Einstellung/Eintrag Nr. 7 ist leer 2020-03-29 18:08:43.981 - info: tankerkoenig.0 (8399) Reading data from tankerkoenig ... 2020-03-29 18:08:43.972 - info: tankerkoenig.0 (8399) Sync time set to 5 minutes or 300000 ms 2020-03-29 18:08:43.972 - debug: tankerkoenig.0 (8399) Option is true 2020-03-29 18:08:43.972 - debug: tankerkoenig.0 (8399) API Key Länge: 36 Zeichen 2020-03-29 18:08:43.967 - debug: tankerkoenig.0 (8399) Schedule restart: * * * * * 2020-03-29 18:08:43.940 - info: tankerkoenig.0 (8399) starting. Version 2.0.6 in /opt/iobroker/node_modules/iobroker.tankerkoenig, node: v10.19.0
Tankstelle wurde verkauft = neue ID ... wäre gut, wenn dies im Logging sichtbar / Fehler abgefangen wird - aktuell liefert der Adapter sonst keine Daten für keine Tankstelle mehr
Das Feld 'short' wird anscheinend für station und cheapest anders berechnet.
Bei den stations wird anscheinend die 3. Nachkommastelle abgeschnitten, bei cheapest aufgerundet.
Beispiel für station:
bei 'feed' -> 1.079
bei 'short' -> 1.07
in cheapest steht in dem Feld 'short' bei der gleichen Tankstelle dann 1.08
laut Feldbeschreibung ist dies falsch, da short nicht gerundet wird
der request(url, function (error, response, body) {
wird bei Aktualisierung nicht ausgeführt
es ist so als ob dieser bei Adapterstart nicht beendet wurd .. und der nächste mag nicht anlaufen..
wenn der Adapter neu gestartet wird gehts..
Vorschlag: bau den um auf interne Verarbeitung in der Schleife.. dann endet der request auch.
When resetting states, there are better ways to reset the value
deleteState
to remove the state orstate.q
flag to inform other adapters that this is not a "valid value"We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.
Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512
On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.
Thank you for your support.
For Admin3 some changes are needed: see http://forum.iobroker.net/viewtopic.php?f=24&t=10268
Ich bekomme bei meiner Tankstelle während der Nacht immer die Fehlermeldung
018-02-07 02:30:02.761 | error | Spritpreise einlesen (gezielte Stationen via ID) - Parse Fehler: TypeError: Cannot read property '1' of und |
---|
Es scheint, dass das Errorhandling des Json Parsers nicht richtig funktioniert.
Es wäre wünschenswert, wenn diese Fehlermeldung nicht kommen würde, weil der Nutzer keine Möglichkeit hat, Korrekturen durchzuführen.
Außerdem wäre es schön, wenn die Info, dass der Adapter gestartet wurde, nicht im Log File erscheint, wenn der Nutzer den Level Error für den Adapter eingestellt hat.
Beim Beta-Test von js-controller 3.2.4 kommt folgene Warnung:
tankerkoenig.0 | 2021-01-09 22:52:46.840 | warn | (3413) State "tankerkoenig.0.stations.8.e10.combined" has no existing object, this might lead to an error in future versions
Verwendete Version von tankerkoening: 2.0.9
Leider fehlt der Super Plus Preis.
Wäre schön, wenn der auch mit abgefragt werden könnte.
As diskussed here:
https://forum.iobroker.net/topic/53889/tankerk%C3%B6nig-widgets-zeitweise-leer
the calculation of the 3rd decimal seems to be faulty.
So the value is calculated to 10 instead of 9
Hallo,
ich habe seit einigen Tagen in iobroker die Historienfunktion in Verwendung inklusive Grafischer Darstellung. Unter anderem wollte ich die Spritpreise so als Verlauf darstellen. Leider habe ich gesehen, dass hier kein durchgängiger Graph sondern ein wildes Zick-Zack dargestellt wird. Nach kurzer Recherche habe ich folgendes herausgefunden. Der Adapter scheint bei jedem Durchlauf erstmal alle Werte auf 0 zu setzen bevor er die neuen Werte setzt wodurch z.B. folgende Historie ergibt.
1.13 | true | tankerkoenig.0 | 2017-11-15 01:30:03.184
0 | false | tankerkoenig.0 | 2017-11-15 01:30:03.168
Nun meine Frage was hier dahinter steckt, das zuerst die Nullung stattfindet und ob dies wirklich notwendig ist?
Danke
I have a trigger on a "feed" state to recognize changes of the price.
I noticed that the trigger is fired twice: the first time I get a value with 0 and shortly after the first trigger I receive a second trigger with the correct value.
That's a misbehaviour. I have to filter it in my trigger function but it would be better when the states are written correctly.
Moin,
ich habe nach wie vor das Problem mit der folgenden Fehlermeldung:
Da der letzt Bug Report geschlossen wurde, dachte ich, dass evtl. eine Installation der Version 2.0.9 das Problem behebt. Bei mir leider nicht. Die Warnmeldungen kommen mit jeder Aktualisierung der Daten wieder. Node und NPM sind aktuell und den Fixer habe ich auch schon gestartet.
Greetz
Roland
Hallo, Version 2.0.1 macht anscheinend zuviele requests, die 5min oder 15min die ich eingestellt habe, werden nicht eingehalten, sondern es werden dauernd requests gesendet, siehe Email:
....
kommen momentan etwa 150 Zugriffe/Sekunde auf unser API (seit heute
morgen über 350000 Zugriffe).
... meine Api und IP wurde deaktiviert. Musste die Instanz erstmal stoppen.
Aber ich muss sagen, die Angaben waren immer sehr aktuell heute.. ;-)
Hey,
I tried to setup Tankerkoenig. I've got my own api key and and id of a station, but I am unable to to save the Data. Every other IO Broker Adapter does work when changing the settings, but the Tankerkoenig adapter does not save it.
Solved: I had to enter the Intervall first, even though there was a "5" displayed
Hallo
Bei mir kommt immer der Fehler
27159) Spritpreise einlesen (gezielte Stationen via ID) - Fehler: Error: getaddrinfo EAI_AGAIN creativecommons.tankerkoenig.de creativecommons.tankerkoenig.de:443
egal welche Tankstelle ich eingebe,
bei einem anderen iobroker projekt (Freund) funktioniert es
habe die Instance schon gelöscht und neu installiert, egal welche Version ich nehme (V2.0.5 oder v2.0.9)
habe auch schon eine API-Key von einem Freund genutzt bei dem es funktioniert
im log (/opt/iobroker/log/iobroker.current.log) steht auch nicht mehr.
wenn ich den API-Key und die Tankstellen id im Browser eingebe kommen plausible daten
https://creativecommons.tankerkoenig.de/json/detail.php?apikey=xxxxxxxxx-yyyyy-7ab0-92c1-18f71e80f640&id=32c47dff-4bf0-4f51-928a-8e113c28608a
Ergebnis
{"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","status":"ok","station":{"id":"32c47dff-4bf0-4f51-928a-8e113c28608a","name":"Tank Plus Tankstelle","brand":"Tank Plus","street":"Nordgaustra\u00dfe","houseNumber":"36","postCode":93059,"place":"Regensburg","openingTimes":[],"overrides":[],"wholeDay":true,"isOpen":true,"e5":1.219,"e10":1.169,"diesel":1.009,"lat":49.037666,"lng":12.104853,"state":null}}
sollte also nicht am PAI oder Tankstellen-ID liegen
meine Machine:
Platform: linux
Betriebssystem: linux
Architektur: x64
CPUs: 4
Geschwindigkeit: 2586 MHz
Modell: Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
RAM: 7.17 GB
System Betriebszeit: 5 T. 21:02:29
Node.js: v10.16.3 (Es gibt eine neuere Version: v10.23.0 - Empfohlene Version v12.19.0)
NPM: 6.9.0
Festplatte Größe: 7.81 GB
Festplatte frei: 4.04 GB
Anzahl der Adapter: 309
Betriebszeit: 5 T. 21: 01:19
Aktive Instanzen: 20
Hostname: iobroker
Wie ich gesehen habe, bietet die API auch an, die Öffnungszeiten der Tankstellen abzurufen. Schön wäre es, diese Information auch über den Adapter im ioBroker zur Verfügung zu haben.
Dabei muss die Abfrage der Daten ja nicht so oft stattfinden, wie die Aktualisierung der Preise.
Dear Adapter developer,
with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.
If something is not correct this is logged as 'warning' or 'info' log.
Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!
Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.
For questions please refer to ioBroker/ioBroker.js-controller#1749
Please close the issue after you checked it.
Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!
tankerkoenig.0 | warn | Read-only state "tankerkoenig.0.stations.8.e5.feed" has been written without ack-flag with value "0"
tankerkoenig.0 | warn | Read-only state "tankerkoenig.0.stations.8.status" has been written without ack-flag with value ""
tankerkoenig.0 | warn | Read-only state "tankerkoenig.0.stations.7.diesel.3rd" has been written without ack-flag with value "0"
tankerkoenig.0 | warn | State value to set for "tankerkoenig.0.stations.7.diesel.short" has wrong type "number" but has to be "string"
tankerkoenig.0 |warn | Read-only state "tankerkoenig.0.stations.7.diesel.combined" has been written without ack-flag with value ""
ioBroker/ioBroker.js-controller#1299
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.