[Neuer Adapter] radar-trap
-
@thomas-jansen Danke fürs Testen. Feedback und weitere Ideen immer gerne.
-
mache ich gerne, Arbeite momentan noch zusätzlich mit einem Script und dem RoadTraffic Adapter. Diesen möchte ich allerdings ersetzen, sobald der Radar-Trap Adapter Fahrzeiten und Entfernung mit ausgibt.
Außerdem verwende ich in Vis zusätzlichen mit den Material Design Widgets Adapter.
VIS:
{ "settings": { "style": { "background-color": "#27272727" }, "theme": "dark-hive", "sizex": "", "sizey": "", "gridSize": "", "useBackground": false, "snapType": null }, "widgets": { "e00001": { "tpl": "tplVis-materialdesign-Grid-Views", "data": { "g_fixed": false, "g_visibility": false, "g_css_font_text": false, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "countViews": "2", "viewVertAlignment": "center", "viewHorAlignment": "space-around", "showResolutionAssistant": false, "visibilityCondition0": "==", "visibilityCondition1": "==", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "desktopGaps": "0", "viewColSpan": "2", "handyGridPortraitColSpan": "6", "handyGridLandscapeColSpan": "6", "tabletGridPortraitColSpan": "6", "tabletGridLandscapeColSpan": "3", "visibilityCondition2": "==", "visibilityCondition3": "==", "View0": "Startseite_Fahrzeiten_Auto_Dialog_Route", "viewsHeight0": "400", "View1": "Startseite_Fahrzeiten_Auto_Dialog_Routeninformation", "viewsHeight1": "400", "View2": "Startseite_Fahrzeiten_Auto_Dialog_Info", "viewsHeight2": "170", "View3": "Wetter_Luftfeuchtigkeit_Tag2", "viewsHeight3": "100", "visibilityCondition4": "==", "visibilityCondition5": "==", "visibilityCondition6": "==", "visibilityCondition7": "==", "visibilityCondition8": "==", "visibilityCondition9": "==", "visibilityCondition10": "==", "View4": "Wetter_Windgeschwindigkeit_Tag2", "viewsHeight4": "130", "View5": "Wetter_Windrichtung_Tag2", "viewsHeight5": "100", "View6": "Wetter_Luftdruck_Tag2", "viewsHeight6": "100", "View7": "Wetter_Schneefall_Tag2", "viewsHeight7": "100", "View8": "Wetter_Sonne_Tag2", "viewsHeight8": "130", "View9": "Wetter_Mond_Tag2", "viewsHeight9": "130", "View10": "Wetter_Grafik_Tag2", "viewsHeight10": "240", "viewColSpan10": "8", "handyGridPortraitColSpan10": "12", "handyGridLandscapeColSpan10": "12", "tabletGridPortraitColSpan10": "12", "tabletGridLandscapeColSpan10": "8", "visibilityCondition11": "==", "View11": "Wetter_Pollenindex_Tag2", "viewsHeight11": "240", "viewColSpan11": "4", "handyGridPortraitColSpan11": "12", "handyGridLandscapeColSpan11": "12", "tabletGridPortraitColSpan11": "12", "tabletGridLandscapeColSpan11": "4", "viewColSpan6": "", "viewColSpan7": "", "viewColSpan8": "3", "viewColSpan9": "3", "tabletGridLandscapeColSpan9": "6", "tabletGridLandscapeColSpan8": "6", "tabletLandscapeWidth": "819", "tabletPortraitWidth": "614", "handyLandscapeWidth": "613", "handyPortraitWidth": "360", "visibilityOid11": "0_userdata.0.vis.MaterialDesignWidgets.Wetter.Pollenflug.visible", "visibilityConditionValue11": "true", "handyPortraitGaps": "0", "tabletPortraitGaps": "0", "viewSortOrder0": "2", "viewColSpan0": "4", "handyGridPortraitColSpan0": "12", "viewSortOrder4": "4", "viewColSpan4": "3", "viewSortOrder8": "2", "viewSortOrder9": "3", "viewSortOrder3": "8", "viewSortOrder5": "10", "viewSortOrder6": "9", "viewSortOrder7": "7", "viewSortOrder2": "1", "viewSortOrder1": "3", "viewColSpan1": "8", "handyGridLandscapeColSpan0": "12", "tabletGridPortraitColSpan0": "", "tabletGridLandscapeColSpan0": "", "handyGridPortraitColSpan1": "12", "handyGridLandscapeColSpan1": "12", "tabletGridPortraitColSpan1": "", "tabletGridLandscapeColSpan1": "", "visibleResolutionGreaterThan0": "", "viewColSpan2": "12", "handyGridPortraitColSpan2": "12", "handyGridLandscapeColSpan2": "12", "tabletGridPortraitColSpan2": "12", "tabletGridLandscapeColSpan2": "12" }, "style": { "left": "0", "top": "0", "width": "100%", "height": "100%", "overflow-y": "auto" }, "widgetSet": "materialdesign" } }, "name": "Startseite_Fahrzeiten_Auto_Dialog", "filterList": [] }
{ "settings": { "style": { "background-color": "#27272727", "background_class": "" }, "theme": "dark-hive", "sizex": "", "sizey": "", "gridSize": "", "useBackground": false, "snapType": null }, "widgets": { "e00001": { "tpl": "tplValueString", "data": { "oid": "nothing_selected", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": true, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "Auto Strecke: Zuhause - Arbeit", "name": "Überschrift" }, "style": { "left": "20px", "top": "14px", "color": "#d7cec1", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px", "width": "calc(100% - 40px)", "text-align": "center", "z-index": "1", "height": "22px", "box-shadow": "0 2px #d7cec1" }, "widgetSet": "basic" }, "e00002": { "tpl": "tplValueFloat", "data": { "oid": "roadtraffic.0.Arbeit.route.durationTrafficText", "g_fixed": false, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "is_comma": "true", "factor": "1", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_append_singular": " Min. <br><span style=\"font-size: 12px\">Delta: {0_userdata.0.Routenplanung.Stauerkennung.Delta_0} Min.</span>", "html_append_plural": " Min. <br><span style=\"font-size: 12px\">Delta: {0_userdata.0.Routenplanung.Stauerkennung.Delta_0} Min.</span>" }, "style": { "left": "20px", "top": "76px", "width": "110px", "height": "56px", "color": "#8f8f8f", "background-color": "#2e2e2e", "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "font-size": "x-large", "line-height": "", "text-align": "center", "z-index": "1", "padding-top": "20px" }, "widgetSet": "basic" }, "e00003": { "tpl": "tplValueString", "data": { "oid": "0_userdata.0.Routenplanung.Stauerkennung.Staustufe_0", "visibility-cond": "==", "visibility-val": 1, "test_html": "", "html_append": "", "gestures-offsetX": 0, "gestures-offsetY": 0, "html_prepend": "Staustufe: ", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "visibility-groups-action": "hide", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Staustufe" }, "style": { "left": "140px", "top": "76px", "width": "calc(100% - 280px)", "height": "20px", "color": "#8f8f8f", "background": "", "z-index": "4", "text-align": "center", "background-color": "#2e2e2e", "border-radius": "5px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "font-size": "small", "line-height": "1.5" }, "widgetSet": "basic" }, "e00004": { "tpl": "tplValueString", "data": { "oid": "0_userdata.0.Routenplanung.Stauerkennung.Blitzer_0", "visibility-cond": "==", "visibility-val": 1, "test_html": "", "html_append": "", "gestures-offsetX": 0, "gestures-offsetY": 0, "html_prepend": " ", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "visibility-groups-action": "hide", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Staustufe" }, "style": { "left": "140px", "top": "102px", "width": "calc(100% - 280px)", "height": "20px", "color": "#8f8f8f", "background": "", "z-index": "4", "text-align": "center", "background-color": "#2e2e2e", "border-radius": "5px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "font-size": "small", "line-height": "1.5" }, "widgetSet": "basic" }, "e00005": { "tpl": "tplValueString", "data": { "oid": "0_userdata.0.Routenplanung.Stauerkennung.RouteÜber_0", "visibility-cond": "==", "visibility-val": 1, "test_html": "", "html_append": " - {roadtraffic.0.Arbeit.route.distanceText}", "gestures-offsetX": 0, "gestures-offsetY": 0, "html_prepend": "über ", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "visibility-groups-action": "hide", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Routenführung" }, "style": { "left": "20px", "top": "45px", "width": "calc(100% - 40px)", "height": "17px", "color": "#8f8f8f", "background": "", "z-index": "4", "text-align": "center", "font-size": "small" }, "widgetSet": "basic" }, "e00006": { "tpl": "tplValueTimestamp", "data": { "oid": "roadtraffic.0.Arbeit.route.durationTrafficText", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "format_date": "hh:mm:ss", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "Letzte Abfrage: ", "name": "Letzte Abfrage", "html_append": " Uhr" }, "style": { "left": "140px", "top": "130px", "z-index": "4", "width": "calc(100% - 280px)", "height": "20px", "color": "#8f8f8f", "text-align": "center", "background": "", "padding-top": "", "margin-top": "", "padding": "", "background-color": "#2e2e2e", "border-radius": "5px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "font-size": "small", "line-height": "1.5" }, "widgetSet": "basic" }, "e00007": { "tpl": "tplFrame", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "title": "", "title_color": "#d7cec1", "title_top": "7", "title_left": "99", "header_height": "0", "header_color": "", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "title_back": "", "title_font": "", "name": "Hintergrund", "class": "my-card-containerR" }, "style": { "left": "", "top": "", "width": "", "height": "160px", "color": "", "z-index": 0, "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "background": "#202020", "border-color": "#2d2d2d", "font-size": "14px", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px" }, "widgetSet": "basic" }, "e00008": { "tpl": "tplHistorySparkLIne", "data": { "visibility-cond": "==", "visibility-val": 1, "aggregate": "max", "chartType": "line", "points": "400", "time_interval": "24 hours", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "visibility-oid": "", "min": "15", "max": "45", "oid": "0_userdata.0.Routenplanung.Stauerkennung.Fahrzeit_0", "instance": "history.0", "lineColor": "white", "fillColor": "darkgreen", "lineWidth": "2", "disableTooltips": false, "zeroColor": "#2943c2", "visibility-groups-action": "hide", "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "name": "Diagramm" }, "style": { "left": "calc(100% - 130px)", "top": "76px", "width": "110px", "height": "76px", "z-index": "2", "border-width": "", "border-style": "", "border-color": "", "background-color": "#2e2e2e", "margin-left": "", "padding-left": "", "padding": "", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "border-radius": "10px" }, "widgetSet": "history" } }, "name": "Startseite_Fahrzeiten_Auto_Dialog_Info", "filterList": [] }
{ "settings": { "style": { "background-color": "#27272727", "background_class": "" }, "theme": "dark-hive", "sizex": "", "sizey": "", "gridSize": "", "useBackground": false, "snapType": null }, "widgets": { "e00001": { "tpl": "tplValueString", "data": { "oid": "nothing_selected", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": true, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "Route", "name": "Überschrift" }, "style": { "left": "20px", "top": "14px", "color": "#d7cec1", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px", "width": "calc(100% - 40px)", "text-align": "center", "z-index": "1", "height": "22px", "box-shadow": "0 2px #d7cec1" }, "widgetSet": "basic" }, "e00002": { "tpl": "tplFrame", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "title": "", "title_color": "#d7cec1", "title_top": "7", "title_left": "99", "header_height": "0", "header_color": "", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "title_back": "", "title_font": "", "name": "Hintergrund", "class": "my-card-container" }, "style": { "left": "", "top": "", "width": "", "height": "390px", "color": "", "z-index": 0, "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "background": "#202020", "border-color": "#2d2d2d", "font-size": "14px", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px" }, "widgetSet": "basic" }, "e00003": { "tpl": "tplMapbox", "data": { "g_fixed": false, "g_visibility": false, "g_css_font_text": false, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "route": "Zuhause -> Arbeit | 7HmkQwfB0dDfO3AU", "routeColor": "blue", "clusterColor": "#E1BEE7", "symbolColor": "red", "styleSelect": "satellite-streets-v11", "fitButton": "true", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0 }, "style": { "left": "20px", "top": "45px", "width": "calc(100% - 40px)", "height": "340px", "z-index": "2", "border-radius": "10px" }, "widgetSet": "radar-trap" } }, "name": "Startseite_Fahrzeiten_Auto_Dialog_Route", "filterList": [] }
{ "settings": { "style": { "background-color": "#27272727", "background_class": "" }, "theme": "dark-hive", "sizex": "", "sizey": "", "gridSize": "", "useBackground": false, "snapType": null }, "widgets": { "e00001": { "tpl": "tplValueString", "data": { "oid": "nothing_selected", "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": true, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "Routeninformation", "name": "Überschrift" }, "style": { "left": "20px", "top": "14px", "color": "#d7cec1", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px", "width": "calc(100% - 40px)", "text-align": "center", "z-index": "1", "height": "22px", "box-shadow": "0 2px #d7cec1" }, "widgetSet": "basic" }, "e00002": { "tpl": "tplFrame", "data": { "g_fixed": true, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "title": "", "title_color": "#d7cec1", "title_top": "7", "title_left": "99", "header_height": "0", "header_color": "", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "title_back": "", "title_font": "", "name": "Hintergrund", "class": "my-card-container" }, "style": { "left": "", "top": "", "width": "", "height": "390px", "color": "", "z-index": 0, "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "background": "#202020", "border-color": "#2d2d2d", "font-size": "14px", "text-shadow": "rgba(0, 0, 0, 0.9) 3px 3px 4px" }, "widgetSet": "basic" }, "e00003": { "tpl": "tplTrapsInfo", "data": { "g_fixed": false, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "route": "Zuhause -> Arbeit | 7HmkQwfB0dDfO3AU", "noNothingInfo": true, "symbolColor": "red", "fixedTraps": "true", "mobileTraps": "true", "trafficJams": false, "accidents": false, "roadWorks": false, "objects": false, "sleekness": false, "fog": false, "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0 }, "style": { "left": "calc(50% - 110px)", "top": "45px", "color": "#8f8f8f", "z-index": "2", "width": "220px", "height": "340px", "text-align": "center", "font-weight": "bold", "font-size": "medium", "font-family": "Arial, Helvetica, sans-serif", "line-height": "", "background": "#2e2e2e", "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)" }, "widgetSet": "radar-trap" }, "e00004": { "tpl": "tplTrapsInfo", "data": { "g_fixed": false, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "route": "Zuhause -> Arbeit | 7HmkQwfB0dDfO3AU", "noNothingInfo": true, "symbolColor": "red", "fixedTraps": false, "mobileTraps": false, "trafficJams": true, "accidents": true, "roadWorks": true, "objects": true, "sleekness": false, "fog": false, "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0 }, "style": { "left": "20px", "top": "45px", "color": "#8f8f8f", "z-index": "2", "width": "220px", "height": "340px", "background": "#2e2e2e", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)", "border-radius": "10px" }, "widgetSet": "radar-trap" }, "e00005": { "tpl": "tplTrapsInfo", "data": { "g_fixed": false, "g_visibility": false, "g_css_font_text": true, "g_css_background": true, "g_css_shadow_padding": true, "g_css_border": true, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": 1, "visibility-groups-action": "hide", "route": "Zuhause -> Arbeit | 7HmkQwfB0dDfO3AU", "noNothingInfo": true, "symbolColor": "red", "fixedTraps": false, "mobileTraps": false, "trafficJams": false, "accidents": false, "roadWorks": false, "objects": false, "sleekness": true, "fog": true, "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0 }, "style": { "left": "calc(100% - 240px)", "top": "45px", "color": "#8f8f8f", "z-index": "2", "width": "220px", "height": "340px", "text-align": "center", "font-weight": "bold", "line-height": "", "font-family": "Arial, Helvetica, sans-serif", "background": "#2e2e2e", "border-radius": "10px", "box-shadow": "2px 2px 3px rgba(20, 20, 20, 50)" }, "widgetSet": "radar-trap" }, "e00006": { "tpl": "tplValueString", "data": { "oid": "", "g_fixed": false, "g_visibility": true, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "==", "visibility-val": "Keine Blitzer", "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "Keine Informationen zu Blitzern vorhanden!", "visibility-oid": "0_userdata.0.Routenplanung.Stauerkennung.Blitzer_0" }, "style": { "left": "calc(50% - 105px)", "top": "150px", "color": "orange", "width": "210px", "font-size": "medium", "font-weight": "bold", "z-index": "3", "text-align": "center", "height": "100px", "padding-top": "6px" }, "widgetSet": "basic" }, "e00007": { "tpl": "tplValueString", "data": { "oid": "0_userdata.0.Routenplanung.Stauerkennung.Stauinfo_0", "g_fixed": false, "g_visibility": true, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "!=", "visibility-val": "Ja", "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "", "visibility-oid": "0_userdata.0.Routenplanung.Stauerkennung.Stauinfo_0" }, "style": { "left": "25px", "top": "150px", "color": "orange", "width": "210px", "font-size": "medium", "font-weight": "bold", "z-index": "3", "text-align": "center", "height": "100px", "padding-top": "6px" }, "widgetSet": "basic" }, "e00008": { "tpl": "tplValueString", "data": { "oid": "0_userdata.0.Routenplanung.Stauerkennung.Wetterinfo_0", "g_fixed": false, "g_visibility": true, "g_css_font_text": true, "g_css_background": false, "g_css_shadow_padding": false, "g_css_border": false, "g_gestures": false, "g_signals": false, "g_last_change": false, "visibility-cond": "!=", "visibility-val": "Ja", "visibility-groups-action": "hide", "signals-cond-0": "==", "signals-val-0": true, "signals-icon-0": "/vis/signals/lowbattery.png", "signals-icon-size-0": 0, "signals-blink-0": false, "signals-horz-0": 0, "signals-vert-0": 0, "signals-hide-edit-0": false, "signals-cond-1": "==", "signals-val-1": true, "signals-icon-1": "/vis/signals/lowbattery.png", "signals-icon-size-1": 0, "signals-blink-1": false, "signals-horz-1": 0, "signals-vert-1": 0, "signals-hide-edit-1": false, "signals-cond-2": "==", "signals-val-2": true, "signals-icon-2": "/vis/signals/lowbattery.png", "signals-icon-size-2": 0, "signals-blink-2": false, "signals-horz-2": 0, "signals-vert-2": 0, "signals-hide-edit-2": false, "lc-type": "last-change", "lc-is-interval": true, "lc-is-moment": false, "lc-format": "", "lc-position-vert": "top", "lc-position-horz": "right", "lc-offset-vert": 0, "lc-offset-horz": 0, "lc-font-size": "12px", "lc-font-family": "", "lc-font-style": "", "lc-bkg-color": "", "lc-color": "", "lc-border-width": "0", "lc-border-style": "", "lc-border-color": "", "lc-border-radius": 10, "lc-zindex": 0, "html_prepend": "", "visibility-oid": "0_userdata.0.Routenplanung.Stauerkennung.Wetterinfo_0" }, "style": { "left": "calc(100% - 235px)", "top": "150px", "color": "orange", "width": "210px", "font-size": "medium", "font-weight": "bold", "z-index": "3", "text-align": "center", "height": "100px", "padding-top": "6px" }, "widgetSet": "basic" } }, "name": "Startseite_Fahrzeiten_Auto_Dialog_Routeninformation", "filterList": [] }
Script:
/************************************************************************************************************************************************************************ Version: 1.0.1 created by Oliver Böhm, letzte Aktualierung: 31.12.2021 Dieses Skript erstellt Informationen zur Verkehrslage aus dem RoadTraffic- und Radar-Trap Adapter, um diese im VIS darzustellen ========================================================================================================================================================================= !!! Voraussetzungen !!! * RoadTraffic Adapter >= 0.2.0 * Radar-Trap Adapter >= 0.2.1 * Javascript Adapter >= 4.6.1 ========================================================================================================================================================================= --- Links --- * Support: https://forum.iobroker.net/topic/20496/test-adapter-roadtraffic-v0-0-x * Support: https://forum.iobroker.net/topic/50605/neuer-adapter-radar-trap ========================================================================================================================================================================= --- Changelog --- * 1.0.0: Initial release * 1.0.1: Anpassung an Radar-Trap Adapter (31.12.2021) ************************************************************************************************************************************************************************/ // Skript Einstellungen ************************************************************************************************************************************************* let pfad = '0_userdata.0.Routenplanung.Stauerkennung.'; // Pfad der anzulegenden ioBroker Objekte let stauStufe1AbMinuten = 5; let stauStufe2AbMinuten = 8; let stauStufe3AbMinuten = 12; let idStau_0 = pfad + "Stau_0"; // boolean let idStaustufe_0 = pfad + "Staustufe_0"; // Wert von (0-3) let idVia_0 = pfad + "RouteÜber_0"; // Route über let idDelta_0 = pfad + "Delta_0"; // Unterschied zur durchschnittlichen Fahrzeit let idFahrzeit_0 = pfad + "Fahrzeit_0"; // Fahrzeit in Minuten let idBlitzer_0 = pfad + "Blitzer_0"; // Blitzer auf Route let idStauinfo_0 = pfad + "Stauinfo_0"; // Blitzer auf Route let idWetterinfo_0 = pfad + "Wetterinfo_0"; // Blitzer auf Route //*********************************************************************************************************************************************************************** // Beim Skriptstart die Werte abfragen main(); // Trigger on({id:"roadtraffic.0.Arbeit.route.durationTraffic", change: 'any'}, main); function main() { let minuten0 = Math.ceil(getState("roadtraffic.0.Arbeit.route.durationTraffic").val / 60); let minuten0_durchschnitt = Math.ceil(getState("roadtraffic.0.Arbeit.route.duration").val / 60); let stau0 = false; let staustufe0 = 0; let delta = minuten0 - minuten0_durchschnitt; let via; let blitzer; let stauinfo; let wetterinfo; if (delta >= stauStufe1AbMinuten) {stau0 = true; staustufe0 = 1} if (delta >= stauStufe2AbMinuten) {staustufe0 = 2} if (delta >= stauStufe3AbMinuten) {staustufe0 = 3} mySetState(idStau_0, stau0, 'boolean', 'Stau auf Route Arbeit'); mySetState(idStaustufe_0, staustufe0, 'number', 'Staustufe auf Route Arbeit (0-3)'); mySetState(idDelta_0, delta, 'number', 'Unterschied zur durchschnittlichen Fahrzeit'); mySetState(idFahrzeit_0, minuten0, 'number', 'Fahrzeit auf Route Arbeit'); if (getState("roadtraffic.0.Arbeit.route.distance").val > 17500) { via = "A73"; } else if (getState("roadtraffic.0.Arbeit.route.distance").val > 15000 && getState("roadtraffic.0.Arbeit.route.distance").val < 16000) { via = "Münchner Straße"; } else if (getState("roadtraffic.0.Arbeit.route.distance").val > 17000 && getState("roadtraffic.0.Arbeit.route.distance").val < 17500) { via = "Kornburg"; } else if (getState("roadtraffic.0.Arbeit.route.distance").val > 14000 && getState("roadtraffic.0.Arbeit.route.distance").val < 1500) { via = "Langwasser"; } else if (getState("roadtraffic.0.Arbeit.route.distance").val > 16000 && getState("roadtraffic.0.Arbeit.route.distance").val < 17000) { via = "Trierer Straße"; } mySetState(idVia_0, via, 'string', 'Fahrt über Route Arbeit'); if (getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.fixedTraps").val == '[]' && getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.mobileTraps").val == '[]'){ blitzer = 'Keine Blitzer'; } else { blitzer = 'Achtung Blitzer'; } mySetState(idBlitzer_0, blitzer, 'string', 'Blitzer auf Route Arbeit'); if (getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.accidents").val == '[]' && getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.objects").val == '[]' && getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.roadWorks").val == '[]' && getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.trafficJams").val == '[]'){ stauinfo = 'Keine Informationen zu Staus, Baustellen, Unfällen, oder Gegenständen vorhanden!'; } else { stauinfo = 'Ja'; } mySetState(idStauinfo_0, stauinfo, 'string', 'Stau, Bauarbeiten, Unfälle, oder Gegenstände auf Route Arbeit'); if (getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.fog").val == '[]' && getState("radar-trap.0.7HmkQwfB0dDfO3AU.8cJD1cCQ650SHmZb.sleekness").val == '[]'){ wetterinfo = 'Keine Informationen zu wetterbedingten Störungen vorhanden!'; } else { wetterinfo = 'Ja'; } mySetState(idWetterinfo_0, wetterinfo, 'string', 'Wetterbedingte Störungen auf Route Arbeit'); } function mySetState(id, val, type, name, write = true) { if (existsState(id)) { setState(id, val, true); } else { createState(id, { 'name': name, 'type': type, 'read': true, 'write': write }, function () { setState(id, val, true); }); } }
-
Es gibt eine neue Version v0.3.0 zum testen.
Neu ist:-
Map-Widget mit auto. Größenanpassung
-
2 neue States je Route (duration in Sekunden und distance in Metern)
-
-
danke für die neue Version.
Nach dem Update musste ich die Route neu erstellen und die alte löschen, ist das so beabsichtigt?
Gibt es eine Möglichkeit, die kürzeste und nicht die schnellste Route anzeigen zu lassen?
Gibt es eine Möglichkeit die durchschnittlich Fahrzeit auszulesen? -
@carsten04 Hallo,
bekomme beim installieren folgenden Fehler:
ERROR: Process exited with code 25
weniger
mehr$ iobroker url https://github.com/Steiger04/ioBroker.radar-trap --host iobroker
install Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5
NPM version: 7.5.2
npm install Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5 --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code EBADENGINEnpm ERR! engine Unsupported enginenpm ERR! engine Not compatible with your version of node/npm: feathers-nedb@6.0.0npm ERR! notsup Not compatible with your version of node/npm: feathers-nedb@6.0.0npm ERR! notsup Required: {"node":">= 14"}npm ERR! notsup Actual: {"npm":"7.5.2","node":"v12.21.0"}
npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-01-05T08_30_45_256Z-debug.log
host.iobroker Cannot install Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5: 1
ERROR: Process exited with code 25
-
@helfi9999 sagte in [Neuer Adapter] radar-trap:
NPM version: 7.5.2
NPM-Version passt nicht!Installation geradeziehen, schau mal unter:
https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian -
@latzi bekomme immer noch Fehlermeldung Npm Version ist geändert:
$ iobroker url https://github.com/Steiger04/ioBroker.radar-trap --host iobrokerinstall Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5
NPM version: 6.14.15npm install Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5 --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/Scrounger/ioBroker.vis-materialdesign.gitnpm ERR! npm ERR! Host key verification failed.npm ERR! fatal: Could not read from remote repository.npm ERR! npm ERR! Please make sure you have the correct access rightsnpm ERR! and the repository exists.npm ERR! npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-01-05T09_43_37_559Z-debug.log
host.iobroker Cannot install Steiger04/ioBroker.radar-trap#59772746bcfedabc4482b47115ca8584a1381bd5: 1
ERROR: Process exited with code 25
-
@helfi9999 sagte in [Neuer Adapter] radar-trap:
vis-materialdesign.git
Das aufräumen. Am besten eine Version aus dem Beta-Repo, in Stable gibt es den Adapter ja nicht.
-
@oli sagte in [Neuer Adapter] radar-trap:
danke für die neue Version.
- Nach dem Update musste ich die Route neu erstellen und die alte löschen, ist das so beabsichtigt?>
- Gibt es eine Möglichkeit, die kürzeste und nicht die schnellste Route anzeigen zu lassen?
- Gibt es eine Möglichkeit die durchschnittlich Fahrzeit auszulesen?
zu 1) Die Daten für routes, directions und traps werden in einer NeDB abgelegt. Wenn Du die DB vor der Installation einer neuen Version sicherst und dann zurückspielst geht nichts verloren. Dazu wie folgt vorgehen:
- Mapbox Token und OpenCage ID sichern
- Instanz stoppen
- in das Verzeichnis iobroker/node_modules/iobroker.radar-trap/server/data gehen
- die Dateien routes.db, directions.db, traps.db sichern
- neue Adapterversion installieren
- Instanz stoppen
- gesicherte Dateien zurückspielen
- Instanz neu starten
- Mapbox Token und OpenCage ID zurückspielen
zu 2) Die kürzeste Route entspricht am ehesten dem Profil walking. Die duration ist dann aber nicht sinnvoll verwendbar.
zu 3) Die durchschnittliche Fahrzeit (Profil driving und driving-traffic) steht im duration-State der Route, oder was meinst Du? -
weißt du was das ist:
-
@liv-in-sky Stop mal die Instanz (falls noch grün), geh in den Object-Tree und lösche den radar-trap Subtree komplett, dann Instanz neu starten und alles müsste gut sein.
-
gab es nicht - habe den ganzen radar ordner gelöscht - dann instance wieder aktiviert - jetzt kommt gar kein ordner bzw dp mehr - vor dem löschen gab es nur einen dp und der war eher kryptisch (es war aber etwas mit der ersten route, die ich angegeben hatt
ich konnte nach dem eingeben der ersten route (die nicht angezeigt wurde) keine weiteren routen eingeben - ist jetzt auch so -
kann ich was im filesystem löschen ?
-
@liv-in-sky Was waren das denn für Routendaten und welchen Radarordner hast Du gelöscht?
-
@carsten04 anz normale
ich habe radar-trap.0 gelöscht - also den gesamten ordner
-
alles gelöscht - nochmal adapter und instanz installiert - jetzt schaut es besser aus
-
bin zutiefst beeindruckt - hatte auch ein radarscript mit anzeige in map - aber dein adapter übertrift das - vor allem weil mn die routen sieht
tolle arbeit
-
@liv-in-sky Danke für das positive Feedback. Fehlt Dir denn noch irgendetwas (Widgets, States, ...)?
-
könnte man eine karte als widget haben, die alle blitzer anzeigt von allen routen anzeigt - evtl auch die endstandorte
der routenverlauf wäre mir da nicht so wichtig
z.b. so:
roter punkt ist blitzer
blaue dreiecke sind routen-enden
das iobroker symblo ist ausgangspunktkönnte ich selber machen, da bräuchte ich aber die koordinaten der routen als dp
-
ich meinte dieses script https://forum.iobroker.net/topic/38168/script-radar-kontrolle-und-koordinaten-übersetzer?page=1
würd ich für deinen adapter "einstampfen"
-
durch den feature port könnte ich wohl die gewünschte anzeige bekommen
könntest du das ganze json nicht auch als dp anbieten ? also nur die routes würden mir reichen