NEWS
Test iobroker.vis-mapwidgets
-
H Homoran verschob dieses Thema von Tester am
-
H Homoran verschob dieses Thema von ...nicht in offiziellem Repo am
-
H Homoran verschob dieses Thema von Tester am
-
Kommentar im Rahmen der Verschiebung in das Unterforum "Nicht im Repo"
Der Adapter befindet sich nicht im Repository, da entsprechende Rückmeldungen zum Test von Nutzern fehlt.
Falls da noch was kommt, kann ich gerne den nächsten Schritt angehen. Ansonsten bleibt der Status quo erhalten. -
auf github wurde ein neuer Usecase hinzugefügt.
Dieses Beispiel zeigt, wie ein Pfad aus einer Historie angezeigt wird,
mithilfe eines Auswahlfelds, das mit demjsonTemplate-Widget implementiert ist (aus dem gleichnamigen Adapter),
kann ein Pfad zu einem bestimmten Datum aus einer erweiterten JSON-Datenstruktur ausgewählt und im Leaflet-Karten-Widget angezeigt werden.
-
Neue Version 0.1.1
- Schema-Validierung für Kartendaten im Bearbeitungsmodus hinzugefügt
- Fehlerbehandlung für fitBounds verbessert
Im Edit mode werden nun die json map Daten validiert und die Fehler können in einem Dialog angezeigt werden
Hier mit einem Beispiel, bei dem die Daten aus dem History-Beispiel direkt der Karte zugeführt werden.


Auch hier half die KI und besonders hervorzuheben war, das die KI direkt aus der Readme mir die Schema-Datei gleich beim ersten mal korrekt erzeugt hat
https://github.com/oweitman/ioBroker.vis-mapwidgets/blob/main/widgets/mapwidgets/js/mapwidgets.schema.json -
Also das mit den Markern hab ich jetzt bei mir eingebaut, das funktioniert einwandfrei.
Was ich im Moment noch nich so ganz verstehe, ist das mit dem History Beispiel. Kannst du mal ein Bild von dem json-Widget einstellen, wo man sieht in welchen OID ich wo eintragen muß und nochmal erklären wie genau das Widget befüllt werden muß?
Wenn ich das richtig verstanden hab, dann holt er sich die History aus dem Json wo die "polylines" liegen.Aber ich verstehe nicht warum das soviele OID in dem Widget eingetragen werden können/müssen.
Also in meinem json legt er für jede Fahrt eine "polyline" an wenn diese für nicht länger als 30min unterbrochen wird, wird z.B. die Rückfahrt an die erste mit angehangen. Wenn ich zwei Stunden später wieder fahre, dann legt er eine neue Polyline (in andrerer Farbe an) usw. bis zu 5 Fahrten am Tag.
Für den nächsten Tag wird das JSON neu angelegt . -
Also das mit den Markern hab ich jetzt bei mir eingebaut, das funktioniert einwandfrei.
Was ich im Moment noch nich so ganz verstehe, ist das mit dem History Beispiel. Kannst du mal ein Bild von dem json-Widget einstellen, wo man sieht in welchen OID ich wo eintragen muß und nochmal erklären wie genau das Widget befüllt werden muß?
Wenn ich das richtig verstanden hab, dann holt er sich die History aus dem Json wo die "polylines" liegen.Aber ich verstehe nicht warum das soviele OID in dem Widget eingetragen werden können/müssen.
Also in meinem json legt er für jede Fahrt eine "polyline" an wenn diese für nicht länger als 30min unterbrochen wird, wird z.B. die Rückfahrt an die erste mit angehangen. Wenn ich zwei Stunden später wieder fahre, dann legt er eine neue Polyline (in andrerer Farbe an) usw. bis zu 5 Fahrten am Tag.
Für den nächsten Tag wird das JSON neu angelegt .hast du die beschreibung bei den examples gesehen?
https://github.com/oweitman/ioBroker.vis-mapwidgets/blob/main/example/example.md#directory-examplepathhistoryim verzeichnis ist die json datastruktur wie sie aussehen sollte
https://github.com/oweitman/ioBroker.vis-mapwidgets/tree/main/example/ExamplePathHistory
das ist der erste schritt.
so musst du bei dir die traccar daten aufbereiten und in deinen datenpunkt schreibendiesen datenpunkt kann das map widget natürlich nicht genau so verarbeiten.
dann installierst du den adapter vis-jsontemplate
dann fügst du das widget hinzu und trägstunter object id den datenpunkt mit der erweiterten struktur ein
und als template/vorlage je nach übersetzung dann den inhalt dieser datei ein
https://github.com/oweitman/ioBroker.vis-mapwidgets/blob/main/example/ExamplePathHistory/jsonTemplate.txtund in das map widget nur noch als datenpunkt
local_mapdas jsontemplate widget liest dann den datenpunkt aus der erweiterten struktur
nimmt extrahiert die keys, macht daraus ein lesbares datum und bildet das drop down.
sobald das dropdown ausgewählt wird, schreibt es die map daten in den lokalen datenpunkt local_map. den musst du nicht extra anlegen. das ist ein feature von vis/vis2 um adhoc mit daten zwischen widgets zu arbeiten. die existieren dann nur lokal auf dem browser. das nutze ich um dem map widget dann die richtigen map daten dem map widget zu übergeben.so sehen die einstellungen des jsontemplate widgets aus

und so die von der map

