{
    "grafana": {
        "defaultDashboards": [
            {
                "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": 3,
                "links": [],
                "liveNow": false,
                "panels": [
                    {
                        "datasource": {
                            "type": "influxdb",
                            "uid": "PE126C976518FCED8"
                        },
                        "fieldConfig": {
                            "defaults": {
                                "color": {
                                    "fixedColor": "green",
                                    "mode": "fixed"
                                },
                                "mappings": [],
                                "thresholds": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "green",
                                            "value": null
                                        },
                                        {
                                            "color": "red",
                                            "value": 80
                                        }
                                    ]
                                },
                                "unitScale": true
                            },
                            "overrides": []
                        },
                        "gridPos": {
                            "h": 8,
                            "w": 12,
                            "x": 0,
                            "y": 0
                        },
                        "id": 5,
                        "options": {
                            "colorMode": "value",
                            "graphMode": "area",
                            "justifyMode": "auto",
                            "orientation": "auto",
                            "reduceOptions": {
                                "calcs": [
                                    "last"
                                ],
                                "fields": "",
                                "values": false
                            },
                            "showPercentChange": false,
                            "textMode": "auto",
                            "wideLayout": true
                        },
                        "pluginVersion": "10.3.3",
                        "targets": [
                            {
                                "datasource": {
                                    "type": "influxdb",
                                    "uid": "PE126C976518FCED8"
                                },
                                "query": "from(bucket: \"bbrbucket\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"device\"] == \"yolov8_telemetry_01\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"car\")\r\n",
                                "refId": "A"
                            }
                        ],
                        "title": "Cars",
                        "type": "stat"
                    },
                    {
                        "datasource": {
                            "type": "influxdb",
                            "uid": "PE126C976518FCED8"
                        },
                        "fieldConfig": {
                            "defaults": {
                                "color": {
                                    "fixedColor": "yellow",
                                    "mode": "fixed"
                                },
                                "mappings": [],
                                "thresholds": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "blue",
                                            "value": null
                                        },
                                        {
                                            "color": "red",
                                            "value": 80
                                        }
                                    ]
                                },
                                "unitScale": true
                            },
                            "overrides": []
                        },
                        "gridPos": {
                            "h": 8,
                            "w": 12,
                            "x": 12,
                            "y": 0
                        },
                        "id": 3,
                        "options": {
                            "colorMode": "value",
                            "graphMode": "area",
                            "justifyMode": "auto",
                            "orientation": "auto",
                            "reduceOptions": {
                                "calcs": [
                                    "last"
                                ],
                                "fields": "",
                                "values": false
                            },
                            "showPercentChange": false,
                            "textMode": "auto",
                            "wideLayout": true
                        },
                        "pluginVersion": "10.3.3",
                        "targets": [
                            {
                                "datasource": {
                                    "type": "influxdb",
                                    "uid": "PE126C976518FCED8"
                                },
                                "query": "from(bucket: \"bbrbucket\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"device\"] == \"yolov8_telemetry_01\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"person\")\r\n",
                                "refId": "A"
                            }
                        ],
                        "title": "Persons",
                        "type": "stat"
                    },
                    {
                        "datasource": {
                            "type": "influxdb",
                            "uid": "PE126C976518FCED8"
                        },
                        "fieldConfig": {
                            "defaults": {
                                "color": {
                                    "fixedColor": "blue",
                                    "mode": "fixed"
                                },
                                "mappings": [],
                                "thresholds": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "green",
                                            "value": null
                                        },
                                        {
                                            "color": "red",
                                            "value": 80
                                        }
                                    ]
                                },
                                "unitScale": true
                            },
                            "overrides": []
                        },
                        "gridPos": {
                            "h": 8,
                            "w": 12,
                            "x": 0,
                            "y": 8
                        },
                        "id": 7,
                        "options": {
                            "colorMode": "value",
                            "graphMode": "area",
                            "justifyMode": "auto",
                            "orientation": "auto",
                            "reduceOptions": {
                                "calcs": [
                                    "last"
                                ],
                                "fields": "",
                                "values": false
                            },
                            "showPercentChange": false,
                            "textMode": "auto",
                            "wideLayout": true
                        },
                        "pluginVersion": "10.3.3",
                        "targets": [
                            {
                                "datasource": {
                                    "type": "influxdb",
                                    "uid": "PE126C976518FCED8"
                                },
                                "query": "from(bucket: \"bbrbucket\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"device\"] == \"yolov8_telemetry_01\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"traffic light\")\r\n",
                                "refId": "A"
                            }
                        ],
                        "title": "Traffic Lights",
                        "type": "stat"
                    },
                    {
                        "datasource": {
                            "type": "influxdb",
                            "uid": "PE126C976518FCED8"
                        },
                        "fieldConfig": {
                            "defaults": {
                                "color": {
                                    "fixedColor": "orange",
                                    "mode": "fixed"
                                },
                                "mappings": [],
                                "thresholds": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "green",
                                            "value": null
                                        },
                                        {
                                            "color": "red",
                                            "value": 80
                                        }
                                    ]
                                },
                                "unitScale": true
                            },
                            "overrides": []
                        },
                        "gridPos": {
                            "h": 8,
                            "w": 12,
                            "x": 12,
                            "y": 8
                        },
                        "id": 6,
                        "options": {
                            "colorMode": "value",
                            "graphMode": "area",
                            "justifyMode": "auto",
                            "orientation": "auto",
                            "reduceOptions": {
                                "calcs": [
                                    "last"
                                ],
                                "fields": "",
                                "values": false
                            },
                            "showPercentChange": false,
                            "textMode": "auto",
                            "wideLayout": true
                        },
                        "pluginVersion": "10.3.3",
                        "targets": [
                            {
                                "datasource": {
                                    "type": "influxdb",
                                    "uid": "PE126C976518FCED8"
                                },
                                "query": "from(bucket: \"bbrbucket\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"device\"] == \"yolov8_telemetry_01\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"truck\")\r\n",
                                "refId": "A"
                            }
                        ],
                        "title": "Trucks",
                        "type": "stat"
                    },
                    {
                        "datasource": {
                            "type": "influxdb",
                            "uid": "PE126C976518FCED8"
                        },
                        "fieldConfig": {
                            "defaults": {
                                "color": {
                                    "mode": "palette-classic"
                                },
                                "custom": {
                                    "axisBorderShow": false,
                                    "axisCenteredZero": false,
                                    "axisColorMode": "text",
                                    "axisLabel": "",
                                    "axisPlacement": "auto",
                                    "fillOpacity": 80,
                                    "gradientMode": "none",
                                    "hideFrom": {
                                        "legend": false,
                                        "tooltip": false,
                                        "viz": false
                                    },
                                    "lineWidth": 1,
                                    "scaleDistribution": {
                                        "type": "linear"
                                    },
                                    "thresholdsStyle": {
                                        "mode": "off"
                                    }
                                },
                                "mappings": [],
                                "thresholds": {
                                    "mode": "absolute",
                                    "steps": [
                                        {
                                            "color": "green",
                                            "value": null
                                        },
                                        {
                                            "color": "red",
                                            "value": 80
                                        }
                                    ]
                                },
                                "unitScale": true
                            },
                            "overrides": []
                        },
                        "gridPos": {
                            "h": 12,
                            "w": 24,
                            "x": 0,
                            "y": 16
                        },
                        "id": 1,
                        "options": {
                            "barRadius": 0,
                            "barWidth": 1,
                            "fullHighlight": false,
                            "groupWidth": 0.7,
                            "legend": {
                                "calcs": [],
                                "displayMode": "list",
                                "placement": "bottom",
                                "showLegend": true
                            },
                            "orientation": "auto",
                            "showValue": "always",
                            "stacking": "normal",
                            "tooltip": {
                                "mode": "single",
                                "sort": "none"
                            },
                            "xTickLabelRotation": 0,
                            "xTickLabelSpacing": 200
                        },
                        "targets": [
                            {
                                "datasource": {
                                    "type": "influxdb",
                                    "uid": "PE126C976518FCED8"
                                },
                                "query": "from(bucket: \"bbrbucket\")\r\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n  |> filter(fn: (r) => r[\"device\"] == \"yolov8_telemetry_01\")\r\n  |> filter(fn: (r) => r[\"_field\"] == \"car\" or r[\"_field\"] == \"person\" or r[\"_field\"] == \"traffic light\" or r[\"_field\"] == \"truck\")\r\n  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: true)\r\n  |> yield(name: \"last\")",
                                "refId": "A"
                            }
                        ],
                        "title": "Total Objects Detected",
                        "transformations": [],
                        "type": "barchart"
                    }
                ],
                "refresh": "5s",
                "schemaVersion": 39,
                "tags": [],
                "templating": {
                    "list": []
                },
                "time": {
                    "from": "now-15m",
                    "to": "now"
                },
                "timezone": "",
                "title": "Ultralytics YOLO v8 Telemetry v2",
                "uid": "fd371427-c28a-4199-b47b-6729f100b43b",
                "version": 1,
                "weekStart": ""
            }
        ]
    }
}