diff --git a/Train Tracker-1737318239499.json b/Train Tracker-1737318239499.json new file mode 100644 index 0000000..798a12a --- /dev/null +++ b/Train Tracker-1737318239499.json @@ -0,0 +1,237 @@ +{ + "__inputs": [ + { + "name": "DS_MARIADB_TRAIN-TRACKER", + "label": "mariadb train-tracker", + "description": "", + "type": "datasource", + "pluginId": "mysql", + "pluginName": "MySQL" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "geomap", + "name": "Geomap", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.4.0" + }, + { + "type": "datasource", + "id": "mysql", + "name": "MySQL", + "version": "11.3.1" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "mysql", + "uid": "${DS_MARIADB_TRAIN-TRACKER}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 23, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "basemap": { + "config": {}, + "name": "Layer 0", + "type": "default" + }, + "controls": { + "mouseWheelZoom": true, + "showAttribution": true, + "showDebug": false, + "showMeasure": false, + "showScale": true, + "showZoom": true + }, + "layers": [ + { + "config": { + "showLegend": false, + "style": { + "color": { + "fixed": "dark-green" + }, + "opacity": 0.4, + "rotation": { + "fixed": 0, + "max": 360, + "min": -360, + "mode": "mod" + }, + "size": { + "fixed": 5, + "max": 15, + "min": 2 + }, + "symbol": { + "fixed": "img/icons/marker/circle.svg", + "mode": "fixed" + }, + "symbolAlign": { + "horizontal": "center", + "vertical": "center" + }, + "textConfig": { + "fontSize": 12, + "offsetX": 0, + "offsetY": 0, + "textAlign": "center", + "textBaseline": "middle" + } + } + }, + "location": { + "mode": "auto" + }, + "name": "Layer 1", + "tooltip": true, + "type": "markers" + } + ], + "tooltip": { + "mode": "details" + }, + "view": { + "allLayers": true, + "id": "fit", + "lat": 0, + "lon": 0, + "zoom": 15 + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "dataset": "mysql", + "datasource": { + "type": "mysql", + "uid": "${DS_MARIADB_TRAIN-TRACKER}" + }, + "editorMode": "code", + "format": "table", + "rawQuery": true, + "rawSql": "SELECT\n timestamp AS \"time\",\n latitude,\n longitude,\n train_name,\n fahrt_nr,\n destination,\n delay / 60 AS delay_minutes\nFROM traindb.trips\nWHERE\n $__timeFilter(timestamp) AND\n train_name IN (${train_name:sqlstring})\nORDER BY timestamp\n", + "refId": "A", + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + } + } + ], + "title": "Abfahrten Züge", + "type": "geomap" + } + ], + "refresh": "1m", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "mysql", + "uid": "${DS_MARIADB_TRAIN-TRACKER}" + }, + "definition": "SELECT\n train_name\nFROM traindb.trips", + "includeAll": true, + "label": "Zugname", + "multi": true, + "name": "train_name", + "options": [], + "query": "SELECT\n train_name\nFROM traindb.trips", + "refresh": 1, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now/d", + "to": "now/d" + }, + "timepicker": {}, + "timezone": "Europe/Berlin", + "title": "Train Tracker", + "uid": "bdz979doey5tsa", + "version": 13, + "weekStart": "" +} \ No newline at end of file