-
Also das mit den Markern hab ich jetzt bei mir eingebaut, das funktioniert einwandfrei.
Was ich im Moment noch nich so ganz verstehe, ist das mit dem History Beispiel. Kannst du mal ein Bild von dem json-Widget einstellen, wo man sieht in welchen OID ich wo eintragen muß und nochmal erklären wie genau das Widget befüllt werden muß?
Wenn ich das richtig verstanden hab, dann holt er sich die History aus dem Json wo die "polylines" liegen.Aber ich verstehe nicht warum das soviele OID in dem Widget eingetragen werden können/müssen.
Also in meinem json legt er für jede Fahrt eine "polyline" an wenn diese für nicht länger als 30min unterbrochen wird, wird z.B. die Rückfahrt an die erste mit angehangen. Wenn ich zwei Stunden später wieder fahre, dann legt er eine neue Polyline (in andrerer Farbe an) usw. bis zu 5 Fahrten am Tag.
Für den nächsten Tag wird das JSON neu angelegt .Also in meinem json legt er für jede Fahrt eine "polyline" an wenn diese für nicht länger als 30min unterbrochen wird, wird z.B. die Rückfahrt an die erste mit angehangen. Wenn ich zwei Stunden später wieder fahre, dann legt er eine neue Polyline (in andrerer Farbe an) usw. bis zu 5 Fahrten am Tag.
Für den nächsten Tag wird das JSON neu angelegt .wie willst du die anzeige organisieren?
für jeden tag ein eintrag zur auswahl mit verschiedenen fahrten mit unterschiedlicher farbe? dann könntest du jeweils zum start marker noch eine zahl ergänzenoder für jede fahrt einen eigenen eintrag?
-
@oliverio so sieht mein json jetzt für heute aus. War allerdings auch nur eine Fahrt kurz hin und wieder zurück.
Wie müsste denn jetzt noch die Zeit für den History-Teil da eingebaut werden?
{ "marker": [ { "latlng": [ 50.7257667, 6.5613029 ], "options": { "icon": "honda", "title": "Default" }, "tooltip": "Hover me" } ], "icons": { "honda": { "iconUrl": "/vis-2.0/SmartHome/tanken/honda_sv1.png", "iconSize": [ 45, 30 ], "iconAnchor": [ 15, 30 ], "popupAnchor": [ 0, -26 ], "shadowSize": [ 36, 36 ], "shadowAnchor": [ 15, 30 ] } }, "polyline": [ { "latlng": [ [ 50.725776, 6.561582 ], [ 50.7257647, 6.5613146 ], [ 50.7257207, 6.5613834 ], [ 50.7257204, 6.561467 ], [ 50.7257319, 6.561467 ], [ 50.7257348, 6.5614284 ], [ 50.7257402, 6.5614092 ], [ 50.7257427, 6.5613879 ], [ 50.725742, 6.5613829 ], [ 50.7257447, 6.5613829 ], [ 50.7257432, 6.5613837 ], [ 50.725747, 6.5613837 ], [ 50.7257438, 6.5613733 ], [ 50.725743, 6.5613781 ], [ 50.725744, 6.5613673 ], [ 50.7257428, 6.561373 ], [ 50.725742, 6.561373 ], [ 50.7257468, 6.5613768 ], [ 50.7257446, 6.5613679 ], [ 50.7257467, 6.5613748 ], [ 50.725748, 6.5613692 ], [ 50.7257463, 6.5613692 ], [ 50.7257446, 6.5613656 ], [ 50.725745, 6.5613711 ], [ 50.7257441, 6.5613618 ], [ 50.7257436, 6.5613649 ], [ 50.7257428, 6.5613686 ], [ 50.725742, 6.561369 ], [ 50.7257409, 6.5613735 ], [ 50.7257416, 6.5613673 ], [ 50.7257408, 6.5613673 ], [ 50.7257407, 6.5613678 ], [ 50.7257429, 6.5613806 ], [ 50.7257411, 6.561372 ], [ 50.7257406, 6.5613626 ], [ 50.7257422, 6.5613626 ], [ 50.7257418, 6.5613609 ], [ 50.7257413, 6.5613619 ], [ 50.7257407, 6.5613542 ], [ 50.7257438, 6.5613542 ], [ 50.7257431, 6.5613678 ], [ 50.7257468, 6.5613686 ], [ 50.7257469, 6.5613686 ], [ 50.7257497, 6.5613687 ], [ 50.72575, 6.561365 ], [ 50.7257491, 6.561365 ], [ 50.7257482, 6.5613692 ], [ 50.7257477, 6.5613733 ], [ 50.7257471, 6.5613748 ], [ 50.7257482, 6.561377 ], [ 50.7257468, 6.5614157 ], [ 50.7257514, 6.5614157 ], [ 50.725749, 6.5614039 ], [ 50.7257489, 6.56141 ], [ 50.7257473, 6.5614041 ], [ 50.7257468, 6.5614041 ], [ 50.7257461, 6.5614057 ], [ 50.7257445, 6.5614074 ], [ 50.7257434, 6.5614128 ], [ 50.7257436, 6.561408 ], [ 50.7257422, 6.5614017 ], [ 50.7257427, 6.5614051 ], [ 50.7257421, 6.5613975 ], [ 50.7257413, 6.5613995 ], [ 50.7257409, 6.5614024 ], [ 50.7257395, 6.5614024 ], [ 50.7257396, 6.5613972 ], [ 50.7257384, 6.5613972 ], [ 50.7257359, 6.5613985 ], [ 50.7257388, 6.5614049 ], [ 50.7257384, 6.5613994 ], [ 50.725737, 6.5614041 ], [ 50.7257366, 6.5614041 ], [ 50.7257349, 6.5614109 ], [ 50.7257352, 6.5614109 ], [ 50.7257338, 6.5614133 ], [ 50.7257353, 6.5614392 ], [ 50.7257392, 6.5614392 ], [ 50.7257419, 6.5614275 ], [ 50.7257422, 6.5614228 ], [ 50.7257416, 6.5614271 ], [ 50.7257412, 6.5614271 ], [ 50.7257407, 6.561429 ], [ 50.7257413, 6.5614307 ], [ 50.7257424, 6.5614377 ], [ 50.7257418, 6.5614377 ], [ 50.7257401, 6.5614439 ], [ 50.7257419, 6.5614399 ], [ 50.7257409, 6.5614321 ], [ 50.7257402, 6.561436 ], [ 50.7257399, 6.561436 ], [ 50.7257393, 6.5614372 ], [ 50.7257407, 6.5614299 ], [ 50.7257429, 6.5614203 ], [ 50.7257377, 6.5614203 ], [ 50.725737, 6.5614126 ], [ 50.7257362, 6.5614123 ], [ 50.7257358, 6.5614123 ], [ 50.7257363, 6.5614096 ], [ 50.7257341, 6.5614096 ], [ 50.7257319, 6.5614153 ], [ 50.7257363, 6.5614193 ], [ 50.7257359, 6.5614119 ], [ 50.7257356, 6.5614119 ], [ 50.7257353, 6.5614131 ], [ 50.7257349, 6.5614152 ], [ 50.7257362, 6.5614157 ], [ 50.7257349, 6.5614068 ], [ 50.7257353, 6.5614111 ], [ 50.7257346, 6.5614008 ], [ 50.725739, 6.5613997 ], [ 50.7257393, 6.5613997 ], [ 50.725739, 6.5613992 ], [ 50.7257363, 6.5613934 ], [ 50.72574, 6.5614031 ], [ 50.7257392, 6.5614031 ], [ 50.7257417, 6.5614076 ], [ 50.7257405, 6.5614069 ], [ 50.7257396, 6.5614125 ], [ 50.7257424, 6.5614151 ], [ 50.725744, 6.5614022 ], [ 50.7257581, 6.5614032 ], [ 50.7257593, 6.5613376 ], [ 50.7257635, 6.5613264 ], [ 50.7257306, 6.5614412 ], [ 50.7257217, 6.5614586 ], [ 50.725728, 6.5614586 ], [ 50.7257315, 6.561444 ], [ 50.725731, 6.561436 ], [ 50.7257306, 6.561436 ], [ 50.7257329, 6.5614375 ], [ 50.7257357, 6.5614278 ], [ 50.7257351, 6.5614134 ], [ 50.7257344, 6.5614134 ], [ 50.7257387, 6.5614153 ], [ 50.7257378, 6.5614099 ], [ 50.7257375, 6.5614112 ], [ 50.7257367, 6.5614132 ], [ 50.725737, 6.5614122 ], [ 50.7257362, 6.5614046 ], [ 50.7257404, 6.5614073 ], [ 50.7257394, 6.5614021 ], [ 50.7257426, 6.5613998 ], [ 50.7257408, 6.5613998 ], [ 50.7257405, 6.5614048 ], [ 50.7257408, 6.5614009 ], [ 50.7257392, 6.5614009 ], [ 50.7257404, 6.5613923 ], [ 50.7257391, 6.5613947 ], [ 50.7257394, 6.5613947 ], [ 50.7257389, 6.5613895 ], [ 50.7257397, 6.5613916 ], [ 50.7257393, 6.5613871 ], [ 50.7257368, 6.5613881 ], [ 50.7257365, 6.5613841 ], [ 50.7257327, 6.5613837 ], [ 50.7257365, 6.5613996 ], [ 50.7257348, 6.5613932 ], [ 50.7257357, 6.5613918 ], [ 50.7257376, 6.5613918 ], [ 50.7257374, 6.5614121 ], [ 50.7257346, 6.5614133 ], [ 50.7257384, 6.561411 ], [ 50.7257376, 6.561398 ], [ 50.7257422, 6.561398 ], [ 50.7257421, 6.5613899 ], [ 50.725744, 6.5613899 ], [ 50.7257434, 6.5613867 ], [ 50.7257429, 6.5613929 ], [ 50.7257459, 6.5613929 ], [ 50.7257438, 6.5613856 ], [ 50.7257433, 6.5613884 ], [ 50.7257431, 6.5613884 ], [ 50.7257422, 6.5613889 ], [ 50.7257424, 6.5613936 ], [ 50.7257449, 6.5613921 ], [ 50.725744, 6.5613921 ], [ 50.7257448, 6.5613972 ], [ 50.7257446, 6.5613945 ], [ 50.7257461, 6.5613926 ], [ 50.7257449, 6.5613954 ], [ 50.7257444, 6.5613954 ], [ 50.7257436, 6.5613983 ], [ 50.7257479, 6.5613983 ], [ 50.7257467, 6.5613891 ], [ 50.7257462, 6.5613915 ], [ 50.7257453, 6.5613927 ], [ 50.7257486, 6.5613952 ], [ 50.725748, 6.5613858 ], [ 50.725749, 6.5613912 ], [ 50.7257486, 6.5613804 ], [ 50.7257501, 6.5613732 ], [ 50.7257504, 6.5613791 ], [ 50.7257541, 6.5613791 ], [ 50.7257534, 6.561379 ], [ 50.725755, 6.5613862 ], [ 50.7257547, 6.5614042 ], [ 50.7257552, 6.5613875 ], [ 50.7257556, 6.5613875 ], [ 50.7257447, 6.5613562 ], [ 50.7257383, 6.5614406 ], [ 50.7257402, 6.5614406 ], [ 50.7257446, 6.5614406 ], [ 50.7257449, 6.5614266 ], [ 50.7257452, 6.5614266 ], [ 50.725746, 6.5614259 ], [ 50.7257492, 6.5614198 ], [ 50.7257467, 6.5614137 ], [ 50.7257466, 6.561412 ], [ 50.7257459, 6.5614006 ], [ 50.7257491, 6.5613866 ], [ 50.7257487, 6.5613866 ], [ 50.7257522, 6.5613895 ], [ 50.7257526, 6.5613846 ], [ 50.725752, 6.5613857 ], [ 50.7257521, 6.5613847 ], [ 50.7257522, 6.5613847 ], [ 50.7257518, 6.5614007 ], [ 50.7257544, 6.5614044 ], [ 50.7257541, 6.5614022 ], [ 50.7257561, 6.5614058 ], [ 50.7257509, 6.5614016 ], [ 50.7257508, 6.5613935 ], [ 50.7257486, 6.5613921 ], [ 50.7257483, 6.5613958 ], [ 50.7257475, 6.5614044 ], [ 50.725748, 6.5614046 ], [ 50.7257555, 6.5614028 ], [ 50.7257558, 6.5613852 ], [ 50.7257561, 6.5613604 ], [ 50.7257368, 6.5613604 ], [ 50.7257313, 6.5614188 ], [ 50.7257296, 6.561446 ], [ 50.7257301, 6.561446 ], [ 50.7257347, 6.5614391 ], [ 50.7257348, 6.5614277 ], [ 50.7257368, 6.5614175 ], [ 50.7257439, 6.5614175 ], [ 50.725747, 6.5614036 ], [ 50.7257453, 6.5613959 ], [ 50.7257465, 6.5613996 ], [ 50.7257456, 6.5613977 ], [ 50.7257451, 6.5613931 ], [ 50.7257485, 6.5613878 ], [ 50.725748, 6.5613896 ], [ 50.7257501, 6.5613896 ], [ 50.7257494, 6.5613856 ], [ 50.7257491, 6.5613913 ], [ 50.7257506, 6.5613913 ], [ 50.7257498, 6.5613832 ], [ 50.7257489, 6.561385 ], [ 50.7257469, 6.5613964 ], [ 50.7257477, 6.5613964 ], [ 50.7257448, 6.5613857 ], [ 50.7257457, 6.5613899 ], [ 50.7257448, 6.5613819 ], [ 50.7257437, 6.561384 ], [ 50.7257524, 6.561384 ], [ 50.7257569, 6.5613642 ], [ 50.7257613, 6.5613476 ], [ 50.7257631, 6.5613419 ], [ 50.7257658, 6.5613391 ], [ 50.7257669, 6.5613111 ], [ 50.7257663, 6.5613067 ], [ 50.7257685, 6.5613077 ], [ 50.7257624, 6.5613259 ], [ 50.7257387, 6.5614651 ], [ 50.7257379, 6.5614698 ], [ 50.725738, 6.5614717 ], [ 50.7257385, 6.5614726 ], [ 50.7257384, 6.5614595 ], [ 50.7257428, 6.5614633 ], [ 50.7257423, 6.5614486 ], [ 50.7257458, 6.5614432 ], [ 50.7257455, 6.5614432 ], [ 50.7257443, 6.5614419 ], [ 50.7257425, 6.561444 ], [ 50.7257416, 6.5614491 ], [ 50.7257425, 6.5614491 ], [ 50.7257409, 6.5614236 ], [ 50.7257396, 6.5614236 ], [ 50.7257389, 6.5614285 ], [ 50.725744, 6.5614186 ], [ 50.7257434, 6.5614186 ], [ 50.7257432, 6.561423 ], [ 50.7257444, 6.561423 ], [ 50.7257438, 6.5614129 ], [ 50.7257429, 6.5614174 ], [ 50.7257439, 6.5614174 ], [ 50.7257431, 6.5614084 ], [ 50.725742, 6.5614142 ], [ 50.7257458, 6.5614142 ], [ 50.7257446, 6.5614059 ], [ 50.7257426, 6.5614022 ], [ 50.7257432, 6.5614093 ], [ 50.7257414, 6.5614039 ], [ 50.7257407, 6.5614039 ], [ 50.7257435, 6.5614086 ], [ 50.7257422, 6.5613997 ], [ 50.7257404, 6.5614047 ], [ 50.7257458, 6.5614076 ], [ 50.725745, 6.5613969 ], [ 50.7257444, 6.5613991 ], [ 50.7257431, 6.5613947 ], [ 50.7257436, 6.5613982 ], [ 50.7257429, 6.5613937 ], [ 50.7257454, 6.5613957 ], [ 50.7257451, 6.561394 ], [ 50.725747, 6.561394 ], [ 50.7257465, 6.5613935 ], [ 50.7257477, 6.5613935 ], [ 50.725747, 6.5613918 ], [ 50.7257465, 6.5613929 ], [ 50.7257485, 6.561394 ], [ 50.7257486, 6.5613917 ], [ 50.7257407, 6.5613917 ], [ 50.7257384, 6.5614159 ], [ 50.7257389, 6.5614159 ], [ 50.7257378, 6.5614044 ], [ 50.7257373, 6.561407 ], [ 50.7257372, 6.5614084 ], [ 50.7257369, 6.5614101 ], [ 50.725735, 6.5614015 ], [ 50.725738, 6.5614078 ], [ 50.7257368, 6.5614185 ], [ 50.7257387, 6.5614185 ], [ 50.7257386, 6.5614179 ], [ 50.725738, 6.5614185 ], [ 50.7257388, 6.5614198 ], [ 50.7257378, 6.5614107 ], [ 50.7257367, 6.5614107 ], [ 50.7257365, 6.5614128 ], [ 50.7257396, 6.561406 ], [ 50.725744, 6.561406 ], [ 50.7257389, 6.5614178 ], [ 50.7257402, 6.5614178 ], [ 50.7257593, 6.5614058 ], [ 50.7257615, 6.5613585 ], [ 50.7257586, 6.5613187 ], [ 50.7257644, 6.5613074 ], [ 50.7257699, 6.5613074 ], [ 50.7257303, 6.5613113 ], [ 50.725725, 6.561435 ], [ 50.7257248, 6.5614666 ], [ 50.7257267, 6.5614701 ], [ 50.7257287, 6.56146 ], [ 50.7257283, 6.5614508 ], [ 50.7257279, 6.5614506 ], [ 50.725731, 6.561452 ], [ 50.7257375, 6.5614382 ], [ 50.7257477, 6.5614256 ], [ 50.7257458, 6.5614016 ], [ 50.7257469, 6.5614011 ], [ 50.7257453, 6.5614011 ], [ 50.7257445, 6.5614032 ], [ 50.7257423, 6.5613973 ], [ 50.7257396, 6.5613973 ], [ 50.7257423, 6.5614018 ], [ 50.7257399, 6.5613955 ], [ 50.7257411, 6.5614012 ], [ 50.7257478, 6.5613771 ], [ 50.7257533, 6.5613693 ], [ 50.7257551, 6.5613693 ], [ 50.725727, 6.5613573 ], [ 50.7257193, 6.5614568 ], [ 50.7257221, 6.5614708 ], [ 50.7257246, 6.5614542 ], [ 50.7257303, 6.5614232 ], [ 50.7257294, 6.5614093 ], [ 50.7257313, 6.5614093 ], [ 50.725731, 6.5614019 ], [ 50.7257307, 6.5614035 ], [ 50.725732, 6.5614035 ], [ 50.7257315, 6.5613983 ], [ 50.7257339, 6.5614001 ], [ 50.725733, 6.5613956 ], [ 50.7257371, 6.5613954 ], [ 50.7257367, 6.5613954 ], [ 50.7257375, 6.5613983 ], [ 50.7257376, 6.5613978 ], [ 50.7257385, 6.5613978 ], [ 50.7257383, 6.5613975 ], [ 50.7257451, 6.5613982 ], [ 50.725748, 6.5613847 ], [ 50.7257523, 6.5613716 ], [ 50.7257506, 6.5613573 ], [ 50.725755, 6.5613484 ], [ 50.7257468, 6.56135 ], [ 50.7257689, 6.5613794 ], [ 50.7257417, 6.5615331 ], [ 50.7257403, 6.5614858 ], [ 50.7257448, 6.5614904 ], [ 50.7257432, 6.561474 ], [ 50.725744, 6.5614434 ], [ 50.725743, 6.5614434 ], [ 50.7257422, 6.5614587 ], [ 50.7257392, 6.5614587 ], [ 50.7257395, 6.5614752 ], [ 50.7257392, 6.5614752 ], [ 50.7257398, 6.5614788 ], [ 50.7257396, 6.5614642 ], [ 50.7257391, 6.5614645 ], [ 50.7257384, 6.5614557 ], [ 50.7257378, 6.5614557 ], [ 50.7257358, 6.561444 ], [ 50.7257354, 6.561453 ], [ 50.7257394, 6.561453 ], [ 50.7257393, 6.561443 ], [ 50.72574, 6.561437 ], [ 50.725739, 6.561437 ], [ 50.7257399, 6.5614303 ], [ 50.725739, 6.5614303 ], [ 50.7257401, 6.5614258 ], [ 50.7257389, 6.5614258 ], [ 50.7257433, 6.5614334 ], [ 50.7257432, 6.5614236 ], [ 50.7257456, 6.5614293 ], [ 50.7257462, 6.56142 ], [ 50.7257449, 6.5614176 ], [ 50.7257464, 6.5614176 ], [ 50.7257461, 6.5614168 ], [ 50.7257501, 6.561429 ], [ 50.7257508, 6.561418 ], [ 50.7257489, 6.5614169 ], [ 50.7257495, 6.5614239 ], [ 50.725749, 6.5614129 ], [ 50.7257469, 6.5614136 ], [ 50.7257467, 6.5614213 ], [ 50.7257472, 6.5614229 ], [ 50.725747, 6.5614119 ], [ 50.7257461, 6.5614123 ], [ 50.7257463, 6.561423 ], [ 50.725747, 6.561423 ], [ 50.7257468, 6.5614099 ], [ 50.7257465, 6.5614114 ], [ 50.7257609, 6.5613188 ], [ 50.7257627, 6.5613188 ], [ 50.7257685, 6.5612957 ], [ 50.7257736, 6.5613061 ], [ 50.7257674, 6.5613111 ], [ 50.7257669, 6.5613045 ], [ 50.7257467, 6.5613433 ], [ 50.7257301, 6.5614297 ], [ 50.7257298, 6.5614595 ], [ 50.7257309, 6.5614595 ], [ 50.7257306, 6.5614484 ], [ 50.7257318, 6.561448 ], [ 50.7257311, 6.5614421 ], [ 50.725731, 6.5614463 ], [ 50.7257307, 6.5614463 ], [ 50.7257323, 6.5614462 ], [ 50.7257318, 6.5614329 ], [ 50.7257315, 6.5614325 ], [ 50.7257371, 6.561426 ], [ 50.725737, 6.561426 ], [ 50.7257363, 6.5614275 ], [ 50.7257349, 6.5614221 ], [ 50.7257358, 6.5613988 ], [ 50.7257376, 6.5613988 ], [ 50.725743, 6.5614017 ], [ 50.7257423, 6.5613947 ], [ 50.7257405, 6.5613954 ], [ 50.7257406, 6.5613906 ], [ 50.7257375, 6.5613906 ], [ 50.7257426, 6.5613935 ], [ 50.7257427, 6.5613881 ], [ 50.7257429, 6.5613907 ], [ 50.7257423, 6.5613936 ], [ 50.7257416, 6.5613875 ], [ 50.7257399, 6.5613883 ], [ 50.7257389, 6.5613848 ], [ 50.7257383, 6.5613907 ], [ 50.7257384, 6.5613907 ], [ 50.7257377, 6.5613826 ], [ 50.7257359, 6.5613831 ], [ 50.7257355, 6.561386 ], [ 50.725736, 6.5613856 ], [ 50.7257346, 6.5614099 ], [ 50.7257341, 6.5614099 ], [ 50.725734, 6.5614014 ], [ 50.7257331, 6.5613964 ], [ 50.7257385, 6.5613996 ], [ 50.725738, 6.5613952 ], [ 50.7257383, 6.5614001 ], [ 50.7257379, 6.5613934 ], [ 50.7257377, 6.5613948 ], [ 50.7257374, 6.5613963 ], [ 50.7257361, 6.5613921 ], [ 50.7257405, 6.5613892 ], [ 50.7257408, 6.5613908 ], [ 50.725743, 6.5613908 ], [ 50.7257428, 6.5613945 ], [ 50.7257424, 6.5613967 ], [ 50.7257428, 6.5613964 ], [ 50.7257456, 6.5613961 ], [ 50.7257445, 6.5613944 ], [ 50.725748, 6.5613971 ], [ 50.7257479, 6.5613937 ], [ 50.7257434, 6.5613943 ], [ 50.7257409, 6.5613881 ], [ 50.7257438, 6.5613923 ], [ 50.7257435, 6.5613957 ], [ 50.7257367, 6.561402 ], [ 50.7257374, 6.561402 ], [ 50.7257292, 6.5613914 ], [ 50.7257148, 6.5614141 ], [ 50.7257129, 6.5614553 ], [ 50.7257218, 6.5614566 ], [ 50.7257233, 6.5614566 ], [ 50.7257226, 6.5614486 ], [ 50.7257222, 6.5614487 ], [ 50.7257245, 6.5614487 ], [ 50.7257241, 6.5614434 ], [ 50.7257275, 6.5614438 ], [ 50.7257255, 6.5614389 ], [ 50.7257189, 6.5614425 ], [ 50.7257207, 6.561447 ], [ 50.7257203, 6.5614397 ], [ 50.7257231, 6.5614406 ], [ 50.7257228, 6.5614314 ], [ 50.7257275, 6.5614336 ], [ 50.7257293, 6.5614274 ], [ 50.7257286, 6.5614244 ], [ 50.7257335, 6.561418 ], [ 50.7257374, 6.561418 ], [ 50.7257503, 6.5614111 ], [ 50.7257562, 6.5613801 ], [ 50.7257588, 6.5613397 ], [ 50.72576, 6.5613397 ], [ 50.7257588, 6.5613416 ], [ 50.7257216, 6.5613371 ], [ 50.7257187, 6.5614378 ], [ 50.725727, 6.5614257 ], [ 50.7257267, 6.5614257 ], [ 50.7257304, 6.561423 ], [ 50.7257296, 6.5614256 ], [ 50.7257307, 6.5614256 ], [ 50.7257306, 6.56142 ], [ 50.7257308, 6.5614194 ], [ 50.7257302, 6.5614206 ], [ 50.7257312, 6.561418 ], [ 50.7257313, 6.561418 ], [ 50.7257302, 6.561417 ], [ 50.7257299, 6.5614118 ], [ 50.7257287, 6.5614159 ], [ 50.7257323, 6.5614159 ], [ 50.7257317, 6.5614116 ], [ 50.7257315, 6.5614116 ], [ 50.7257311, 6.5614135 ], [ 50.7257341, 6.5614138 ], [ 50.7257338, 6.5614084 ], [ 50.7257334, 6.5614093 ], [ 50.7257332, 6.561411 ], [ 50.7257354, 6.5614083 ], [ 50.7257344, 6.5614084 ], [ 50.7257343, 6.561403 ], [ 50.725734, 6.5614026 ], [ 50.7257332, 6.5614 ], [ 50.7257377, 6.5614007 ], [ 50.7257496, 6.5613905 ], [ 50.7257587, 6.5613518 ], [ 50.7257572, 6.5613376 ], [ 50.7257588, 6.5613135 ], [ 50.7257473, 6.5613135 ], [ 50.7257278, 6.5613529 ], [ 50.7257201, 6.5614296 ], [ 50.725727, 6.5614341 ], [ 50.7257271, 6.5614247 ], [ 50.7257264, 6.5614247 ], [ 50.7257306, 6.5614255 ], [ 50.7257302, 6.5614157 ], [ 50.7257314, 6.5614167 ], [ 50.7257309, 6.5614107 ], [ 50.7257352, 6.5614121 ], [ 50.7257348, 6.5614065 ], [ 50.7257346, 6.561408 ], [ 50.7257363, 6.561408 ], [ 50.7257362, 6.5614046 ], [ 50.7257308, 6.5614043 ], [ 50.7257303, 6.5614119 ], [ 50.7257379, 6.5613956 ], [ 50.7257482, 6.5613956 ], [ 50.7257565, 6.5613568 ], [ 50.7257596, 6.5613319 ], [ 50.7257631, 6.5613237 ], [ 50.725765, 6.5613102 ], [ 50.7257293, 6.5613965 ], [ 50.7257156, 6.5613965 ], [ 50.7257201, 6.5614473 ], [ 50.7257224, 6.5614671 ], [ 50.7257222, 6.5614605 ], [ 50.7257245, 6.561464 ], [ 50.7257247, 6.5614547 ], [ 50.725728, 6.5614545 ], [ 50.7257285, 6.5614463 ], [ 50.7257286, 6.5614499 ], [ 50.7257297, 6.5614499 ], [ 50.7257294, 6.5614426 ], [ 50.7257291, 6.5614424 ], [ 50.7257302, 6.5614436 ], [ 50.7257297, 6.5614347 ], [ 50.7257315, 6.5614345 ], [ 50.7257313, 6.5614291 ], [ 50.7257339, 6.5614291 ], [ 50.7257343, 6.5614244 ], [ 50.7257357, 6.5614244 ], [ 50.7257342, 6.5614217 ], [ 50.7257334, 6.5614165 ], [ 50.7257491, 6.561391 ], [ 50.725758, 6.5613755 ], [ 50.7257589, 6.5613755 ], [ 50.7257599, 6.5613718 ], [ 50.7257634, 6.5613541 ], [ 50.7257621, 6.5613575 ], [ 50.7257642, 6.5613206 ], [ 50.7257649, 6.5613206 ], [ 50.7257628, 6.5613234 ], [ 50.7257659, 6.561325 ], [ 50.7257666, 6.5613307 ], [ 50.725765, 6.5613307 ], [ 50.7257682, 6.5613197 ], [ 50.7257698, 6.5613269 ], [ 50.7257725, 6.5613269 ], [ 50.7257715, 6.5613273 ], [ 50.7257705, 6.5613209 ], [ 50.7257694, 6.5613324 ], [ 50.7257697, 6.5613306 ], [ 50.7257658, 6.5613148 ], [ 50.7257644, 6.5613148 ], [ 50.7257654, 6.5613099 ], [ 50.7257692, 6.5613099 ], [ 50.7257691, 6.5613046 ], [ 50.7257698, 6.5613017 ], [ 50.7257663, 6.5613001 ], [ 50.7257664, 6.5612945 ], [ 50.7257685, 6.5613148 ], [ 50.7257689, 6.5613148 ], [ 50.7257698, 6.5613094 ], [ 50.7257679, 6.5613256 ], [ 50.7257664, 6.5613123 ], [ 50.7257667, 6.5613029 ] ], "options": { "color": "#3d3d5c", "weight": 3 } } ] } -
@oliverio so sieht mein json jetzt für heute aus. War allerdings auch nur eine Fahrt kurz hin und wieder zurück.
Wie müsste denn jetzt noch die Zeit für den History-Teil da eingebaut werden?
{ "marker": [ { "latlng": [ 50.7257667, 6.5613029 ], "options": { "icon": "honda", "title": "Default" }, "tooltip": "Hover me" } ], "icons": { "honda": { "iconUrl": "/vis-2.0/SmartHome/tanken/honda_sv1.png", "iconSize": [ 45, 30 ], "iconAnchor": [ 15, 30 ], "popupAnchor": [ 0, -26 ], "shadowSize": [ 36, 36 ], "shadowAnchor": [ 15, 30 ] } }, "polyline": [ { "latlng": [ [ 50.725776, 6.561582 ], [ 50.7257647, 6.5613146 ], [ 50.7257207, 6.5613834 ], [ 50.7257204, 6.561467 ], [ 50.7257319, 6.561467 ], [ 50.7257348, 6.5614284 ], [ 50.7257402, 6.5614092 ], [ 50.7257427, 6.5613879 ], [ 50.725742, 6.5613829 ], [ 50.7257447, 6.5613829 ], [ 50.7257432, 6.5613837 ], [ 50.725747, 6.5613837 ], [ 50.7257438, 6.5613733 ], [ 50.725743, 6.5613781 ], [ 50.725744, 6.5613673 ], [ 50.7257428, 6.561373 ], [ 50.725742, 6.561373 ], [ 50.7257468, 6.5613768 ], [ 50.7257446, 6.5613679 ], [ 50.7257467, 6.5613748 ], [ 50.725748, 6.5613692 ], [ 50.7257463, 6.5613692 ], [ 50.7257446, 6.5613656 ], [ 50.725745, 6.5613711 ], [ 50.7257441, 6.5613618 ], [ 50.7257436, 6.5613649 ], [ 50.7257428, 6.5613686 ], [ 50.725742, 6.561369 ], [ 50.7257409, 6.5613735 ], [ 50.7257416, 6.5613673 ], [ 50.7257408, 6.5613673 ], [ 50.7257407, 6.5613678 ], [ 50.7257429, 6.5613806 ], [ 50.7257411, 6.561372 ], [ 50.7257406, 6.5613626 ], [ 50.7257422, 6.5613626 ], [ 50.7257418, 6.5613609 ], [ 50.7257413, 6.5613619 ], [ 50.7257407, 6.5613542 ], [ 50.7257438, 6.5613542 ], [ 50.7257431, 6.5613678 ], [ 50.7257468, 6.5613686 ], [ 50.7257469, 6.5613686 ], [ 50.7257497, 6.5613687 ], [ 50.72575, 6.561365 ], [ 50.7257491, 6.561365 ], [ 50.7257482, 6.5613692 ], [ 50.7257477, 6.5613733 ], [ 50.7257471, 6.5613748 ], [ 50.7257482, 6.561377 ], [ 50.7257468, 6.5614157 ], [ 50.7257514, 6.5614157 ], [ 50.725749, 6.5614039 ], [ 50.7257489, 6.56141 ], [ 50.7257473, 6.5614041 ], [ 50.7257468, 6.5614041 ], [ 50.7257461, 6.5614057 ], [ 50.7257445, 6.5614074 ], [ 50.7257434, 6.5614128 ], [ 50.7257436, 6.561408 ], [ 50.7257422, 6.5614017 ], [ 50.7257427, 6.5614051 ], [ 50.7257421, 6.5613975 ], [ 50.7257413, 6.5613995 ], [ 50.7257409, 6.5614024 ], [ 50.7257395, 6.5614024 ], [ 50.7257396, 6.5613972 ], [ 50.7257384, 6.5613972 ], [ 50.7257359, 6.5613985 ], [ 50.7257388, 6.5614049 ], [ 50.7257384, 6.5613994 ], [ 50.725737, 6.5614041 ], [ 50.7257366, 6.5614041 ], [ 50.7257349, 6.5614109 ], [ 50.7257352, 6.5614109 ], [ 50.7257338, 6.5614133 ], [ 50.7257353, 6.5614392 ], [ 50.7257392, 6.5614392 ], [ 50.7257419, 6.5614275 ], [ 50.7257422, 6.5614228 ], [ 50.7257416, 6.5614271 ], [ 50.7257412, 6.5614271 ], [ 50.7257407, 6.561429 ], [ 50.7257413, 6.5614307 ], [ 50.7257424, 6.5614377 ], [ 50.7257418, 6.5614377 ], [ 50.7257401, 6.5614439 ], [ 50.7257419, 6.5614399 ], [ 50.7257409, 6.5614321 ], [ 50.7257402, 6.561436 ], [ 50.7257399, 6.561436 ], [ 50.7257393, 6.5614372 ], [ 50.7257407, 6.5614299 ], [ 50.7257429, 6.5614203 ], [ 50.7257377, 6.5614203 ], [ 50.725737, 6.5614126 ], [ 50.7257362, 6.5614123 ], [ 50.7257358, 6.5614123 ], [ 50.7257363, 6.5614096 ], [ 50.7257341, 6.5614096 ], [ 50.7257319, 6.5614153 ], [ 50.7257363, 6.5614193 ], [ 50.7257359, 6.5614119 ], [ 50.7257356, 6.5614119 ], [ 50.7257353, 6.5614131 ], [ 50.7257349, 6.5614152 ], [ 50.7257362, 6.5614157 ], [ 50.7257349, 6.5614068 ], [ 50.7257353, 6.5614111 ], [ 50.7257346, 6.5614008 ], [ 50.725739, 6.5613997 ], [ 50.7257393, 6.5613997 ], [ 50.725739, 6.5613992 ], [ 50.7257363, 6.5613934 ], [ 50.72574, 6.5614031 ], [ 50.7257392, 6.5614031 ], [ 50.7257417, 6.5614076 ], [ 50.7257405, 6.5614069 ], [ 50.7257396, 6.5614125 ], [ 50.7257424, 6.5614151 ], [ 50.725744, 6.5614022 ], [ 50.7257581, 6.5614032 ], [ 50.7257593, 6.5613376 ], [ 50.7257635, 6.5613264 ], [ 50.7257306, 6.5614412 ], [ 50.7257217, 6.5614586 ], [ 50.725728, 6.5614586 ], [ 50.7257315, 6.561444 ], [ 50.725731, 6.561436 ], [ 50.7257306, 6.561436 ], [ 50.7257329, 6.5614375 ], [ 50.7257357, 6.5614278 ], [ 50.7257351, 6.5614134 ], [ 50.7257344, 6.5614134 ], [ 50.7257387, 6.5614153 ], [ 50.7257378, 6.5614099 ], [ 50.7257375, 6.5614112 ], [ 50.7257367, 6.5614132 ], [ 50.725737, 6.5614122 ], [ 50.7257362, 6.5614046 ], [ 50.7257404, 6.5614073 ], [ 50.7257394, 6.5614021 ], [ 50.7257426, 6.5613998 ], [ 50.7257408, 6.5613998 ], [ 50.7257405, 6.5614048 ], [ 50.7257408, 6.5614009 ], [ 50.7257392, 6.5614009 ], [ 50.7257404, 6.5613923 ], [ 50.7257391, 6.5613947 ], [ 50.7257394, 6.5613947 ], [ 50.7257389, 6.5613895 ], [ 50.7257397, 6.5613916 ], [ 50.7257393, 6.5613871 ], [ 50.7257368, 6.5613881 ], [ 50.7257365, 6.5613841 ], [ 50.7257327, 6.5613837 ], [ 50.7257365, 6.5613996 ], [ 50.7257348, 6.5613932 ], [ 50.7257357, 6.5613918 ], [ 50.7257376, 6.5613918 ], [ 50.7257374, 6.5614121 ], [ 50.7257346, 6.5614133 ], [ 50.7257384, 6.561411 ], [ 50.7257376, 6.561398 ], [ 50.7257422, 6.561398 ], [ 50.7257421, 6.5613899 ], [ 50.725744, 6.5613899 ], [ 50.7257434, 6.5613867 ], [ 50.7257429, 6.5613929 ], [ 50.7257459, 6.5613929 ], [ 50.7257438, 6.5613856 ], [ 50.7257433, 6.5613884 ], [ 50.7257431, 6.5613884 ], [ 50.7257422, 6.5613889 ], [ 50.7257424, 6.5613936 ], [ 50.7257449, 6.5613921 ], [ 50.725744, 6.5613921 ], [ 50.7257448, 6.5613972 ], [ 50.7257446, 6.5613945 ], [ 50.7257461, 6.5613926 ], [ 50.7257449, 6.5613954 ], [ 50.7257444, 6.5613954 ], [ 50.7257436, 6.5613983 ], [ 50.7257479, 6.5613983 ], [ 50.7257467, 6.5613891 ], [ 50.7257462, 6.5613915 ], [ 50.7257453, 6.5613927 ], [ 50.7257486, 6.5613952 ], [ 50.725748, 6.5613858 ], [ 50.725749, 6.5613912 ], [ 50.7257486, 6.5613804 ], [ 50.7257501, 6.5613732 ], [ 50.7257504, 6.5613791 ], [ 50.7257541, 6.5613791 ], [ 50.7257534, 6.561379 ], [ 50.725755, 6.5613862 ], [ 50.7257547, 6.5614042 ], [ 50.7257552, 6.5613875 ], [ 50.7257556, 6.5613875 ], [ 50.7257447, 6.5613562 ], [ 50.7257383, 6.5614406 ], [ 50.7257402, 6.5614406 ], [ 50.7257446, 6.5614406 ], [ 50.7257449, 6.5614266 ], [ 50.7257452, 6.5614266 ], [ 50.725746, 6.5614259 ], [ 50.7257492, 6.5614198 ], [ 50.7257467, 6.5614137 ], [ 50.7257466, 6.561412 ], [ 50.7257459, 6.5614006 ], [ 50.7257491, 6.5613866 ], [ 50.7257487, 6.5613866 ], [ 50.7257522, 6.5613895 ], [ 50.7257526, 6.5613846 ], [ 50.725752, 6.5613857 ], [ 50.7257521, 6.5613847 ], [ 50.7257522, 6.5613847 ], [ 50.7257518, 6.5614007 ], [ 50.7257544, 6.5614044 ], [ 50.7257541, 6.5614022 ], [ 50.7257561, 6.5614058 ], [ 50.7257509, 6.5614016 ], [ 50.7257508, 6.5613935 ], [ 50.7257486, 6.5613921 ], [ 50.7257483, 6.5613958 ], [ 50.7257475, 6.5614044 ], [ 50.725748, 6.5614046 ], [ 50.7257555, 6.5614028 ], [ 50.7257558, 6.5613852 ], [ 50.7257561, 6.5613604 ], [ 50.7257368, 6.5613604 ], [ 50.7257313, 6.5614188 ], [ 50.7257296, 6.561446 ], [ 50.7257301, 6.561446 ], [ 50.7257347, 6.5614391 ], [ 50.7257348, 6.5614277 ], [ 50.7257368, 6.5614175 ], [ 50.7257439, 6.5614175 ], [ 50.725747, 6.5614036 ], [ 50.7257453, 6.5613959 ], [ 50.7257465, 6.5613996 ], [ 50.7257456, 6.5613977 ], [ 50.7257451, 6.5613931 ], [ 50.7257485, 6.5613878 ], [ 50.725748, 6.5613896 ], [ 50.7257501, 6.5613896 ], [ 50.7257494, 6.5613856 ], [ 50.7257491, 6.5613913 ], [ 50.7257506, 6.5613913 ], [ 50.7257498, 6.5613832 ], [ 50.7257489, 6.561385 ], [ 50.7257469, 6.5613964 ], [ 50.7257477, 6.5613964 ], [ 50.7257448, 6.5613857 ], [ 50.7257457, 6.5613899 ], [ 50.7257448, 6.5613819 ], [ 50.7257437, 6.561384 ], [ 50.7257524, 6.561384 ], [ 50.7257569, 6.5613642 ], [ 50.7257613, 6.5613476 ], [ 50.7257631, 6.5613419 ], [ 50.7257658, 6.5613391 ], [ 50.7257669, 6.5613111 ], [ 50.7257663, 6.5613067 ], [ 50.7257685, 6.5613077 ], [ 50.7257624, 6.5613259 ], [ 50.7257387, 6.5614651 ], [ 50.7257379, 6.5614698 ], [ 50.725738, 6.5614717 ], [ 50.7257385, 6.5614726 ], [ 50.7257384, 6.5614595 ], [ 50.7257428, 6.5614633 ], [ 50.7257423, 6.5614486 ], [ 50.7257458, 6.5614432 ], [ 50.7257455, 6.5614432 ], [ 50.7257443, 6.5614419 ], [ 50.7257425, 6.561444 ], [ 50.7257416, 6.5614491 ], [ 50.7257425, 6.5614491 ], [ 50.7257409, 6.5614236 ], [ 50.7257396, 6.5614236 ], [ 50.7257389, 6.5614285 ], [ 50.725744, 6.5614186 ], [ 50.7257434, 6.5614186 ], [ 50.7257432, 6.561423 ], [ 50.7257444, 6.561423 ], [ 50.7257438, 6.5614129 ], [ 50.7257429, 6.5614174 ], [ 50.7257439, 6.5614174 ], [ 50.7257431, 6.5614084 ], [ 50.725742, 6.5614142 ], [ 50.7257458, 6.5614142 ], [ 50.7257446, 6.5614059 ], [ 50.7257426, 6.5614022 ], [ 50.7257432, 6.5614093 ], [ 50.7257414, 6.5614039 ], [ 50.7257407, 6.5614039 ], [ 50.7257435, 6.5614086 ], [ 50.7257422, 6.5613997 ], [ 50.7257404, 6.5614047 ], [ 50.7257458, 6.5614076 ], [ 50.725745, 6.5613969 ], [ 50.7257444, 6.5613991 ], [ 50.7257431, 6.5613947 ], [ 50.7257436, 6.5613982 ], [ 50.7257429, 6.5613937 ], [ 50.7257454, 6.5613957 ], [ 50.7257451, 6.561394 ], [ 50.725747, 6.561394 ], [ 50.7257465, 6.5613935 ], [ 50.7257477, 6.5613935 ], [ 50.725747, 6.5613918 ], [ 50.7257465, 6.5613929 ], [ 50.7257485, 6.561394 ], [ 50.7257486, 6.5613917 ], [ 50.7257407, 6.5613917 ], [ 50.7257384, 6.5614159 ], [ 50.7257389, 6.5614159 ], [ 50.7257378, 6.5614044 ], [ 50.7257373, 6.561407 ], [ 50.7257372, 6.5614084 ], [ 50.7257369, 6.5614101 ], [ 50.725735, 6.5614015 ], [ 50.725738, 6.5614078 ], [ 50.7257368, 6.5614185 ], [ 50.7257387, 6.5614185 ], [ 50.7257386, 6.5614179 ], [ 50.725738, 6.5614185 ], [ 50.7257388, 6.5614198 ], [ 50.7257378, 6.5614107 ], [ 50.7257367, 6.5614107 ], [ 50.7257365, 6.5614128 ], [ 50.7257396, 6.561406 ], [ 50.725744, 6.561406 ], [ 50.7257389, 6.5614178 ], [ 50.7257402, 6.5614178 ], [ 50.7257593, 6.5614058 ], [ 50.7257615, 6.5613585 ], [ 50.7257586, 6.5613187 ], [ 50.7257644, 6.5613074 ], [ 50.7257699, 6.5613074 ], [ 50.7257303, 6.5613113 ], [ 50.725725, 6.561435 ], [ 50.7257248, 6.5614666 ], [ 50.7257267, 6.5614701 ], [ 50.7257287, 6.56146 ], [ 50.7257283, 6.5614508 ], [ 50.7257279, 6.5614506 ], [ 50.725731, 6.561452 ], [ 50.7257375, 6.5614382 ], [ 50.7257477, 6.5614256 ], [ 50.7257458, 6.5614016 ], [ 50.7257469, 6.5614011 ], [ 50.7257453, 6.5614011 ], [ 50.7257445, 6.5614032 ], [ 50.7257423, 6.5613973 ], [ 50.7257396, 6.5613973 ], [ 50.7257423, 6.5614018 ], [ 50.7257399, 6.5613955 ], [ 50.7257411, 6.5614012 ], [ 50.7257478, 6.5613771 ], [ 50.7257533, 6.5613693 ], [ 50.7257551, 6.5613693 ], [ 50.725727, 6.5613573 ], [ 50.7257193, 6.5614568 ], [ 50.7257221, 6.5614708 ], [ 50.7257246, 6.5614542 ], [ 50.7257303, 6.5614232 ], [ 50.7257294, 6.5614093 ], [ 50.7257313, 6.5614093 ], [ 50.725731, 6.5614019 ], [ 50.7257307, 6.5614035 ], [ 50.725732, 6.5614035 ], [ 50.7257315, 6.5613983 ], [ 50.7257339, 6.5614001 ], [ 50.725733, 6.5613956 ], [ 50.7257371, 6.5613954 ], [ 50.7257367, 6.5613954 ], [ 50.7257375, 6.5613983 ], [ 50.7257376, 6.5613978 ], [ 50.7257385, 6.5613978 ], [ 50.7257383, 6.5613975 ], [ 50.7257451, 6.5613982 ], [ 50.725748, 6.5613847 ], [ 50.7257523, 6.5613716 ], [ 50.7257506, 6.5613573 ], [ 50.725755, 6.5613484 ], [ 50.7257468, 6.56135 ], [ 50.7257689, 6.5613794 ], [ 50.7257417, 6.5615331 ], [ 50.7257403, 6.5614858 ], [ 50.7257448, 6.5614904 ], [ 50.7257432, 6.561474 ], [ 50.725744, 6.5614434 ], [ 50.725743, 6.5614434 ], [ 50.7257422, 6.5614587 ], [ 50.7257392, 6.5614587 ], [ 50.7257395, 6.5614752 ], [ 50.7257392, 6.5614752 ], [ 50.7257398, 6.5614788 ], [ 50.7257396, 6.5614642 ], [ 50.7257391, 6.5614645 ], [ 50.7257384, 6.5614557 ], [ 50.7257378, 6.5614557 ], [ 50.7257358, 6.561444 ], [ 50.7257354, 6.561453 ], [ 50.7257394, 6.561453 ], [ 50.7257393, 6.561443 ], [ 50.72574, 6.561437 ], [ 50.725739, 6.561437 ], [ 50.7257399, 6.5614303 ], [ 50.725739, 6.5614303 ], [ 50.7257401, 6.5614258 ], [ 50.7257389, 6.5614258 ], [ 50.7257433, 6.5614334 ], [ 50.7257432, 6.5614236 ], [ 50.7257456, 6.5614293 ], [ 50.7257462, 6.56142 ], [ 50.7257449, 6.5614176 ], [ 50.7257464, 6.5614176 ], [ 50.7257461, 6.5614168 ], [ 50.7257501, 6.561429 ], [ 50.7257508, 6.561418 ], [ 50.7257489, 6.5614169 ], [ 50.7257495, 6.5614239 ], [ 50.725749, 6.5614129 ], [ 50.7257469, 6.5614136 ], [ 50.7257467, 6.5614213 ], [ 50.7257472, 6.5614229 ], [ 50.725747, 6.5614119 ], [ 50.7257461, 6.5614123 ], [ 50.7257463, 6.561423 ], [ 50.725747, 6.561423 ], [ 50.7257468, 6.5614099 ], [ 50.7257465, 6.5614114 ], [ 50.7257609, 6.5613188 ], [ 50.7257627, 6.5613188 ], [ 50.7257685, 6.5612957 ], [ 50.7257736, 6.5613061 ], [ 50.7257674, 6.5613111 ], [ 50.7257669, 6.5613045 ], [ 50.7257467, 6.5613433 ], [ 50.7257301, 6.5614297 ], [ 50.7257298, 6.5614595 ], [ 50.7257309, 6.5614595 ], [ 50.7257306, 6.5614484 ], [ 50.7257318, 6.561448 ], [ 50.7257311, 6.5614421 ], [ 50.725731, 6.5614463 ], [ 50.7257307, 6.5614463 ], [ 50.7257323, 6.5614462 ], [ 50.7257318, 6.5614329 ], [ 50.7257315, 6.5614325 ], [ 50.7257371, 6.561426 ], [ 50.725737, 6.561426 ], [ 50.7257363, 6.5614275 ], [ 50.7257349, 6.5614221 ], [ 50.7257358, 6.5613988 ], [ 50.7257376, 6.5613988 ], [ 50.725743, 6.5614017 ], [ 50.7257423, 6.5613947 ], [ 50.7257405, 6.5613954 ], [ 50.7257406, 6.5613906 ], [ 50.7257375, 6.5613906 ], [ 50.7257426, 6.5613935 ], [ 50.7257427, 6.5613881 ], [ 50.7257429, 6.5613907 ], [ 50.7257423, 6.5613936 ], [ 50.7257416, 6.5613875 ], [ 50.7257399, 6.5613883 ], [ 50.7257389, 6.5613848 ], [ 50.7257383, 6.5613907 ], [ 50.7257384, 6.5613907 ], [ 50.7257377, 6.5613826 ], [ 50.7257359, 6.5613831 ], [ 50.7257355, 6.561386 ], [ 50.725736, 6.5613856 ], [ 50.7257346, 6.5614099 ], [ 50.7257341, 6.5614099 ], [ 50.725734, 6.5614014 ], [ 50.7257331, 6.5613964 ], [ 50.7257385, 6.5613996 ], [ 50.725738, 6.5613952 ], [ 50.7257383, 6.5614001 ], [ 50.7257379, 6.5613934 ], [ 50.7257377, 6.5613948 ], [ 50.7257374, 6.5613963 ], [ 50.7257361, 6.5613921 ], [ 50.7257405, 6.5613892 ], [ 50.7257408, 6.5613908 ], [ 50.725743, 6.5613908 ], [ 50.7257428, 6.5613945 ], [ 50.7257424, 6.5613967 ], [ 50.7257428, 6.5613964 ], [ 50.7257456, 6.5613961 ], [ 50.7257445, 6.5613944 ], [ 50.725748, 6.5613971 ], [ 50.7257479, 6.5613937 ], [ 50.7257434, 6.5613943 ], [ 50.7257409, 6.5613881 ], [ 50.7257438, 6.5613923 ], [ 50.7257435, 6.5613957 ], [ 50.7257367, 6.561402 ], [ 50.7257374, 6.561402 ], [ 50.7257292, 6.5613914 ], [ 50.7257148, 6.5614141 ], [ 50.7257129, 6.5614553 ], [ 50.7257218, 6.5614566 ], [ 50.7257233, 6.5614566 ], [ 50.7257226, 6.5614486 ], [ 50.7257222, 6.5614487 ], [ 50.7257245, 6.5614487 ], [ 50.7257241, 6.5614434 ], [ 50.7257275, 6.5614438 ], [ 50.7257255, 6.5614389 ], [ 50.7257189, 6.5614425 ], [ 50.7257207, 6.561447 ], [ 50.7257203, 6.5614397 ], [ 50.7257231, 6.5614406 ], [ 50.7257228, 6.5614314 ], [ 50.7257275, 6.5614336 ], [ 50.7257293, 6.5614274 ], [ 50.7257286, 6.5614244 ], [ 50.7257335, 6.561418 ], [ 50.7257374, 6.561418 ], [ 50.7257503, 6.5614111 ], [ 50.7257562, 6.5613801 ], [ 50.7257588, 6.5613397 ], [ 50.72576, 6.5613397 ], [ 50.7257588, 6.5613416 ], [ 50.7257216, 6.5613371 ], [ 50.7257187, 6.5614378 ], [ 50.725727, 6.5614257 ], [ 50.7257267, 6.5614257 ], [ 50.7257304, 6.561423 ], [ 50.7257296, 6.5614256 ], [ 50.7257307, 6.5614256 ], [ 50.7257306, 6.56142 ], [ 50.7257308, 6.5614194 ], [ 50.7257302, 6.5614206 ], [ 50.7257312, 6.561418 ], [ 50.7257313, 6.561418 ], [ 50.7257302, 6.561417 ], [ 50.7257299, 6.5614118 ], [ 50.7257287, 6.5614159 ], [ 50.7257323, 6.5614159 ], [ 50.7257317, 6.5614116 ], [ 50.7257315, 6.5614116 ], [ 50.7257311, 6.5614135 ], [ 50.7257341, 6.5614138 ], [ 50.7257338, 6.5614084 ], [ 50.7257334, 6.5614093 ], [ 50.7257332, 6.561411 ], [ 50.7257354, 6.5614083 ], [ 50.7257344, 6.5614084 ], [ 50.7257343, 6.561403 ], [ 50.725734, 6.5614026 ], [ 50.7257332, 6.5614 ], [ 50.7257377, 6.5614007 ], [ 50.7257496, 6.5613905 ], [ 50.7257587, 6.5613518 ], [ 50.7257572, 6.5613376 ], [ 50.7257588, 6.5613135 ], [ 50.7257473, 6.5613135 ], [ 50.7257278, 6.5613529 ], [ 50.7257201, 6.5614296 ], [ 50.725727, 6.5614341 ], [ 50.7257271, 6.5614247 ], [ 50.7257264, 6.5614247 ], [ 50.7257306, 6.5614255 ], [ 50.7257302, 6.5614157 ], [ 50.7257314, 6.5614167 ], [ 50.7257309, 6.5614107 ], [ 50.7257352, 6.5614121 ], [ 50.7257348, 6.5614065 ], [ 50.7257346, 6.561408 ], [ 50.7257363, 6.561408 ], [ 50.7257362, 6.5614046 ], [ 50.7257308, 6.5614043 ], [ 50.7257303, 6.5614119 ], [ 50.7257379, 6.5613956 ], [ 50.7257482, 6.5613956 ], [ 50.7257565, 6.5613568 ], [ 50.7257596, 6.5613319 ], [ 50.7257631, 6.5613237 ], [ 50.725765, 6.5613102 ], [ 50.7257293, 6.5613965 ], [ 50.7257156, 6.5613965 ], [ 50.7257201, 6.5614473 ], [ 50.7257224, 6.5614671 ], [ 50.7257222, 6.5614605 ], [ 50.7257245, 6.561464 ], [ 50.7257247, 6.5614547 ], [ 50.725728, 6.5614545 ], [ 50.7257285, 6.5614463 ], [ 50.7257286, 6.5614499 ], [ 50.7257297, 6.5614499 ], [ 50.7257294, 6.5614426 ], [ 50.7257291, 6.5614424 ], [ 50.7257302, 6.5614436 ], [ 50.7257297, 6.5614347 ], [ 50.7257315, 6.5614345 ], [ 50.7257313, 6.5614291 ], [ 50.7257339, 6.5614291 ], [ 50.7257343, 6.5614244 ], [ 50.7257357, 6.5614244 ], [ 50.7257342, 6.5614217 ], [ 50.7257334, 6.5614165 ], [ 50.7257491, 6.561391 ], [ 50.725758, 6.5613755 ], [ 50.7257589, 6.5613755 ], [ 50.7257599, 6.5613718 ], [ 50.7257634, 6.5613541 ], [ 50.7257621, 6.5613575 ], [ 50.7257642, 6.5613206 ], [ 50.7257649, 6.5613206 ], [ 50.7257628, 6.5613234 ], [ 50.7257659, 6.561325 ], [ 50.7257666, 6.5613307 ], [ 50.725765, 6.5613307 ], [ 50.7257682, 6.5613197 ], [ 50.7257698, 6.5613269 ], [ 50.7257725, 6.5613269 ], [ 50.7257715, 6.5613273 ], [ 50.7257705, 6.5613209 ], [ 50.7257694, 6.5613324 ], [ 50.7257697, 6.5613306 ], [ 50.7257658, 6.5613148 ], [ 50.7257644, 6.5613148 ], [ 50.7257654, 6.5613099 ], [ 50.7257692, 6.5613099 ], [ 50.7257691, 6.5613046 ], [ 50.7257698, 6.5613017 ], [ 50.7257663, 6.5613001 ], [ 50.7257664, 6.5612945 ], [ 50.7257685, 6.5613148 ], [ 50.7257689, 6.5613148 ], [ 50.7257698, 6.5613094 ], [ 50.7257679, 6.5613256 ], [ 50.7257664, 6.5613123 ], [ 50.7257667, 6.5613029 ] ], "options": { "color": "#3d3d5c", "weight": 3 } } ] }so würde das dann aussehen
2026-07-03T12:00:00.000Z wäre das datum/uhrzeit im isoformat
iso format wird immer in utc notiert. javascript kann dann daraus die lokale zeit ableiten (sofern das betriebssystem die korrekte zeit und zeitzone eingestellt hat). wenn der iobroker sonst auch die richtige zeit anzeigt, ist das auch der fall.deine obige struktur habe ich einfach nur unter dem attribut map (3.zeile) eingefügt
allerdings musste ich dem polyline objekt noch"iobOptions": { "fitBounds": true }hinzufügen, sonst würde nach auswahl die map nicht automatisch dort hinzoomen
{ "2026-07-03T12:00:00.000Z": { "map": { "marker": [ { "latlng": [50.7257667, 6.5613029], "options": { "icon": "honda", "title": "Default" }, "tooltip": "Hover me" } ], "icons": { "honda": { "iconUrl": "/vis-2.0/SmartHome/tanken/honda_sv1.png", "iconSize": [45, 30], "iconAnchor": [15, 30], "popupAnchor": [0, -26], "shadowSize": [36, 36], "shadowAnchor": [15, 30] } }, "polyline": [ { "latlng": [ [50.725776, 6.561582], [50.7257647, 6.5613146], [50.7257207, 6.5613834], [50.7257204, 6.561467], [50.7257319, 6.561467], [50.7257348, 6.5614284], [50.7257402, 6.5614092], [50.7257427, 6.5613879], [50.725742, 6.5613829], [50.7257447, 6.5613829], [50.7257432, 6.5613837], [50.725747, 6.5613837], [50.7257438, 6.5613733], [50.725743, 6.5613781], [50.725744, 6.5613673], [50.7257428, 6.561373], [50.725742, 6.561373], [50.7257468, 6.5613768], [50.7257446, 6.5613679], [50.7257467, 6.5613748], [50.725748, 6.5613692], [50.7257463, 6.5613692], [50.7257446, 6.5613656], [50.725745, 6.5613711], [50.7257441, 6.5613618], [50.7257436, 6.5613649], [50.7257428, 6.5613686], [50.725742, 6.561369], [50.7257409, 6.5613735], [50.7257416, 6.5613673], [50.7257408, 6.5613673], [50.7257407, 6.5613678], [50.7257429, 6.5613806], [50.7257411, 6.561372], [50.7257406, 6.5613626], [50.7257422, 6.5613626], [50.7257418, 6.5613609], [50.7257413, 6.5613619], [50.7257407, 6.5613542], [50.7257438, 6.5613542], [50.7257431, 6.5613678], [50.7257468, 6.5613686], [50.7257469, 6.5613686], [50.7257497, 6.5613687], [50.72575, 6.561365], [50.7257491, 6.561365], [50.7257482, 6.5613692], [50.7257477, 6.5613733], [50.7257471, 6.5613748], [50.7257482, 6.561377], [50.7257468, 6.5614157], [50.7257514, 6.5614157], [50.725749, 6.5614039], [50.7257489, 6.56141], [50.7257473, 6.5614041], [50.7257468, 6.5614041], [50.7257461, 6.5614057], [50.7257445, 6.5614074], [50.7257434, 6.5614128], [50.7257436, 6.561408], [50.7257422, 6.5614017], [50.7257427, 6.5614051], [50.7257421, 6.5613975], [50.7257413, 6.5613995], [50.7257409, 6.5614024], [50.7257395, 6.5614024], [50.7257396, 6.5613972], [50.7257384, 6.5613972], [50.7257359, 6.5613985], [50.7257388, 6.5614049], [50.7257384, 6.5613994], [50.725737, 6.5614041], [50.7257366, 6.5614041], [50.7257349, 6.5614109], [50.7257352, 6.5614109], [50.7257338, 6.5614133], [50.7257353, 6.5614392], [50.7257392, 6.5614392], [50.7257419, 6.5614275], [50.7257422, 6.5614228], [50.7257416, 6.5614271], [50.7257412, 6.5614271], [50.7257407, 6.561429], [50.7257413, 6.5614307], [50.7257424, 6.5614377], [50.7257418, 6.5614377], [50.7257401, 6.5614439], [50.7257419, 6.5614399], [50.7257409, 6.5614321], [50.7257402, 6.561436], [50.7257399, 6.561436], [50.7257393, 6.5614372], [50.7257407, 6.5614299], [50.7257429, 6.5614203], [50.7257377, 6.5614203], [50.725737, 6.5614126], [50.7257362, 6.5614123], [50.7257358, 6.5614123], [50.7257363, 6.5614096], [50.7257341, 6.5614096], [50.7257319, 6.5614153], [50.7257363, 6.5614193], [50.7257359, 6.5614119], [50.7257356, 6.5614119], [50.7257353, 6.5614131], [50.7257349, 6.5614152], [50.7257362, 6.5614157], [50.7257349, 6.5614068], [50.7257353, 6.5614111], [50.7257346, 6.5614008], [50.725739, 6.5613997], [50.7257393, 6.5613997], [50.725739, 6.5613992], [50.7257363, 6.5613934], [50.72574, 6.5614031], [50.7257392, 6.5614031], [50.7257417, 6.5614076], [50.7257405, 6.5614069], [50.7257396, 6.5614125], [50.7257424, 6.5614151], [50.725744, 6.5614022], [50.7257581, 6.5614032], [50.7257593, 6.5613376], [50.7257635, 6.5613264], [50.7257306, 6.5614412], [50.7257217, 6.5614586], [50.725728, 6.5614586], [50.7257315, 6.561444], [50.725731, 6.561436], [50.7257306, 6.561436], [50.7257329, 6.5614375], [50.7257357, 6.5614278], [50.7257351, 6.5614134], [50.7257344, 6.5614134], [50.7257387, 6.5614153], [50.7257378, 6.5614099], [50.7257375, 6.5614112], [50.7257367, 6.5614132], [50.725737, 6.5614122], [50.7257362, 6.5614046], [50.7257404, 6.5614073], [50.7257394, 6.5614021], [50.7257426, 6.5613998], [50.7257408, 6.5613998], [50.7257405, 6.5614048], [50.7257408, 6.5614009], [50.7257392, 6.5614009], [50.7257404, 6.5613923], [50.7257391, 6.5613947], [50.7257394, 6.5613947], [50.7257389, 6.5613895], [50.7257397, 6.5613916], [50.7257393, 6.5613871], [50.7257368, 6.5613881], [50.7257365, 6.5613841], [50.7257327, 6.5613837], [50.7257365, 6.5613996], [50.7257348, 6.5613932], [50.7257357, 6.5613918], [50.7257376, 6.5613918], [50.7257374, 6.5614121], [50.7257346, 6.5614133], [50.7257384, 6.561411], [50.7257376, 6.561398], [50.7257422, 6.561398], [50.7257421, 6.5613899], [50.725744, 6.5613899], [50.7257434, 6.5613867], [50.7257429, 6.5613929], [50.7257459, 6.5613929], [50.7257438, 6.5613856], [50.7257433, 6.5613884], [50.7257431, 6.5613884], [50.7257422, 6.5613889], [50.7257424, 6.5613936], [50.7257449, 6.5613921], [50.725744, 6.5613921], [50.7257448, 6.5613972], [50.7257446, 6.5613945], [50.7257461, 6.5613926], [50.7257449, 6.5613954], [50.7257444, 6.5613954], [50.7257436, 6.5613983], [50.7257479, 6.5613983], [50.7257467, 6.5613891], [50.7257462, 6.5613915], [50.7257453, 6.5613927], [50.7257486, 6.5613952], [50.725748, 6.5613858], [50.725749, 6.5613912], [50.7257486, 6.5613804], [50.7257501, 6.5613732], [50.7257504, 6.5613791], [50.7257541, 6.5613791], [50.7257534, 6.561379], [50.725755, 6.5613862], [50.7257547, 6.5614042], [50.7257552, 6.5613875], [50.7257556, 6.5613875], [50.7257447, 6.5613562], [50.7257383, 6.5614406], [50.7257402, 6.5614406], [50.7257446, 6.5614406], [50.7257449, 6.5614266], [50.7257452, 6.5614266], [50.725746, 6.5614259], [50.7257492, 6.5614198], [50.7257467, 6.5614137], [50.7257466, 6.561412], [50.7257459, 6.5614006], [50.7257491, 6.5613866], [50.7257487, 6.5613866], [50.7257522, 6.5613895], [50.7257526, 6.5613846], [50.725752, 6.5613857], [50.7257521, 6.5613847], [50.7257522, 6.5613847], [50.7257518, 6.5614007], [50.7257544, 6.5614044], [50.7257541, 6.5614022], [50.7257561, 6.5614058], [50.7257509, 6.5614016], [50.7257508, 6.5613935], [50.7257486, 6.5613921], [50.7257483, 6.5613958], [50.7257475, 6.5614044], [50.725748, 6.5614046], [50.7257555, 6.5614028], [50.7257558, 6.5613852], [50.7257561, 6.5613604], [50.7257368, 6.5613604], [50.7257313, 6.5614188], [50.7257296, 6.561446], [50.7257301, 6.561446], [50.7257347, 6.5614391], [50.7257348, 6.5614277], [50.7257368, 6.5614175], [50.7257439, 6.5614175], [50.725747, 6.5614036], [50.7257453, 6.5613959], [50.7257465, 6.5613996], [50.7257456, 6.5613977], [50.7257451, 6.5613931], [50.7257485, 6.5613878], [50.725748, 6.5613896], [50.7257501, 6.5613896], [50.7257494, 6.5613856], [50.7257491, 6.5613913], [50.7257506, 6.5613913], [50.7257498, 6.5613832], [50.7257489, 6.561385], [50.7257469, 6.5613964], [50.7257477, 6.5613964], [50.7257448, 6.5613857], [50.7257457, 6.5613899], [50.7257448, 6.5613819], [50.7257437, 6.561384], [50.7257524, 6.561384], [50.7257569, 6.5613642], [50.7257613, 6.5613476], [50.7257631, 6.5613419], [50.7257658, 6.5613391], [50.7257669, 6.5613111], [50.7257663, 6.5613067], [50.7257685, 6.5613077], [50.7257624, 6.5613259], [50.7257387, 6.5614651], [50.7257379, 6.5614698], [50.725738, 6.5614717], [50.7257385, 6.5614726], [50.7257384, 6.5614595], [50.7257428, 6.5614633], [50.7257423, 6.5614486], [50.7257458, 6.5614432], [50.7257455, 6.5614432], [50.7257443, 6.5614419], [50.7257425, 6.561444], [50.7257416, 6.5614491], [50.7257425, 6.5614491], [50.7257409, 6.5614236], [50.7257396, 6.5614236], [50.7257389, 6.5614285], [50.725744, 6.5614186], [50.7257434, 6.5614186], [50.7257432, 6.561423], [50.7257444, 6.561423], [50.7257438, 6.5614129], [50.7257429, 6.5614174], [50.7257439, 6.5614174], [50.7257431, 6.5614084], [50.725742, 6.5614142], [50.7257458, 6.5614142], [50.7257446, 6.5614059], [50.7257426, 6.5614022], [50.7257432, 6.5614093], [50.7257414, 6.5614039], [50.7257407, 6.5614039], [50.7257435, 6.5614086], [50.7257422, 6.5613997], [50.7257404, 6.5614047], [50.7257458, 6.5614076], [50.725745, 6.5613969], [50.7257444, 6.5613991], [50.7257431, 6.5613947], [50.7257436, 6.5613982], [50.7257429, 6.5613937], [50.7257454, 6.5613957], [50.7257451, 6.561394], [50.725747, 6.561394], [50.7257465, 6.5613935], [50.7257477, 6.5613935], [50.725747, 6.5613918], [50.7257465, 6.5613929], [50.7257485, 6.561394], [50.7257486, 6.5613917], [50.7257407, 6.5613917], [50.7257384, 6.5614159], [50.7257389, 6.5614159], [50.7257378, 6.5614044], [50.7257373, 6.561407], [50.7257372, 6.5614084], [50.7257369, 6.5614101], [50.725735, 6.5614015], [50.725738, 6.5614078], [50.7257368, 6.5614185], [50.7257387, 6.5614185], [50.7257386, 6.5614179], [50.725738, 6.5614185], [50.7257388, 6.5614198], [50.7257378, 6.5614107], [50.7257367, 6.5614107], [50.7257365, 6.5614128], [50.7257396, 6.561406], [50.725744, 6.561406], [50.7257389, 6.5614178], [50.7257402, 6.5614178], [50.7257593, 6.5614058], [50.7257615, 6.5613585], [50.7257586, 6.5613187], [50.7257644, 6.5613074], [50.7257699, 6.5613074], [50.7257303, 6.5613113], [50.725725, 6.561435], [50.7257248, 6.5614666], [50.7257267, 6.5614701], [50.7257287, 6.56146], [50.7257283, 6.5614508], [50.7257279, 6.5614506], [50.725731, 6.561452], [50.7257375, 6.5614382], [50.7257477, 6.5614256], [50.7257458, 6.5614016], [50.7257469, 6.5614011], [50.7257453, 6.5614011], [50.7257445, 6.5614032], [50.7257423, 6.5613973], [50.7257396, 6.5613973], [50.7257423, 6.5614018], [50.7257399, 6.5613955], [50.7257411, 6.5614012], [50.7257478, 6.5613771], [50.7257533, 6.5613693], [50.7257551, 6.5613693], [50.725727, 6.5613573], [50.7257193, 6.5614568], [50.7257221, 6.5614708], [50.7257246, 6.5614542], [50.7257303, 6.5614232], [50.7257294, 6.5614093], [50.7257313, 6.5614093], [50.725731, 6.5614019], [50.7257307, 6.5614035], [50.725732, 6.5614035], [50.7257315, 6.5613983], [50.7257339, 6.5614001], [50.725733, 6.5613956], [50.7257371, 6.5613954], [50.7257367, 6.5613954], [50.7257375, 6.5613983], [50.7257376, 6.5613978], [50.7257385, 6.5613978], [50.7257383, 6.5613975], [50.7257451, 6.5613982], [50.725748, 6.5613847], [50.7257523, 6.5613716], [50.7257506, 6.5613573], [50.725755, 6.5613484], [50.7257468, 6.56135], [50.7257689, 6.5613794], [50.7257417, 6.5615331], [50.7257403, 6.5614858], [50.7257448, 6.5614904], [50.7257432, 6.561474], [50.725744, 6.5614434], [50.725743, 6.5614434], [50.7257422, 6.5614587], [50.7257392, 6.5614587], [50.7257395, 6.5614752], [50.7257392, 6.5614752], [50.7257398, 6.5614788], [50.7257396, 6.5614642], [50.7257391, 6.5614645], [50.7257384, 6.5614557], [50.7257378, 6.5614557], [50.7257358, 6.561444], [50.7257354, 6.561453], [50.7257394, 6.561453], [50.7257393, 6.561443], [50.72574, 6.561437], [50.725739, 6.561437], [50.7257399, 6.5614303], [50.725739, 6.5614303], [50.7257401, 6.5614258], [50.7257389, 6.5614258], [50.7257433, 6.5614334], [50.7257432, 6.5614236], [50.7257456, 6.5614293], [50.7257462, 6.56142], [50.7257449, 6.5614176], [50.7257464, 6.5614176], [50.7257461, 6.5614168], [50.7257501, 6.561429], [50.7257508, 6.561418], [50.7257489, 6.5614169], [50.7257495, 6.5614239], [50.725749, 6.5614129], [50.7257469, 6.5614136], [50.7257467, 6.5614213], [50.7257472, 6.5614229], [50.725747, 6.5614119], [50.7257461, 6.5614123], [50.7257463, 6.561423], [50.725747, 6.561423], [50.7257468, 6.5614099], [50.7257465, 6.5614114], [50.7257609, 6.5613188], [50.7257627, 6.5613188], [50.7257685, 6.5612957], [50.7257736, 6.5613061], [50.7257674, 6.5613111], [50.7257669, 6.5613045], [50.7257467, 6.5613433], [50.7257301, 6.5614297], [50.7257298, 6.5614595], [50.7257309, 6.5614595], [50.7257306, 6.5614484], [50.7257318, 6.561448], [50.7257311, 6.5614421], [50.725731, 6.5614463], [50.7257307, 6.5614463], [50.7257323, 6.5614462], [50.7257318, 6.5614329], [50.7257315, 6.5614325], [50.7257371, 6.561426], [50.725737, 6.561426], [50.7257363, 6.5614275], [50.7257349, 6.5614221], [50.7257358, 6.5613988], [50.7257376, 6.5613988], [50.725743, 6.5614017], [50.7257423, 6.5613947], [50.7257405, 6.5613954], [50.7257406, 6.5613906], [50.7257375, 6.5613906], [50.7257426, 6.5613935], [50.7257427, 6.5613881], [50.7257429, 6.5613907], [50.7257423, 6.5613936], [50.7257416, 6.5613875], [50.7257399, 6.5613883], [50.7257389, 6.5613848], [50.7257383, 6.5613907], [50.7257384, 6.5613907], [50.7257377, 6.5613826], [50.7257359, 6.5613831], [50.7257355, 6.561386], [50.725736, 6.5613856], [50.7257346, 6.5614099], [50.7257341, 6.5614099], [50.725734, 6.5614014], [50.7257331, 6.5613964], [50.7257385, 6.5613996], [50.725738, 6.5613952], [50.7257383, 6.5614001], [50.7257379, 6.5613934], [50.7257377, 6.5613948], [50.7257374, 6.5613963], [50.7257361, 6.5613921], [50.7257405, 6.5613892], [50.7257408, 6.5613908], [50.725743, 6.5613908], [50.7257428, 6.5613945], [50.7257424, 6.5613967], [50.7257428, 6.5613964], [50.7257456, 6.5613961], [50.7257445, 6.5613944], [50.725748, 6.5613971], [50.7257479, 6.5613937], [50.7257434, 6.5613943], [50.7257409, 6.5613881], [50.7257438, 6.5613923], [50.7257435, 6.5613957], [50.7257367, 6.561402], [50.7257374, 6.561402], [50.7257292, 6.5613914], [50.7257148, 6.5614141], [50.7257129, 6.5614553], [50.7257218, 6.5614566], [50.7257233, 6.5614566], [50.7257226, 6.5614486], [50.7257222, 6.5614487], [50.7257245, 6.5614487], [50.7257241, 6.5614434], [50.7257275, 6.5614438], [50.7257255, 6.5614389], [50.7257189, 6.5614425], [50.7257207, 6.561447], [50.7257203, 6.5614397], [50.7257231, 6.5614406], [50.7257228, 6.5614314], [50.7257275, 6.5614336], [50.7257293, 6.5614274], [50.7257286, 6.5614244], [50.7257335, 6.561418], [50.7257374, 6.561418], [50.7257503, 6.5614111], [50.7257562, 6.5613801], [50.7257588, 6.5613397], [50.72576, 6.5613397], [50.7257588, 6.5613416], [50.7257216, 6.5613371], [50.7257187, 6.5614378], [50.725727, 6.5614257], [50.7257267, 6.5614257], [50.7257304, 6.561423], [50.7257296, 6.5614256], [50.7257307, 6.5614256], [50.7257306, 6.56142], [50.7257308, 6.5614194], [50.7257302, 6.5614206], [50.7257312, 6.561418], [50.7257313, 6.561418], [50.7257302, 6.561417], [50.7257299, 6.5614118], [50.7257287, 6.5614159], [50.7257323, 6.5614159], [50.7257317, 6.5614116], [50.7257315, 6.5614116], [50.7257311, 6.5614135], [50.7257341, 6.5614138], [50.7257338, 6.5614084], [50.7257334, 6.5614093], [50.7257332, 6.561411], [50.7257354, 6.5614083], [50.7257344, 6.5614084], [50.7257343, 6.561403], [50.725734, 6.5614026], [50.7257332, 6.5614], [50.7257377, 6.5614007], [50.7257496, 6.5613905], [50.7257587, 6.5613518], [50.7257572, 6.5613376], [50.7257588, 6.5613135], [50.7257473, 6.5613135], [50.7257278, 6.5613529], [50.7257201, 6.5614296], [50.725727, 6.5614341], [50.7257271, 6.5614247], [50.7257264, 6.5614247], [50.7257306, 6.5614255], [50.7257302, 6.5614157], [50.7257314, 6.5614167], [50.7257309, 6.5614107], [50.7257352, 6.5614121], [50.7257348, 6.5614065], [50.7257346, 6.561408], [50.7257363, 6.561408], [50.7257362, 6.5614046], [50.7257308, 6.5614043], [50.7257303, 6.5614119], [50.7257379, 6.5613956], [50.7257482, 6.5613956], [50.7257565, 6.5613568], [50.7257596, 6.5613319], [50.7257631, 6.5613237], [50.725765, 6.5613102], [50.7257293, 6.5613965], [50.7257156, 6.5613965], [50.7257201, 6.5614473], [50.7257224, 6.5614671], [50.7257222, 6.5614605], [50.7257245, 6.561464], [50.7257247, 6.5614547], [50.725728, 6.5614545], [50.7257285, 6.5614463], [50.7257286, 6.5614499], [50.7257297, 6.5614499], [50.7257294, 6.5614426], [50.7257291, 6.5614424], [50.7257302, 6.5614436], [50.7257297, 6.5614347], [50.7257315, 6.5614345], [50.7257313, 6.5614291], [50.7257339, 6.5614291], [50.7257343, 6.5614244], [50.7257357, 6.5614244], [50.7257342, 6.5614217], [50.7257334, 6.5614165], [50.7257491, 6.561391], [50.725758, 6.5613755], [50.7257589, 6.5613755], [50.7257599, 6.5613718], [50.7257634, 6.5613541], [50.7257621, 6.5613575], [50.7257642, 6.5613206], [50.7257649, 6.5613206], [50.7257628, 6.5613234], [50.7257659, 6.561325], [50.7257666, 6.5613307], [50.725765, 6.5613307], [50.7257682, 6.5613197], [50.7257698, 6.5613269], [50.7257725, 6.5613269], [50.7257715, 6.5613273], [50.7257705, 6.5613209], [50.7257694, 6.5613324], [50.7257697, 6.5613306], [50.7257658, 6.5613148], [50.7257644, 6.5613148], [50.7257654, 6.5613099], [50.7257692, 6.5613099], [50.7257691, 6.5613046], [50.7257698, 6.5613017], [50.7257663, 6.5613001], [50.7257664, 6.5612945], [50.7257685, 6.5613148], [50.7257689, 6.5613148], [50.7257698, 6.5613094], [50.7257679, 6.5613256], [50.7257664, 6.5613123], [50.7257667, 6.5613029] ], "options": { "color": "#3d3d5c", "weight": 3 }, "iobOptions": { "fitBounds": true } } ] } } }
wie erstellst du das json? blockly/javascript?
-
@oliverio so sieht mein json jetzt für heute aus. War allerdings auch nur eine Fahrt kurz hin und wieder zurück.
Wie müsste denn jetzt noch die Zeit für den History-Teil da eingebaut werden?
{ "marker": [ { "latlng": [ 50.7257667, 6.5613029 ], "options": { "icon": "honda", "title": "Default" }, "tooltip": "Hover me" } ], "icons": { "honda": { "iconUrl": "/vis-2.0/SmartHome/tanken/honda_sv1.png", "iconSize": [ 45, 30 ], "iconAnchor": [ 15, 30 ], "popupAnchor": [ 0, -26 ], "shadowSize": [ 36, 36 ], "shadowAnchor": [ 15, 30 ] } }, "polyline": [ { "latlng": [ [ 50.725776, 6.561582 ], [ 50.7257647, 6.5613146 ], [ 50.7257207, 6.5613834 ], [ 50.7257204, 6.561467 ], [ 50.7257319, 6.561467 ], [ 50.7257348, 6.5614284 ], [ 50.7257402, 6.5614092 ], [ 50.7257427, 6.5613879 ], [ 50.725742, 6.5613829 ], [ 50.7257447, 6.5613829 ], [ 50.7257432, 6.5613837 ], [ 50.725747, 6.5613837 ], [ 50.7257438, 6.5613733 ], [ 50.725743, 6.5613781 ], [ 50.725744, 6.5613673 ], [ 50.7257428, 6.561373 ], [ 50.725742, 6.561373 ], [ 50.7257468, 6.5613768 ], [ 50.7257446, 6.5613679 ], [ 50.7257467, 6.5613748 ], [ 50.725748, 6.5613692 ], [ 50.7257463, 6.5613692 ], [ 50.7257446, 6.5613656 ], [ 50.725745, 6.5613711 ], [ 50.7257441, 6.5613618 ], [ 50.7257436, 6.5613649 ], [ 50.7257428, 6.5613686 ], [ 50.725742, 6.561369 ], [ 50.7257409, 6.5613735 ], [ 50.7257416, 6.5613673 ], [ 50.7257408, 6.5613673 ], [ 50.7257407, 6.5613678 ], [ 50.7257429, 6.5613806 ], [ 50.7257411, 6.561372 ], [ 50.7257406, 6.5613626 ], [ 50.7257422, 6.5613626 ], [ 50.7257418, 6.5613609 ], [ 50.7257413, 6.5613619 ], [ 50.7257407, 6.5613542 ], [ 50.7257438, 6.5613542 ], [ 50.7257431, 6.5613678 ], [ 50.7257468, 6.5613686 ], [ 50.7257469, 6.5613686 ], [ 50.7257497, 6.5613687 ], [ 50.72575, 6.561365 ], [ 50.7257491, 6.561365 ], [ 50.7257482, 6.5613692 ], [ 50.7257477, 6.5613733 ], [ 50.7257471, 6.5613748 ], [ 50.7257482, 6.561377 ], [ 50.7257468, 6.5614157 ], [ 50.7257514, 6.5614157 ], [ 50.725749, 6.5614039 ], [ 50.7257489, 6.56141 ], [ 50.7257473, 6.5614041 ], [ 50.7257468, 6.5614041 ], [ 50.7257461, 6.5614057 ], [ 50.7257445, 6.5614074 ], [ 50.7257434, 6.5614128 ], [ 50.7257436, 6.561408 ], [ 50.7257422, 6.5614017 ], [ 50.7257427, 6.5614051 ], [ 50.7257421, 6.5613975 ], [ 50.7257413, 6.5613995 ], [ 50.7257409, 6.5614024 ], [ 50.7257395, 6.5614024 ], [ 50.7257396, 6.5613972 ], [ 50.7257384, 6.5613972 ], [ 50.7257359, 6.5613985 ], [ 50.7257388, 6.5614049 ], [ 50.7257384, 6.5613994 ], [ 50.725737, 6.5614041 ], [ 50.7257366, 6.5614041 ], [ 50.7257349, 6.5614109 ], [ 50.7257352, 6.5614109 ], [ 50.7257338, 6.5614133 ], [ 50.7257353, 6.5614392 ], [ 50.7257392, 6.5614392 ], [ 50.7257419, 6.5614275 ], [ 50.7257422, 6.5614228 ], [ 50.7257416, 6.5614271 ], [ 50.7257412, 6.5614271 ], [ 50.7257407, 6.561429 ], [ 50.7257413, 6.5614307 ], [ 50.7257424, 6.5614377 ], [ 50.7257418, 6.5614377 ], [ 50.7257401, 6.5614439 ], [ 50.7257419, 6.5614399 ], [ 50.7257409, 6.5614321 ], [ 50.7257402, 6.561436 ], [ 50.7257399, 6.561436 ], [ 50.7257393, 6.5614372 ], [ 50.7257407, 6.5614299 ], [ 50.7257429, 6.5614203 ], [ 50.7257377, 6.5614203 ], [ 50.725737, 6.5614126 ], [ 50.7257362, 6.5614123 ], [ 50.7257358, 6.5614123 ], [ 50.7257363, 6.5614096 ], [ 50.7257341, 6.5614096 ], [ 50.7257319, 6.5614153 ], [ 50.7257363, 6.5614193 ], [ 50.7257359, 6.5614119 ], [ 50.7257356, 6.5614119 ], [ 50.7257353, 6.5614131 ], [ 50.7257349, 6.5614152 ], [ 50.7257362, 6.5614157 ], [ 50.7257349, 6.5614068 ], [ 50.7257353, 6.5614111 ], [ 50.7257346, 6.5614008 ], [ 50.725739, 6.5613997 ], [ 50.7257393, 6.5613997 ], [ 50.725739, 6.5613992 ], [ 50.7257363, 6.5613934 ], [ 50.72574, 6.5614031 ], [ 50.7257392, 6.5614031 ], [ 50.7257417, 6.5614076 ], [ 50.7257405, 6.5614069 ], [ 50.7257396, 6.5614125 ], [ 50.7257424, 6.5614151 ], [ 50.725744, 6.5614022 ], [ 50.7257581, 6.5614032 ], [ 50.7257593, 6.5613376 ], [ 50.7257635, 6.5613264 ], [ 50.7257306, 6.5614412 ], [ 50.7257217, 6.5614586 ], [ 50.725728, 6.5614586 ], [ 50.7257315, 6.561444 ], [ 50.725731, 6.561436 ], [ 50.7257306, 6.561436 ], [ 50.7257329, 6.5614375 ], [ 50.7257357, 6.5614278 ], [ 50.7257351, 6.5614134 ], [ 50.7257344, 6.5614134 ], [ 50.7257387, 6.5614153 ], [ 50.7257378, 6.5614099 ], [ 50.7257375, 6.5614112 ], [ 50.7257367, 6.5614132 ], [ 50.725737, 6.5614122 ], [ 50.7257362, 6.5614046 ], [ 50.7257404, 6.5614073 ], [ 50.7257394, 6.5614021 ], [ 50.7257426, 6.5613998 ], [ 50.7257408, 6.5613998 ], [ 50.7257405, 6.5614048 ], [ 50.7257408, 6.5614009 ], [ 50.7257392, 6.5614009 ], [ 50.7257404, 6.5613923 ], [ 50.7257391, 6.5613947 ], [ 50.7257394, 6.5613947 ], [ 50.7257389, 6.5613895 ], [ 50.7257397, 6.5613916 ], [ 50.7257393, 6.5613871 ], [ 50.7257368, 6.5613881 ], [ 50.7257365, 6.5613841 ], [ 50.7257327, 6.5613837 ], [ 50.7257365, 6.5613996 ], [ 50.7257348, 6.5613932 ], [ 50.7257357, 6.5613918 ], [ 50.7257376, 6.5613918 ], [ 50.7257374, 6.5614121 ], [ 50.7257346, 6.5614133 ], [ 50.7257384, 6.561411 ], [ 50.7257376, 6.561398 ], [ 50.7257422, 6.561398 ], [ 50.7257421, 6.5613899 ], [ 50.725744, 6.5613899 ], [ 50.7257434, 6.5613867 ], [ 50.7257429, 6.5613929 ], [ 50.7257459, 6.5613929 ], [ 50.7257438, 6.5613856 ], [ 50.7257433, 6.5613884 ], [ 50.7257431, 6.5613884 ], [ 50.7257422, 6.5613889 ], [ 50.7257424, 6.5613936 ], [ 50.7257449, 6.5613921 ], [ 50.725744, 6.5613921 ], [ 50.7257448, 6.5613972 ], [ 50.7257446, 6.5613945 ], [ 50.7257461, 6.5613926 ], [ 50.7257449, 6.5613954 ], [ 50.7257444, 6.5613954 ], [ 50.7257436, 6.5613983 ], [ 50.7257479, 6.5613983 ], [ 50.7257467, 6.5613891 ], [ 50.7257462, 6.5613915 ], [ 50.7257453, 6.5613927 ], [ 50.7257486, 6.5613952 ], [ 50.725748, 6.5613858 ], [ 50.725749, 6.5613912 ], [ 50.7257486, 6.5613804 ], [ 50.7257501, 6.5613732 ], [ 50.7257504, 6.5613791 ], [ 50.7257541, 6.5613791 ], [ 50.7257534, 6.561379 ], [ 50.725755, 6.5613862 ], [ 50.7257547, 6.5614042 ], [ 50.7257552, 6.5613875 ], [ 50.7257556, 6.5613875 ], [ 50.7257447, 6.5613562 ], [ 50.7257383, 6.5614406 ], [ 50.7257402, 6.5614406 ], [ 50.7257446, 6.5614406 ], [ 50.7257449, 6.5614266 ], [ 50.7257452, 6.5614266 ], [ 50.725746, 6.5614259 ], [ 50.7257492, 6.5614198 ], [ 50.7257467, 6.5614137 ], [ 50.7257466, 6.561412 ], [ 50.7257459, 6.5614006 ], [ 50.7257491, 6.5613866 ], [ 50.7257487, 6.5613866 ], [ 50.7257522, 6.5613895 ], [ 50.7257526, 6.5613846 ], [ 50.725752, 6.5613857 ], [ 50.7257521, 6.5613847 ], [ 50.7257522, 6.5613847 ], [ 50.7257518, 6.5614007 ], [ 50.7257544, 6.5614044 ], [ 50.7257541, 6.5614022 ], [ 50.7257561, 6.5614058 ], [ 50.7257509, 6.5614016 ], [ 50.7257508, 6.5613935 ], [ 50.7257486, 6.5613921 ], [ 50.7257483, 6.5613958 ], [ 50.7257475, 6.5614044 ], [ 50.725748, 6.5614046 ], [ 50.7257555, 6.5614028 ], [ 50.7257558, 6.5613852 ], [ 50.7257561, 6.5613604 ], [ 50.7257368, 6.5613604 ], [ 50.7257313, 6.5614188 ], [ 50.7257296, 6.561446 ], [ 50.7257301, 6.561446 ], [ 50.7257347, 6.5614391 ], [ 50.7257348, 6.5614277 ], [ 50.7257368, 6.5614175 ], [ 50.7257439, 6.5614175 ], [ 50.725747, 6.5614036 ], [ 50.7257453, 6.5613959 ], [ 50.7257465, 6.5613996 ], [ 50.7257456, 6.5613977 ], [ 50.7257451, 6.5613931 ], [ 50.7257485, 6.5613878 ], [ 50.725748, 6.5613896 ], [ 50.7257501, 6.5613896 ], [ 50.7257494, 6.5613856 ], [ 50.7257491, 6.5613913 ], [ 50.7257506, 6.5613913 ], [ 50.7257498, 6.5613832 ], [ 50.7257489, 6.561385 ], [ 50.7257469, 6.5613964 ], [ 50.7257477, 6.5613964 ], [ 50.7257448, 6.5613857 ], [ 50.7257457, 6.5613899 ], [ 50.7257448, 6.5613819 ], [ 50.7257437, 6.561384 ], [ 50.7257524, 6.561384 ], [ 50.7257569, 6.5613642 ], [ 50.7257613, 6.5613476 ], [ 50.7257631, 6.5613419 ], [ 50.7257658, 6.5613391 ], [ 50.7257669, 6.5613111 ], [ 50.7257663, 6.5613067 ], [ 50.7257685, 6.5613077 ], [ 50.7257624, 6.5613259 ], [ 50.7257387, 6.5614651 ], [ 50.7257379, 6.5614698 ], [ 50.725738, 6.5614717 ], [ 50.7257385, 6.5614726 ], [ 50.7257384, 6.5614595 ], [ 50.7257428, 6.5614633 ], [ 50.7257423, 6.5614486 ], [ 50.7257458, 6.5614432 ], [ 50.7257455, 6.5614432 ], [ 50.7257443, 6.5614419 ], [ 50.7257425, 6.561444 ], [ 50.7257416, 6.5614491 ], [ 50.7257425, 6.5614491 ], [ 50.7257409, 6.5614236 ], [ 50.7257396, 6.5614236 ], [ 50.7257389, 6.5614285 ], [ 50.725744, 6.5614186 ], [ 50.7257434, 6.5614186 ], [ 50.7257432, 6.561423 ], [ 50.7257444, 6.561423 ], [ 50.7257438, 6.5614129 ], [ 50.7257429, 6.5614174 ], [ 50.7257439, 6.5614174 ], [ 50.7257431, 6.5614084 ], [ 50.725742, 6.5614142 ], [ 50.7257458, 6.5614142 ], [ 50.7257446, 6.5614059 ], [ 50.7257426, 6.5614022 ], [ 50.7257432, 6.5614093 ], [ 50.7257414, 6.5614039 ], [ 50.7257407, 6.5614039 ], [ 50.7257435, 6.5614086 ], [ 50.7257422, 6.5613997 ], [ 50.7257404, 6.5614047 ], [ 50.7257458, 6.5614076 ], [ 50.725745, 6.5613969 ], [ 50.7257444, 6.5613991 ], [ 50.7257431, 6.5613947 ], [ 50.7257436, 6.5613982 ], [ 50.7257429, 6.5613937 ], [ 50.7257454, 6.5613957 ], [ 50.7257451, 6.561394 ], [ 50.725747, 6.561394 ], [ 50.7257465, 6.5613935 ], [ 50.7257477, 6.5613935 ], [ 50.725747, 6.5613918 ], [ 50.7257465, 6.5613929 ], [ 50.7257485, 6.561394 ], [ 50.7257486, 6.5613917 ], [ 50.7257407, 6.5613917 ], [ 50.7257384, 6.5614159 ], [ 50.7257389, 6.5614159 ], [ 50.7257378, 6.5614044 ], [ 50.7257373, 6.561407 ], [ 50.7257372, 6.5614084 ], [ 50.7257369, 6.5614101 ], [ 50.725735, 6.5614015 ], [ 50.725738, 6.5614078 ], [ 50.7257368, 6.5614185 ], [ 50.7257387, 6.5614185 ], [ 50.7257386, 6.5614179 ], [ 50.725738, 6.5614185 ], [ 50.7257388, 6.5614198 ], [ 50.7257378, 6.5614107 ], [ 50.7257367, 6.5614107 ], [ 50.7257365, 6.5614128 ], [ 50.7257396, 6.561406 ], [ 50.725744, 6.561406 ], [ 50.7257389, 6.5614178 ], [ 50.7257402, 6.5614178 ], [ 50.7257593, 6.5614058 ], [ 50.7257615, 6.5613585 ], [ 50.7257586, 6.5613187 ], [ 50.7257644, 6.5613074 ], [ 50.7257699, 6.5613074 ], [ 50.7257303, 6.5613113 ], [ 50.725725, 6.561435 ], [ 50.7257248, 6.5614666 ], [ 50.7257267, 6.5614701 ], [ 50.7257287, 6.56146 ], [ 50.7257283, 6.5614508 ], [ 50.7257279, 6.5614506 ], [ 50.725731, 6.561452 ], [ 50.7257375, 6.5614382 ], [ 50.7257477, 6.5614256 ], [ 50.7257458, 6.5614016 ], [ 50.7257469, 6.5614011 ], [ 50.7257453, 6.5614011 ], [ 50.7257445, 6.5614032 ], [ 50.7257423, 6.5613973 ], [ 50.7257396, 6.5613973 ], [ 50.7257423, 6.5614018 ], [ 50.7257399, 6.5613955 ], [ 50.7257411, 6.5614012 ], [ 50.7257478, 6.5613771 ], [ 50.7257533, 6.5613693 ], [ 50.7257551, 6.5613693 ], [ 50.725727, 6.5613573 ], [ 50.7257193, 6.5614568 ], [ 50.7257221, 6.5614708 ], [ 50.7257246, 6.5614542 ], [ 50.7257303, 6.5614232 ], [ 50.7257294, 6.5614093 ], [ 50.7257313, 6.5614093 ], [ 50.725731, 6.5614019 ], [ 50.7257307, 6.5614035 ], [ 50.725732, 6.5614035 ], [ 50.7257315, 6.5613983 ], [ 50.7257339, 6.5614001 ], [ 50.725733, 6.5613956 ], [ 50.7257371, 6.5613954 ], [ 50.7257367, 6.5613954 ], [ 50.7257375, 6.5613983 ], [ 50.7257376, 6.5613978 ], [ 50.7257385, 6.5613978 ], [ 50.7257383, 6.5613975 ], [ 50.7257451, 6.5613982 ], [ 50.725748, 6.5613847 ], [ 50.7257523, 6.5613716 ], [ 50.7257506, 6.5613573 ], [ 50.725755, 6.5613484 ], [ 50.7257468, 6.56135 ], [ 50.7257689, 6.5613794 ], [ 50.7257417, 6.5615331 ], [ 50.7257403, 6.5614858 ], [ 50.7257448, 6.5614904 ], [ 50.7257432, 6.561474 ], [ 50.725744, 6.5614434 ], [ 50.725743, 6.5614434 ], [ 50.7257422, 6.5614587 ], [ 50.7257392, 6.5614587 ], [ 50.7257395, 6.5614752 ], [ 50.7257392, 6.5614752 ], [ 50.7257398, 6.5614788 ], [ 50.7257396, 6.5614642 ], [ 50.7257391, 6.5614645 ], [ 50.7257384, 6.5614557 ], [ 50.7257378, 6.5614557 ], [ 50.7257358, 6.561444 ], [ 50.7257354, 6.561453 ], [ 50.7257394, 6.561453 ], [ 50.7257393, 6.561443 ], [ 50.72574, 6.561437 ], [ 50.725739, 6.561437 ], [ 50.7257399, 6.5614303 ], [ 50.725739, 6.5614303 ], [ 50.7257401, 6.5614258 ], [ 50.7257389, 6.5614258 ], [ 50.7257433, 6.5614334 ], [ 50.7257432, 6.5614236 ], [ 50.7257456, 6.5614293 ], [ 50.7257462, 6.56142 ], [ 50.7257449, 6.5614176 ], [ 50.7257464, 6.5614176 ], [ 50.7257461, 6.5614168 ], [ 50.7257501, 6.561429 ], [ 50.7257508, 6.561418 ], [ 50.7257489, 6.5614169 ], [ 50.7257495, 6.5614239 ], [ 50.725749, 6.5614129 ], [ 50.7257469, 6.5614136 ], [ 50.7257467, 6.5614213 ], [ 50.7257472, 6.5614229 ], [ 50.725747, 6.5614119 ], [ 50.7257461, 6.5614123 ], [ 50.7257463, 6.561423 ], [ 50.725747, 6.561423 ], [ 50.7257468, 6.5614099 ], [ 50.7257465, 6.5614114 ], [ 50.7257609, 6.5613188 ], [ 50.7257627, 6.5613188 ], [ 50.7257685, 6.5612957 ], [ 50.7257736, 6.5613061 ], [ 50.7257674, 6.5613111 ], [ 50.7257669, 6.5613045 ], [ 50.7257467, 6.5613433 ], [ 50.7257301, 6.5614297 ], [ 50.7257298, 6.5614595 ], [ 50.7257309, 6.5614595 ], [ 50.7257306, 6.5614484 ], [ 50.7257318, 6.561448 ], [ 50.7257311, 6.5614421 ], [ 50.725731, 6.5614463 ], [ 50.7257307, 6.5614463 ], [ 50.7257323, 6.5614462 ], [ 50.7257318, 6.5614329 ], [ 50.7257315, 6.5614325 ], [ 50.7257371, 6.561426 ], [ 50.725737, 6.561426 ], [ 50.7257363, 6.5614275 ], [ 50.7257349, 6.5614221 ], [ 50.7257358, 6.5613988 ], [ 50.7257376, 6.5613988 ], [ 50.725743, 6.5614017 ], [ 50.7257423, 6.5613947 ], [ 50.7257405, 6.5613954 ], [ 50.7257406, 6.5613906 ], [ 50.7257375, 6.5613906 ], [ 50.7257426, 6.5613935 ], [ 50.7257427, 6.5613881 ], [ 50.7257429, 6.5613907 ], [ 50.7257423, 6.5613936 ], [ 50.7257416, 6.5613875 ], [ 50.7257399, 6.5613883 ], [ 50.7257389, 6.5613848 ], [ 50.7257383, 6.5613907 ], [ 50.7257384, 6.5613907 ], [ 50.7257377, 6.5613826 ], [ 50.7257359, 6.5613831 ], [ 50.7257355, 6.561386 ], [ 50.725736, 6.5613856 ], [ 50.7257346, 6.5614099 ], [ 50.7257341, 6.5614099 ], [ 50.725734, 6.5614014 ], [ 50.7257331, 6.5613964 ], [ 50.7257385, 6.5613996 ], [ 50.725738, 6.5613952 ], [ 50.7257383, 6.5614001 ], [ 50.7257379, 6.5613934 ], [ 50.7257377, 6.5613948 ], [ 50.7257374, 6.5613963 ], [ 50.7257361, 6.5613921 ], [ 50.7257405, 6.5613892 ], [ 50.7257408, 6.5613908 ], [ 50.725743, 6.5613908 ], [ 50.7257428, 6.5613945 ], [ 50.7257424, 6.5613967 ], [ 50.7257428, 6.5613964 ], [ 50.7257456, 6.5613961 ], [ 50.7257445, 6.5613944 ], [ 50.725748, 6.5613971 ], [ 50.7257479, 6.5613937 ], [ 50.7257434, 6.5613943 ], [ 50.7257409, 6.5613881 ], [ 50.7257438, 6.5613923 ], [ 50.7257435, 6.5613957 ], [ 50.7257367, 6.561402 ], [ 50.7257374, 6.561402 ], [ 50.7257292, 6.5613914 ], [ 50.7257148, 6.5614141 ], [ 50.7257129, 6.5614553 ], [ 50.7257218, 6.5614566 ], [ 50.7257233, 6.5614566 ], [ 50.7257226, 6.5614486 ], [ 50.7257222, 6.5614487 ], [ 50.7257245, 6.5614487 ], [ 50.7257241, 6.5614434 ], [ 50.7257275, 6.5614438 ], [ 50.7257255, 6.5614389 ], [ 50.7257189, 6.5614425 ], [ 50.7257207, 6.561447 ], [ 50.7257203, 6.5614397 ], [ 50.7257231, 6.5614406 ], [ 50.7257228, 6.5614314 ], [ 50.7257275, 6.5614336 ], [ 50.7257293, 6.5614274 ], [ 50.7257286, 6.5614244 ], [ 50.7257335, 6.561418 ], [ 50.7257374, 6.561418 ], [ 50.7257503, 6.5614111 ], [ 50.7257562, 6.5613801 ], [ 50.7257588, 6.5613397 ], [ 50.72576, 6.5613397 ], [ 50.7257588, 6.5613416 ], [ 50.7257216, 6.5613371 ], [ 50.7257187, 6.5614378 ], [ 50.725727, 6.5614257 ], [ 50.7257267, 6.5614257 ], [ 50.7257304, 6.561423 ], [ 50.7257296, 6.5614256 ], [ 50.7257307, 6.5614256 ], [ 50.7257306, 6.56142 ], [ 50.7257308, 6.5614194 ], [ 50.7257302, 6.5614206 ], [ 50.7257312, 6.561418 ], [ 50.7257313, 6.561418 ], [ 50.7257302, 6.561417 ], [ 50.7257299, 6.5614118 ], [ 50.7257287, 6.5614159 ], [ 50.7257323, 6.5614159 ], [ 50.7257317, 6.5614116 ], [ 50.7257315, 6.5614116 ], [ 50.7257311, 6.5614135 ], [ 50.7257341, 6.5614138 ], [ 50.7257338, 6.5614084 ], [ 50.7257334, 6.5614093 ], [ 50.7257332, 6.561411 ], [ 50.7257354, 6.5614083 ], [ 50.7257344, 6.5614084 ], [ 50.7257343, 6.561403 ], [ 50.725734, 6.5614026 ], [ 50.7257332, 6.5614 ], [ 50.7257377, 6.5614007 ], [ 50.7257496, 6.5613905 ], [ 50.7257587, 6.5613518 ], [ 50.7257572, 6.5613376 ], [ 50.7257588, 6.5613135 ], [ 50.7257473, 6.5613135 ], [ 50.7257278, 6.5613529 ], [ 50.7257201, 6.5614296 ], [ 50.725727, 6.5614341 ], [ 50.7257271, 6.5614247 ], [ 50.7257264, 6.5614247 ], [ 50.7257306, 6.5614255 ], [ 50.7257302, 6.5614157 ], [ 50.7257314, 6.5614167 ], [ 50.7257309, 6.5614107 ], [ 50.7257352, 6.5614121 ], [ 50.7257348, 6.5614065 ], [ 50.7257346, 6.561408 ], [ 50.7257363, 6.561408 ], [ 50.7257362, 6.5614046 ], [ 50.7257308, 6.5614043 ], [ 50.7257303, 6.5614119 ], [ 50.7257379, 6.5613956 ], [ 50.7257482, 6.5613956 ], [ 50.7257565, 6.5613568 ], [ 50.7257596, 6.5613319 ], [ 50.7257631, 6.5613237 ], [ 50.725765, 6.5613102 ], [ 50.7257293, 6.5613965 ], [ 50.7257156, 6.5613965 ], [ 50.7257201, 6.5614473 ], [ 50.7257224, 6.5614671 ], [ 50.7257222, 6.5614605 ], [ 50.7257245, 6.561464 ], [ 50.7257247, 6.5614547 ], [ 50.725728, 6.5614545 ], [ 50.7257285, 6.5614463 ], [ 50.7257286, 6.5614499 ], [ 50.7257297, 6.5614499 ], [ 50.7257294, 6.5614426 ], [ 50.7257291, 6.5614424 ], [ 50.7257302, 6.5614436 ], [ 50.7257297, 6.5614347 ], [ 50.7257315, 6.5614345 ], [ 50.7257313, 6.5614291 ], [ 50.7257339, 6.5614291 ], [ 50.7257343, 6.5614244 ], [ 50.7257357, 6.5614244 ], [ 50.7257342, 6.5614217 ], [ 50.7257334, 6.5614165 ], [ 50.7257491, 6.561391 ], [ 50.725758, 6.5613755 ], [ 50.7257589, 6.5613755 ], [ 50.7257599, 6.5613718 ], [ 50.7257634, 6.5613541 ], [ 50.7257621, 6.5613575 ], [ 50.7257642, 6.5613206 ], [ 50.7257649, 6.5613206 ], [ 50.7257628, 6.5613234 ], [ 50.7257659, 6.561325 ], [ 50.7257666, 6.5613307 ], [ 50.725765, 6.5613307 ], [ 50.7257682, 6.5613197 ], [ 50.7257698, 6.5613269 ], [ 50.7257725, 6.5613269 ], [ 50.7257715, 6.5613273 ], [ 50.7257705, 6.5613209 ], [ 50.7257694, 6.5613324 ], [ 50.7257697, 6.5613306 ], [ 50.7257658, 6.5613148 ], [ 50.7257644, 6.5613148 ], [ 50.7257654, 6.5613099 ], [ 50.7257692, 6.5613099 ], [ 50.7257691, 6.5613046 ], [ 50.7257698, 6.5613017 ], [ 50.7257663, 6.5613001 ], [ 50.7257664, 6.5612945 ], [ 50.7257685, 6.5613148 ], [ 50.7257689, 6.5613148 ], [ 50.7257698, 6.5613094 ], [ 50.7257679, 6.5613256 ], [ 50.7257664, 6.5613123 ], [ 50.7257667, 6.5613029 ] ], "options": { "color": "#3d3d5c", "weight": 3 } } ] }ich mag dich nicht überfordern, aber ich habe mal einen schöneren test case erstellt, der ungefähr deinen anforderungen entsprechen könnte.
mal so als ausblick was möglich wäregrundstruktur bleibt wie oben beschrieben.
ich habe nun noch ein paar schönere start und endmarker hinzugefügt.
das json sollte man allerdings nur mit einem entsprechenden programm anschauen, bei dem man die verschiedenen abschnitte besser gruppieren und aufklappen kann, sonst ist es etwas unübersichtlich.ich habe mal ein video gemacht wie es in echt aussieht
6429119f-dc13-4b38-855a-855704ca5ce6-20260710-1627-28.8126496.mp4
hier das json, nun sind in jeder map die jeweiligen nummerierten anfangs und endmarker, sowie die definition der ganzen grafiken als svg mit drin. ich habe mal die nummerierung von 1-9 vorgesehen mit dem label start1 ... start9 (also alles in dem json, nicht im adapter)
-
Wenn ich das json von dir in den DP kopiere, dann bekomme ich Schemafehler:Hat sich erledigt, hab den Fehler gefunden.
Die JSON-Konfiguration enthält 3 Fehler. Unerwartete Eigenschaften in Objekt Stammobjekt: - 2026-07-03T12:00:00.000Z - 2026-07-04T12:00:00.000Z - 2026-07-05T12:00:00.000Z Erlaubte Eigenschaften sind: - marker - icons - polyline - polygon - rectangle - circle -
Ich häng mal das TypeScript dran, dann siehte ja:
Edit: 10.07.26 21:33// ============================================================================= // Konfiguration // ============================================================================= const DP_LAT: string = 'traccar.0.devices.1.latitude'; const DP_LON: string = 'traccar.0.devices.1.longitude'; const DP_MOTION: string = 'traccar.0.devices.1.motion'; const DP_ROUTE_JSON: string = '0_userdata.0.CarLoad.CurrentRouteJSON'; const DP_LAST_DATE: string = '0_userdata.0.CarLoad.LastDriveDate'; const DP_LAST_STOP_TIME: string = '0_userdata.0.CarLoad.LastStopTime'; // NEU: Mindestabstand in Metern, bevor ein neuer Punkt gespeichert wird const MIN_DISTANCE_METERS: number = 50; // Farben für die verschiedenen Fahrten des Tages (max 5) const DRIVE_COLORS: string[] = ['#3d3d5c', '#e65c00', '#009933', '#cc0000', '#9900cc']; // Interfaces für die Struktur interface LeafletMarker { latlng: [number, number]; options: { icon: string; title: string; }; tooltip?: string; } interface LeafletIcon { iconUrl: string; iconSize: [number, number]; iconAnchor: [number, number]; popupAnchor?: [number, number]; shadowSize?: [number, number]; shadowAnchor?: [number, number]; } interface PolylineConfig { latlng: [number, number][]; options: { color: string; weight: number }; iobOptions?: { fitBounds: boolean }; } interface MapContent { marker: LeafletMarker[]; icons: { honda: LeafletIcon; }; polyline: PolylineConfig[]; } interface DriveTrip { map: MapContent; } interface LeafletRouteContainer { [isoTimestamp: string]: DriveTrip; } // Hilfsfunktion: Berechnet die Distanz zwischen zwei Koordinaten in Metern (Haversine-Formel) function getDistanceInMeters(lat1: number, lon1: number, lat2: number, lon2: number): number { const R = 6371000; // Erdradius in Metern const dLat = (lat2 - lat1) * Math.PI / 180; const dLon = (lon2 - lon1) * Math.PI / 180; const a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.cos(lat1 * Math.PI / 180) * Math.cos(lat2 * Math.PI / 180) * Math.sin(dLon / 2) * Math.sin(dLon / 2); const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); return R * c; } // Erzeugt eine frische Map-Struktur für eine einzelne Fahrt function createNewTripStructure(colorIndex: number): DriveTrip { return { map: { marker: [ { latlng: [0.0, 0.0], options: { icon: "honda", title: "Default" }, tooltip: "Hover me" } ], icons: { honda: { iconUrl: "/vis-2.0/SmartHome/tanken/honda_sv1.png", iconSize: [45, 30], iconAnchor: [15, 30], popupAnchor: [0, -26], shadowSize: [36, 36], shadowAnchor: [15, 30] } }, polyline: [ { latlng: [], options: { color: DRIVE_COLORS[colorIndex % DRIVE_COLORS.length], weight: 3 }, iobOptions: { fitBounds: true } } ] } }; } // ============================================================================= // Initialisierung // ============================================================================= async function init(): Promise<void> { await createStateAsync(DP_LAST_DATE, '', { type: 'string' }); await createStateAsync(DP_LAST_STOP_TIME, 0, { type: 'number', name: 'Zeitstempel letzter Stop' }); if (!(await existsStateAsync(DP_ROUTE_JSON))) { await createStateAsync(DP_ROUTE_JSON, '{}', { name: 'Aktuelle Route für Leaflet', type: 'string', role: 'json' }); } } // ============================================================================= // Logik: Koordinaten hinzufügen mit zeitbasierter Objekt-Struktur & 50m Filter // ============================================================================= async function addCoordinateToRoute(lat: number, lon: number): Promise<void> { try { const heute = new Date().toISOString().split('T')[0]; const lastDateState = await getStateAsync(DP_LAST_DATE); const lastDate = lastDateState ? lastDateState.val : ''; const state = await getStateAsync(DP_ROUTE_JSON); let routeData: LeafletRouteContainer = {}; // 1. Reset bei neuem Tag if (lastDate !== heute) { log(`[Traccar-Route] Neuer Tag erkannt. Reset der Route.`); routeData = {}; await setStateAsync(DP_LAST_DATE, heute, true); await setStateAsync(DP_LAST_STOP_TIME, 0, true); } else if (state && typeof state.val === 'string' && state.val !== '') { routeData = JSON.parse(state.val) as LeafletRouteContainer; } // Alle vorhandenen Keys (Fahrten) ermitteln und sortieren let tripKeys = Object.keys(routeData).sort(); const lastStopState = await getStateAsync(DP_LAST_STOP_TIME); const lastStopTime = lastStopState ? (lastStopState.val as number) : 0; const jetzt = Date.now(); let currentTripKey: string; // Prüfen, ob eine neue Fahrt begonnen werden muss const isNewTripNeeded = tripKeys.length === 0 || (lastStopTime > 0 && (jetzt - lastStopTime) > (30 * 60 * 1000)); if (isNewTripNeeded) { if (tripKeys.length < 5) { currentTripKey = new Date().toISOString(); log(`[Traccar-Route] Erstelle neue Fahrt unter Key: ${currentTripKey}`); routeData[currentTripKey] = createNewTripStructure(tripKeys.length); tripKeys.push(currentTripKey); } else { log(`[Traccar-Route] Pause > 30 Min, aber Maximum von 5 Fahrten erreicht. Nutze letzte Fahrt weiter.`, 'warn'); currentTripKey = tripKeys[tripKeys.length - 1]; } await setStateAsync(DP_LAST_STOP_TIME, 0, true); } else { currentTripKey = tripKeys[tripKeys.length - 1]; } // Typisierte Referenz auf die aktive Fahrt holen const activeTrip: MapContent = routeData[currentTripKey].map; // 3. Polyline-Logik mit 50-Meter-Prüfung const latlngs = activeTrip.polyline[0].latlng; if (latlngs.length > 0) { const lastPoint = latlngs[latlngs.length - 1]; // Exakter Dubletten-Check if (lastPoint[0] === lat && lastPoint[1] === lon) return; // NEU: Berechne Abstand zum letzten aufgezeichneten Punkt der aktuellen Fahrt const distance = getDistanceInMeters(lastPoint[0], lastPoint[1], lat, lon); if (distance < MIN_DISTANCE_METERS) { // Der Punkt ist zu nah am vorherigen Punkt (GPS Drift in der Garage), wir ignorieren ihn für die Route // Aber: Wir aktualisieren trotzdem den Live-Marker, damit das Auto auf der Karte exakt steht if (activeTrip.marker && activeTrip.marker.length > 0) { activeTrip.marker[0].latlng = [lat, lon]; await setStateAsync(DP_ROUTE_JSON, JSON.stringify(routeData), true); } return; } } // 2. Live-Position des Markers aktualisieren (wenn Punkt gültig oder erster Punkt) if (activeTrip.marker && activeTrip.marker.length > 0) { activeTrip.marker[0].latlng = [lat, lon]; } // Punkt zur Fahrt hinzufügen latlngs.push([lat, lon]); // Performance-Schutz pro Fahrt if (latlngs.length > 1500) latlngs.shift(); await setStateAsync(DP_ROUTE_JSON, JSON.stringify(routeData), true); } catch (e) { log(`[Leaflet-Route] Fehler beim Hinzufügen der Koordinate: ${e}`, 'error'); } } // ============================================================================= // Trigger // ============================================================================= on({ id: DP_LAT, change: 'ne' }, async (obj) => { const lat = obj.state ? parseFloat(obj.state.val as string) : null; const lonState = await getStateAsync(DP_LON); const motionState = await getStateAsync(DP_MOTION); if (lat !== null && lonState && lonState.val !== null) { const lon = parseFloat(lonState.val as string); const isMoving = motionState ? !!motionState.val : true; // Wenn Traccar meldet, dass sich das Auto bewegt, jagen wir es durch die Prüfung if (isMoving && !isNaN(lat) && !isNaN(lon)) { await addCoordinateToRoute(lat, lon); } } }); on({ id: DP_MOTION, change: 'ne' }, async (obj) => { if (obj.state) { const isMoving = !!obj.state.val; if (!isMoving) { log(`[Traccar-Route] Fahrzeug steht. Starte Haltezeit-Überwachung.`); await setStateAsync(DP_LAST_STOP_TIME, Date.now(), true); } else { const lastStopState = await getStateAsync(DP_LAST_STOP_TIME); const lastStopTime = lastStopState ? (lastStopState.val as number) : 0; if (lastStopTime > 0 && (Date.now() - lastStopTime) <= (30 * 60 * 1000)) { log(`[Traccar-Route] Fahrt nach kurzem Zwischenstopp (< 30 Min) fortgesetzt.`); await setStateAsync(DP_LAST_STOP_TIME, 0, true); } } } }); init();
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
