Commit 14923c18 by Amir Aharon

update ipgallery-mcz latest config

parent 8b2d3569
{ {
"__inputs": [
{
"name": "DS_INFLUX-LOCAL",
"label": "influx-local",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__requires": [
{
"type": "panel",
"id": "briangann-gauge-panel",
"name": "D3 Gauge",
"version": "0.0.6"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "4.6.0"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "panel",
"id": "heatmap",
"name": "Heatmap",
"version": ""
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
...@@ -9,13 +51,6 @@ ...@@ -9,13 +51,6 @@
"iconColor": "rgba(0, 211, 255, 1)", "iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts", "name": "Annotations & Alerts",
"type": "dashboard" "type": "dashboard"
},
{
"datasource": "influx-local",
"enable": false,
"iconColor": "rgba(255, 96, 96, 1)",
"name": "ann1",
"query": "SELECT id, units from speed WHERE $timeFilter"
} }
] ]
}, },
...@@ -23,186 +58,35 @@ ...@@ -23,186 +58,35 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"hideControls": false, "hideControls": false,
"id": 2, "id": null,
"links": [], "links": [],
"refresh": "30s", "refresh": false,
"rows": [ "rows": [
{ {
"collapse": false, "collapse": false,
"height": 224, "height": 335,
"panels": [ "panels": [
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10, "dashLength": 10,
"dashes": false, "dashes": false,
"datasource": "influx-local", "datasource": "${DS_INFLUX-LOCAL}",
"editable": true,
"error": false,
"fill": 1,
"grid": {},
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 2,
"points": true,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"dsType": "influxdb",
"groupBy": [
{
"params": [
"auto"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(\"value\") FROM \"mcx_db\".\"autogen\".\"speed\" WHERE \"id\" = '$lanes' and $timeFilter GROUP BY time($interval) FILL(null)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
},
{
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT HOLT_WINTERS(FIRST(\"value\"),20,5) FROM \"mcx_db\".\"autogen\".\"speed\" WHERE \"id\" = '$lanes' and $timeFilter GROUP BY time($interval)",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "Speed and Predicted",
"tooltip": {
"msResolution": true,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"transparent": false,
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "influx-local",
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"grid": {}, "grid": {},
"id": 5, "id": 5,
"legend": { "legend": {
"alignAsTable": false, "alignAsTable": true,
"avg": false, "avg": true,
"current": false, "current": false,
"max": false, "max": true,
"min": false, "min": true,
"rightSide": false, "rightSide": false,
"show": true, "show": true,
"total": false, "total": false,
"values": false "values": true
}, },
"lines": true, "lines": true,
"linewidth": 2, "linewidth": 2,
...@@ -299,10 +183,18 @@ ...@@ -299,10 +183,18 @@
"tags": [] "tags": []
} }
], ],
"thresholds": [], "thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 10
}
],
"timeFrom": null, "timeFrom": null,
"timeShift": null, "timeShift": null,
"title": "Speed & Count", "title": "Vehicels Speed & Count",
"tooltip": { "tooltip": {
"msResolution": true, "msResolution": true,
"shared": true, "shared": true,
...@@ -338,14 +230,12 @@ ...@@ -338,14 +230,12 @@
}, },
{ {
"colors": [ "colors": [
"rgba(245, 54, 54, 0.9)", "#629e51",
"rgba(237, 129, 40, 0.89)", "rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)" "#bf1b00"
], ],
"datasource": "influx-local", "datasource": "${DS_INFLUX-LOCAL}",
"decimals": 2, "decimals": 0,
"editable": true,
"error": false,
"fontSizes": [ "fontSizes": [
4, 4,
5, 5,
...@@ -405,38 +295,39 @@ ...@@ -405,38 +295,39 @@
"Times New Roman", "Times New Roman",
"Verdana" "Verdana"
], ],
"format": "none", "format": "short",
"gauge": { "gauge": {
"animateNeedleValueTransition": true, "animateNeedleValueTransition": true,
"animateNeedleValueTransitionSpeed": 100, "animateNeedleValueTransitionSpeed": 100,
"edgeWidth": 0.05, "edgeWidth": 0,
"gaugeRadius": 0, "gaugeRadius": 0,
"gaugeUnits": "", "gaugeUnits": "",
"innerCol": "#fff", "innerCol": "rgba(38, 38, 38, 0)",
"labelFontSize": 18, "labelFontSize": 18,
"maxNeedleAngle": 320, "maxNeedleAngle": 320,
"maxTickAngle": 300, "maxTickAngle": 300,
"maxValue": 100, "maxValue": 100,
"minValue": 0, "minValue": 0,
"needleCol": "#0099CC", "needleCol": "rgb(255, 255, 255)",
"needleLengthNeg": 0.2, "needleLengthNeg": 0.2,
"needleTickGap": 0.05, "needleTickGap": 0.05,
"needleWidth": 5, "needleWidth": 5,
"outerEdgeCol": "rgb(33, 124, 164)", "outerEdgeCol": "rgba(229, 172, 14, 0)",
"padding": 0.05, "padding": 0.05,
"pivotCol": "#999", "pivotCol": "rgb(68, 68, 68)",
"pivotRadius": 0.1, "pivotRadius": 0.1,
"show": false, "show": true,
"showLowerThresholdRange": false, "showLowerThresholdRange": true,
"showMiddleThresholdRange": true, "showMiddleThresholdRange": true,
"showThresholdColorOnBackground": true,
"showThresholdColorOnValue": false, "showThresholdColorOnValue": false,
"showThresholdOnGauge": false, "showThresholdOnGauge": true,
"showUpperThresholdRange": true, "showUpperThresholdRange": true,
"tickColMaj": "#0099CC", "tickColMaj": "#e5ac0e",
"tickColMin": "#000", "tickColMin": "rgba(0, 0, 0, 0)",
"tickEdgeGap": 0.05, "tickEdgeGap": 0.05,
"tickFont": "Open Sans", "tickFont": "Open Sans",
"tickLabelCol": "#000", "tickLabelCol": "rgb(255, 255, 255)",
"tickLengthMaj": 0.15, "tickLengthMaj": 0.15,
"tickLengthMin": 0.05, "tickLengthMin": 0.05,
"tickSpaceMajVal": 10, "tickSpaceMajVal": 10,
...@@ -445,14 +336,14 @@ ...@@ -445,14 +336,14 @@
"tickWidthMin": 1, "tickWidthMin": 1,
"ticknessGaugeBasis": 200, "ticknessGaugeBasis": 200,
"unitsFont": "Open Sans", "unitsFont": "Open Sans",
"unitsLabelCol": "#000", "unitsLabelCol": "rgb(255, 255, 255)",
"unitsLabelFontSize": 22, "unitsLabelFontSize": 22,
"valueYOffset": 0, "valueYOffset": 0,
"zeroNeedleAngle": 40, "zeroNeedleAngle": 40,
"zeroTickAngle": 60 "zeroTickAngle": 60
}, },
"gaugeDivId": "d3gauge_svg_6", "gaugeDivId": "d3gauge_svg_15",
"id": 6, "id": 15,
"links": [], "links": [],
"mappingType": 1, "mappingType": 1,
"mappingTypes": [ "mappingTypes": [
...@@ -465,7 +356,7 @@ ...@@ -465,7 +356,7 @@
"value": 2 "value": 2
} }
], ],
"operatorName": "avg", "operatorName": "current",
"operatorNameOptions": [ "operatorNameOptions": [
"min", "min",
"max", "max",
...@@ -489,7 +380,7 @@ ...@@ -489,7 +380,7 @@
"groupBy": [ "groupBy": [
{ {
"params": [ "params": [
"$interval" "$__interval"
], ],
"type": "time" "type": "time"
}, },
...@@ -500,10 +391,10 @@ ...@@ -500,10 +391,10 @@
"type": "fill" "type": "fill"
} }
], ],
"measurement": "speed", "measurement": "/^$lanes$/",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT last(value) FROM speed where \"id\" = '$lanes'", "query": "SELECT last(value) FROM vehicleCount where \"id\" = '$lanes' and $timeFilter GROUP BY time($interval) ",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
...@@ -524,9 +415,9 @@ ...@@ -524,9 +415,9 @@
"tags": [] "tags": []
} }
], ],
"thresholds": "", "thresholds": "40,60",
"tickMaps": [], "tickMaps": [],
"title": "Current Speed", "title": "Current Vehicle Count",
"type": "briangann-gauge-panel", "type": "briangann-gauge-panel",
"unitFormats": [ "unitFormats": [
{ {
...@@ -565,6 +456,26 @@ ...@@ -565,6 +456,26 @@
"click": "menuItemSelected(0,6)", "click": "menuItemSelected(0,6)",
"text": "decibel", "text": "decibel",
"value": "dB" "value": "dB"
},
{
"click": "menuItemSelected(0,7)",
"text": "hexadecimal (0x)",
"value": "hex0x"
},
{
"click": "menuItemSelected(0,8)",
"text": "hexadecimal",
"value": "hex"
},
{
"click": "menuItemSelected(0,9)",
"text": "scientific notation",
"value": "sci"
},
{
"click": "menuItemSelected(0,10)",
"text": "locale format",
"value": "locale"
} }
], ],
"text": "none" "text": "none"
...@@ -590,6 +501,41 @@ ...@@ -590,6 +501,41 @@
"click": "menuItemSelected(1,3)", "click": "menuItemSelected(1,3)",
"text": "Yen (¥)", "text": "Yen (¥)",
"value": "currencyJPY" "value": "currencyJPY"
},
{
"click": "menuItemSelected(1,4)",
"text": "Rubles (₽)",
"value": "currencyRUB"
},
{
"click": "menuItemSelected(1,5)",
"text": "Hryvnias (₴)",
"value": "currencyUAH"
},
{
"click": "menuItemSelected(1,6)",
"text": "Real (R$)",
"value": "currencyBRL"
},
{
"click": "menuItemSelected(1,7)",
"text": "Danish Krone (kr)",
"value": "currencyDKK"
},
{
"click": "menuItemSelected(1,8)",
"text": "Icelandic Krone (kr)",
"value": "currencyISK"
},
{
"click": "menuItemSelected(1,9)",
"text": "Norwegian Krone (kr)",
"value": "currencyNOK"
},
{
"click": "menuItemSelected(1,10)",
"text": "Swedish Krone (kr)",
"value": "currencySEK"
} }
], ],
"text": "currency" "text": "currency"
...@@ -635,6 +581,16 @@ ...@@ -635,6 +581,16 @@
"click": "menuItemSelected(2,7)", "click": "menuItemSelected(2,7)",
"text": "days (d)", "text": "days (d)",
"value": "d" "value": "d"
},
{
"click": "menuItemSelected(2,8)",
"text": "duration (ms)",
"value": "dtdurationms"
},
{
"click": "menuItemSelected(2,9)",
"text": "duration (s)",
"value": "dtdurations"
} }
], ],
"text": "time" "text": "time"
...@@ -643,76 +599,126 @@ ...@@ -643,76 +599,126 @@
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(3,0)", "click": "menuItemSelected(3,0)",
"text": "YYYY-MM-DD HH:mm:ss",
"value": "dateTimeAsIso"
},
{
"click": "menuItemSelected(3,1)",
"text": "DD/MM/YYYY h:mm:ss a",
"value": "dateTimeAsUS"
},
{
"click": "menuItemSelected(3,2)",
"text": "From Now",
"value": "dateTimeFromNow"
}
],
"text": "date & time"
},
{
"submenu": [
{
"click": "menuItemSelected(4,0)",
"text": "bits", "text": "bits",
"value": "bits" "value": "bits"
}, },
{ {
"click": "menuItemSelected(3,1)", "click": "menuItemSelected(4,1)",
"text": "bytes", "text": "bytes",
"value": "bytes" "value": "bytes"
}, },
{ {
"click": "menuItemSelected(3,2)", "click": "menuItemSelected(4,2)",
"text": "kilobytes", "text": "kibibytes",
"value": "kbytes" "value": "kbytes"
}, },
{ {
"click": "menuItemSelected(3,3)", "click": "menuItemSelected(4,3)",
"text": "megabytes", "text": "mebibytes",
"value": "mbytes" "value": "mbytes"
}, },
{ {
"click": "menuItemSelected(3,4)", "click": "menuItemSelected(4,4)",
"text": "gigabytes", "text": "gibibytes",
"value": "gbytes" "value": "gbytes"
} }
], ],
"text": "data" "text": "data (IEC)"
}, },
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(4,0)", "click": "menuItemSelected(5,0)",
"text": "bits",
"value": "decbits"
},
{
"click": "menuItemSelected(5,1)",
"text": "bytes",
"value": "decbytes"
},
{
"click": "menuItemSelected(5,2)",
"text": "kilobytes",
"value": "deckbytes"
},
{
"click": "menuItemSelected(5,3)",
"text": "megabytes",
"value": "decmbytes"
},
{
"click": "menuItemSelected(5,4)",
"text": "gigabytes",
"value": "decgbytes"
}
],
"text": "data (Metric)"
},
{
"submenu": [
{
"click": "menuItemSelected(6,0)",
"text": "packets/sec", "text": "packets/sec",
"value": "pps" "value": "pps"
}, },
{ {
"click": "menuItemSelected(4,1)", "click": "menuItemSelected(6,1)",
"text": "bits/sec", "text": "bits/sec",
"value": "bps" "value": "bps"
}, },
{ {
"click": "menuItemSelected(4,2)", "click": "menuItemSelected(6,2)",
"text": "bytes/sec", "text": "bytes/sec",
"value": "Bps" "value": "Bps"
}, },
{ {
"click": "menuItemSelected(4,3)", "click": "menuItemSelected(6,3)",
"text": "kilobits/sec", "text": "kilobits/sec",
"value": "Kbits" "value": "Kbits"
}, },
{ {
"click": "menuItemSelected(4,4)", "click": "menuItemSelected(6,4)",
"text": "kilobytes/sec", "text": "kilobytes/sec",
"value": "KBs" "value": "KBs"
}, },
{ {
"click": "menuItemSelected(4,5)", "click": "menuItemSelected(6,5)",
"text": "megabits/sec", "text": "megabits/sec",
"value": "Mbits" "value": "Mbits"
}, },
{ {
"click": "menuItemSelected(4,6)", "click": "menuItemSelected(6,6)",
"text": "megabytes/sec", "text": "megabytes/sec",
"value": "MBs" "value": "MBs"
}, },
{ {
"click": "menuItemSelected(4,7)", "click": "menuItemSelected(6,7)",
"text": "gigabytes/sec", "text": "gigabytes/sec",
"value": "GBs" "value": "GBs"
}, },
{ {
"click": "menuItemSelected(4,8)", "click": "menuItemSelected(6,8)",
"text": "gigabits/sec", "text": "gigabits/sec",
"value": "Gbits" "value": "Gbits"
} }
...@@ -722,24 +728,39 @@ ...@@ -722,24 +728,39 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(5,0)", "click": "menuItemSelected(7,0)",
"text": "ops/sec (ops)", "text": "ops/sec (ops)",
"value": "ops" "value": "ops"
}, },
{ {
"click": "menuItemSelected(5,1)", "click": "menuItemSelected(7,1)",
"text": "reads/sec (rps)", "text": "reads/sec (rps)",
"value": "rps" "value": "rps"
}, },
{ {
"click": "menuItemSelected(5,2)", "click": "menuItemSelected(7,2)",
"text": "writes/sec (wps)", "text": "writes/sec (wps)",
"value": "wps" "value": "wps"
}, },
{ {
"click": "menuItemSelected(5,3)", "click": "menuItemSelected(7,3)",
"text": "I/O ops/sec (iops)", "text": "I/O ops/sec (iops)",
"value": "iops" "value": "iops"
},
{
"click": "menuItemSelected(7,4)",
"text": "ops/min (opm)",
"value": "opm"
},
{
"click": "menuItemSelected(7,5)",
"text": "reads/min (rpm)",
"value": "rpm"
},
{
"click": "menuItemSelected(7,6)",
"text": "writes/min (wpm)",
"value": "wpm"
} }
], ],
"text": "throughput" "text": "throughput"
...@@ -747,22 +768,22 @@ ...@@ -747,22 +768,22 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(6,0)", "click": "menuItemSelected(8,0)",
"text": "millimetre (mm)", "text": "millimetre (mm)",
"value": "lengthmm" "value": "lengthmm"
}, },
{ {
"click": "menuItemSelected(6,1)", "click": "menuItemSelected(8,1)",
"text": "meter (m)", "text": "meter (m)",
"value": "lengthm" "value": "lengthm"
}, },
{ {
"click": "menuItemSelected(6,2)", "click": "menuItemSelected(8,2)",
"text": "kilometer (km)", "text": "kilometer (km)",
"value": "lengthkm" "value": "lengthkm"
}, },
{ {
"click": "menuItemSelected(6,3)", "click": "menuItemSelected(8,3)",
"text": "mile (mi)", "text": "mile (mi)",
"value": "lengthmi" "value": "lengthmi"
} }
...@@ -772,22 +793,47 @@ ...@@ -772,22 +793,47 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(7,0)", "click": "menuItemSelected(9,0)",
"text": "milligram (mg)",
"value": "massmg"
},
{
"click": "menuItemSelected(9,1)",
"text": "gram (g)",
"value": "massg"
},
{
"click": "menuItemSelected(9,2)",
"text": "kilogram (kg)",
"value": "masskg"
},
{
"click": "menuItemSelected(9,3)",
"text": "metric ton (t)",
"value": "masst"
}
],
"text": "mass"
},
{
"submenu": [
{
"click": "menuItemSelected(10,0)",
"text": "m/s", "text": "m/s",
"value": "velocityms" "value": "velocityms"
}, },
{ {
"click": "menuItemSelected(7,1)", "click": "menuItemSelected(10,1)",
"text": "km/h", "text": "km/h",
"value": "velocitykmh" "value": "velocitykmh"
}, },
{ {
"click": "menuItemSelected(7,2)", "click": "menuItemSelected(10,2)",
"text": "mph", "text": "mph",
"value": "velocitymph" "value": "velocitymph"
}, },
{ {
"click": "menuItemSelected(7,3)", "click": "menuItemSelected(10,3)",
"text": "knot (kn)", "text": "knot (kn)",
"value": "velocityknot" "value": "velocityknot"
} }
...@@ -797,19 +843,29 @@ ...@@ -797,19 +843,29 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(8,0)", "click": "menuItemSelected(11,0)",
"text": "millilitre", "text": "millilitre",
"value": "mlitre" "value": "mlitre"
}, },
{ {
"click": "menuItemSelected(8,1)", "click": "menuItemSelected(11,1)",
"text": "litre", "text": "litre",
"value": "litre" "value": "litre"
}, },
{ {
"click": "menuItemSelected(8,2)", "click": "menuItemSelected(11,2)",
"text": "cubic metre", "text": "cubic metre",
"value": "m3" "value": "m3"
},
{
"click": "menuItemSelected(11,3)",
"text": "cubic decimetre",
"value": "dm3"
},
{
"click": "menuItemSelected(11,4)",
"text": "gallons",
"value": "gallons"
} }
], ],
"text": "volume" "text": "volume"
...@@ -817,59 +873,79 @@ ...@@ -817,59 +873,79 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(9,0)", "click": "menuItemSelected(12,0)",
"text": "watt (W)", "text": "watt (W)",
"value": "watt" "value": "watt"
}, },
{ {
"click": "menuItemSelected(9,1)", "click": "menuItemSelected(12,1)",
"text": "kilowatt (kW)", "text": "kilowatt (kW)",
"value": "kwatt" "value": "kwatt"
}, },
{ {
"click": "menuItemSelected(9,2)", "click": "menuItemSelected(12,2)",
"text": "volt-ampere (VA)", "text": "volt-ampere (VA)",
"value": "voltamp" "value": "voltamp"
}, },
{ {
"click": "menuItemSelected(9,3)", "click": "menuItemSelected(12,3)",
"text": "kilovolt-ampere (kVA)", "text": "kilovolt-ampere (kVA)",
"value": "kvoltamp" "value": "kvoltamp"
}, },
{ {
"click": "menuItemSelected(9,4)", "click": "menuItemSelected(12,4)",
"text": "volt-ampere reactive (var)", "text": "volt-ampere reactive (var)",
"value": "voltampreact" "value": "voltampreact"
}, },
{ {
"click": "menuItemSelected(9,5)", "click": "menuItemSelected(12,5)",
"text": "kilovolt-ampere reactive (kvar)",
"value": "kvoltampreact"
},
{
"click": "menuItemSelected(12,6)",
"text": "watt-hour (Wh)", "text": "watt-hour (Wh)",
"value": "watth" "value": "watth"
}, },
{ {
"click": "menuItemSelected(9,6)", "click": "menuItemSelected(12,7)",
"text": "kilowatt-hour (kWh)", "text": "kilowatt-hour (kWh)",
"value": "kwatth" "value": "kwatth"
}, },
{ {
"click": "menuItemSelected(9,7)", "click": "menuItemSelected(12,8)",
"text": "joule (J)", "text": "joule (J)",
"value": "joule" "value": "joule"
}, },
{ {
"click": "menuItemSelected(9,8)", "click": "menuItemSelected(12,9)",
"text": "electron volt (eV)", "text": "electron volt (eV)",
"value": "ev" "value": "ev"
}, },
{ {
"click": "menuItemSelected(9,9)", "click": "menuItemSelected(12,10)",
"text": "Ampere (A)", "text": "Ampere (A)",
"value": "amp" "value": "amp"
}, },
{ {
"click": "menuItemSelected(9,10)", "click": "menuItemSelected(12,11)",
"text": "Kiloampere (kA)",
"value": "kamp"
},
{
"click": "menuItemSelected(12,12)",
"text": "Volt (V)", "text": "Volt (V)",
"value": "volt" "value": "volt"
},
{
"click": "menuItemSelected(12,13)",
"text": "Kilovolt (kV)",
"value": "kvolt"
},
{
"click": "menuItemSelected(12,14)",
"text": "Decibel-milliwatt (dBm)",
"value": "dBm"
} }
], ],
"text": "energy" "text": "energy"
...@@ -877,17 +953,17 @@ ...@@ -877,17 +953,17 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(10,0)", "click": "menuItemSelected(13,0)",
"text": "Celcius (°C)", "text": "Celsius (°C)",
"value": "celsius" "value": "celsius"
}, },
{ {
"click": "menuItemSelected(10,1)", "click": "menuItemSelected(13,1)",
"text": "Farenheit (°F)", "text": "Farenheit (°F)",
"value": "farenheit" "value": "farenheit"
}, },
{ {
"click": "menuItemSelected(10,2)", "click": "menuItemSelected(13,2)",
"text": "Kelvin (K)", "text": "Kelvin (K)",
"value": "kelvin" "value": "kelvin"
} }
...@@ -897,27 +973,87 @@ ...@@ -897,27 +973,87 @@
{ {
"submenu": [ "submenu": [
{ {
"click": "menuItemSelected(11,0)", "click": "menuItemSelected(14,0)",
"text": "Millibars", "text": "Millibars",
"value": "pressurembar" "value": "pressurembar"
}, },
{ {
"click": "menuItemSelected(11,1)", "click": "menuItemSelected(14,1)",
"text": "Bars",
"value": "pressurebar"
},
{
"click": "menuItemSelected(14,2)",
"text": "Kilobars",
"value": "pressurekbar"
},
{
"click": "menuItemSelected(14,3)",
"text": "Hectopascals", "text": "Hectopascals",
"value": "pressurehpa" "value": "pressurehpa"
}, },
{ {
"click": "menuItemSelected(11,2)", "click": "menuItemSelected(14,4)",
"text": "Inches of mercury", "text": "Inches of mercury",
"value": "pressurehg" "value": "pressurehg"
}, },
{ {
"click": "menuItemSelected(11,3)", "click": "menuItemSelected(14,5)",
"text": "PSI", "text": "PSI",
"value": "pressurepsi" "value": "pressurepsi"
} }
], ],
"text": "pressure" "text": "pressure"
},
{
"submenu": [
{
"click": "menuItemSelected(15,0)",
"text": "Newton-meters (Nm)",
"value": "forceNm"
},
{
"click": "menuItemSelected(15,1)",
"text": "Kilonewton-meters (kNm)",
"value": "forcekNm"
},
{
"click": "menuItemSelected(15,2)",
"text": "Newtons (N)",
"value": "forceN"
},
{
"click": "menuItemSelected(15,3)",
"text": "Kilonewtons (kN)",
"value": "forcekN"
}
],
"text": "force"
},
{
"submenu": [
{
"click": "menuItemSelected(16,0)",
"text": "Gallons/min (gpm)",
"value": "flowgpm"
},
{
"click": "menuItemSelected(16,1)",
"text": "Cubic meters/sec (cms)",
"value": "flowcms"
},
{
"click": "menuItemSelected(16,2)",
"text": "Cubic feet/sec (cfs)",
"value": "flowcfs"
},
{
"click": "menuItemSelected(16,3)",
"text": "Cubic feet/min (cfm)",
"value": "flowcfm"
}
],
"text": "flow"
} }
], ],
"valueMaps": [ "valueMaps": [
...@@ -927,38 +1063,1349 @@ ...@@ -927,38 +1063,1349 @@
"value": "null" "value": "null"
} }
] ]
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUX-LOCAL}",
"editable": true,
"error": false,
"fill": 1,
"grid": {},
"id": 8,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 2,
"points": true,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "speed(mph)",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(value) FROM speed where \"id\" = '$lanes' and $timeFilter GROUP BY time($interval) ",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
} }
], ],
"repeat": null, "thresholds": [
"repeatIteration": null, {
"repeatRowId": null, "colorMode": "critical",
"showTitle": false, "fill": true,
"title": "Row", "line": true,
"titleSize": "h6" "op": "gt"
} }
], ],
"schemaVersion": 14, "timeFrom": null,
"style": "dark", "timeShift": null,
"tags": [], "title": "Vehicels Speed",
"templating": { "tooltip": {
"list": [ "msResolution": true,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{ {
"allValue": null, "format": "short",
"current": { "label": null,
"isNone": true, "logBase": 1,
"text": "None", "max": null,
"value": "" "min": null,
"show": true
}, },
"datasource": "influx-local", {
"hide": 0, "format": "short",
"includeAll": false, "label": null,
"label": "traffic-lane", "logBase": 1,
"multi": false, "max": null,
"name": "lanes", "min": null,
"options": [], "show": true
"query": "SHOW TAG VALUES WITH KEY = \"id\"", }
"refresh": 1, ]
"regex": "/thing/traffic-lane*/", },
{
"colors": [
"#bf1b00",
"#629e51",
"rgba(8, 8, 7, 0)"
],
"datasource": "${DS_INFLUX-LOCAL}",
"decimals": 0,
"fontSizes": [
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
22,
24,
26,
28,
30,
32,
34,
36,
38,
40,
42,
44,
46,
48,
50,
52,
54,
56,
58,
60,
62,
64,
66,
68,
70
],
"fontTypes": [
"Arial",
"Avant Garde",
"Bookman",
"Consolas",
"Courier",
"Courier New",
"Garamond",
"Helvetica",
"Open Sans",
"Palatino",
"Times",
"Times New Roman",
"Verdana"
],
"format": "velocitymph",
"gauge": {
"animateNeedleValueTransition": true,
"animateNeedleValueTransitionSpeed": 100,
"edgeWidth": 0,
"gaugeRadius": 0,
"gaugeUnits": "",
"innerCol": "rgba(38, 38, 38, 0)",
"labelFontSize": 18,
"maxNeedleAngle": 320,
"maxTickAngle": 300,
"maxValue": 100,
"minValue": 0,
"needleCol": "rgb(255, 255, 255)",
"needleLengthNeg": 0.2,
"needleTickGap": 0.05,
"needleWidth": 5,
"outerEdgeCol": "rgba(229, 172, 14, 0)",
"padding": 0.05,
"pivotCol": "rgb(68, 68, 68)",
"pivotRadius": 0.1,
"show": true,
"showLowerThresholdRange": true,
"showMiddleThresholdRange": true,
"showThresholdColorOnBackground": true,
"showThresholdColorOnValue": false,
"showThresholdOnGauge": true,
"showUpperThresholdRange": true,
"tickColMaj": "#508642",
"tickColMin": "rgba(0, 0, 0, 0)",
"tickEdgeGap": 0.05,
"tickFont": "Open Sans",
"tickLabelCol": "rgb(255, 255, 255)",
"tickLengthMaj": 0.15,
"tickLengthMin": 0.05,
"tickSpaceMajVal": 10,
"tickSpaceMinVal": 1,
"tickWidthMaj": 5,
"tickWidthMin": 1,
"ticknessGaugeBasis": 200,
"unitsFont": "Open Sans",
"unitsLabelCol": "rgb(255, 255, 255)",
"unitsLabelFontSize": 22,
"valueYOffset": 0,
"zeroNeedleAngle": 40,
"zeroTickAngle": 60
},
"gaugeDivId": "d3gauge_svg_16",
"id": 16,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"operatorName": "current",
"operatorNameOptions": [
"min",
"max",
"avg",
"current",
"total",
"name"
],
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"span": 2,
"svgContainer": {},
"targets": [
{
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "/^$lanes$/",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT last(value) FROM speed where \"id\" = '$lanes' and $timeFilter GROUP BY time($interval) ",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"thresholds": "40,60",
"tickMaps": [],
"title": "Current Vehicle Speed",
"type": "briangann-gauge-panel",
"unitFormats": [
{
"submenu": [
{
"click": "menuItemSelected(0,0)",
"text": "none",
"value": "none"
},
{
"click": "menuItemSelected(0,1)",
"text": "short",
"value": "short"
},
{
"click": "menuItemSelected(0,2)",
"text": "percent (0-100)",
"value": "percent"
},
{
"click": "menuItemSelected(0,3)",
"text": "percent (0.0-1.0)",
"value": "percentunit"
},
{
"click": "menuItemSelected(0,4)",
"text": "Humidity (%H)",
"value": "humidity"
},
{
"click": "menuItemSelected(0,5)",
"text": "ppm",
"value": "ppm"
},
{
"click": "menuItemSelected(0,6)",
"text": "decibel",
"value": "dB"
},
{
"click": "menuItemSelected(0,7)",
"text": "hexadecimal (0x)",
"value": "hex0x"
},
{
"click": "menuItemSelected(0,8)",
"text": "hexadecimal",
"value": "hex"
},
{
"click": "menuItemSelected(0,9)",
"text": "scientific notation",
"value": "sci"
},
{
"click": "menuItemSelected(0,10)",
"text": "locale format",
"value": "locale"
}
],
"text": "none"
},
{
"submenu": [
{
"click": "menuItemSelected(1,0)",
"text": "Dollars ($)",
"value": "currencyUSD"
},
{
"click": "menuItemSelected(1,1)",
"text": "Pounds (£)",
"value": "currencyGBP"
},
{
"click": "menuItemSelected(1,2)",
"text": "Euro (€)",
"value": "currencyEUR"
},
{
"click": "menuItemSelected(1,3)",
"text": "Yen (¥)",
"value": "currencyJPY"
},
{
"click": "menuItemSelected(1,4)",
"text": "Rubles (₽)",
"value": "currencyRUB"
},
{
"click": "menuItemSelected(1,5)",
"text": "Hryvnias (₴)",
"value": "currencyUAH"
},
{
"click": "menuItemSelected(1,6)",
"text": "Real (R$)",
"value": "currencyBRL"
},
{
"click": "menuItemSelected(1,7)",
"text": "Danish Krone (kr)",
"value": "currencyDKK"
},
{
"click": "menuItemSelected(1,8)",
"text": "Icelandic Krone (kr)",
"value": "currencyISK"
},
{
"click": "menuItemSelected(1,9)",
"text": "Norwegian Krone (kr)",
"value": "currencyNOK"
},
{
"click": "menuItemSelected(1,10)",
"text": "Swedish Krone (kr)",
"value": "currencySEK"
}
],
"text": "currency"
},
{
"submenu": [
{
"click": "menuItemSelected(2,0)",
"text": "Hertz (1/s)",
"value": "hertz"
},
{
"click": "menuItemSelected(2,1)",
"text": "nanoseconds (ns)",
"value": "ns"
},
{
"click": "menuItemSelected(2,2)",
"text": "microseconds (µs)",
"value": "µs"
},
{
"click": "menuItemSelected(2,3)",
"text": "milliseconds (ms)",
"value": "ms"
},
{
"click": "menuItemSelected(2,4)",
"text": "seconds (s)",
"value": "s"
},
{
"click": "menuItemSelected(2,5)",
"text": "minutes (m)",
"value": "m"
},
{
"click": "menuItemSelected(2,6)",
"text": "hours (h)",
"value": "h"
},
{
"click": "menuItemSelected(2,7)",
"text": "days (d)",
"value": "d"
},
{
"click": "menuItemSelected(2,8)",
"text": "duration (ms)",
"value": "dtdurationms"
},
{
"click": "menuItemSelected(2,9)",
"text": "duration (s)",
"value": "dtdurations"
}
],
"text": "time"
},
{
"submenu": [
{
"click": "menuItemSelected(3,0)",
"text": "YYYY-MM-DD HH:mm:ss",
"value": "dateTimeAsIso"
},
{
"click": "menuItemSelected(3,1)",
"text": "DD/MM/YYYY h:mm:ss a",
"value": "dateTimeAsUS"
},
{
"click": "menuItemSelected(3,2)",
"text": "From Now",
"value": "dateTimeFromNow"
}
],
"text": "date & time"
},
{
"submenu": [
{
"click": "menuItemSelected(4,0)",
"text": "bits",
"value": "bits"
},
{
"click": "menuItemSelected(4,1)",
"text": "bytes",
"value": "bytes"
},
{
"click": "menuItemSelected(4,2)",
"text": "kibibytes",
"value": "kbytes"
},
{
"click": "menuItemSelected(4,3)",
"text": "mebibytes",
"value": "mbytes"
},
{
"click": "menuItemSelected(4,4)",
"text": "gibibytes",
"value": "gbytes"
}
],
"text": "data (IEC)"
},
{
"submenu": [
{
"click": "menuItemSelected(5,0)",
"text": "bits",
"value": "decbits"
},
{
"click": "menuItemSelected(5,1)",
"text": "bytes",
"value": "decbytes"
},
{
"click": "menuItemSelected(5,2)",
"text": "kilobytes",
"value": "deckbytes"
},
{
"click": "menuItemSelected(5,3)",
"text": "megabytes",
"value": "decmbytes"
},
{
"click": "menuItemSelected(5,4)",
"text": "gigabytes",
"value": "decgbytes"
}
],
"text": "data (Metric)"
},
{
"submenu": [
{
"click": "menuItemSelected(6,0)",
"text": "packets/sec",
"value": "pps"
},
{
"click": "menuItemSelected(6,1)",
"text": "bits/sec",
"value": "bps"
},
{
"click": "menuItemSelected(6,2)",
"text": "bytes/sec",
"value": "Bps"
},
{
"click": "menuItemSelected(6,3)",
"text": "kilobits/sec",
"value": "Kbits"
},
{
"click": "menuItemSelected(6,4)",
"text": "kilobytes/sec",
"value": "KBs"
},
{
"click": "menuItemSelected(6,5)",
"text": "megabits/sec",
"value": "Mbits"
},
{
"click": "menuItemSelected(6,6)",
"text": "megabytes/sec",
"value": "MBs"
},
{
"click": "menuItemSelected(6,7)",
"text": "gigabytes/sec",
"value": "GBs"
},
{
"click": "menuItemSelected(6,8)",
"text": "gigabits/sec",
"value": "Gbits"
}
],
"text": "data rate"
},
{
"submenu": [
{
"click": "menuItemSelected(7,0)",
"text": "ops/sec (ops)",
"value": "ops"
},
{
"click": "menuItemSelected(7,1)",
"text": "reads/sec (rps)",
"value": "rps"
},
{
"click": "menuItemSelected(7,2)",
"text": "writes/sec (wps)",
"value": "wps"
},
{
"click": "menuItemSelected(7,3)",
"text": "I/O ops/sec (iops)",
"value": "iops"
},
{
"click": "menuItemSelected(7,4)",
"text": "ops/min (opm)",
"value": "opm"
},
{
"click": "menuItemSelected(7,5)",
"text": "reads/min (rpm)",
"value": "rpm"
},
{
"click": "menuItemSelected(7,6)",
"text": "writes/min (wpm)",
"value": "wpm"
}
],
"text": "throughput"
},
{
"submenu": [
{
"click": "menuItemSelected(8,0)",
"text": "millimetre (mm)",
"value": "lengthmm"
},
{
"click": "menuItemSelected(8,1)",
"text": "meter (m)",
"value": "lengthm"
},
{
"click": "menuItemSelected(8,2)",
"text": "kilometer (km)",
"value": "lengthkm"
},
{
"click": "menuItemSelected(8,3)",
"text": "mile (mi)",
"value": "lengthmi"
}
],
"text": "length"
},
{
"submenu": [
{
"click": "menuItemSelected(9,0)",
"text": "milligram (mg)",
"value": "massmg"
},
{
"click": "menuItemSelected(9,1)",
"text": "gram (g)",
"value": "massg"
},
{
"click": "menuItemSelected(9,2)",
"text": "kilogram (kg)",
"value": "masskg"
},
{
"click": "menuItemSelected(9,3)",
"text": "metric ton (t)",
"value": "masst"
}
],
"text": "mass"
},
{
"submenu": [
{
"click": "menuItemSelected(10,0)",
"text": "m/s",
"value": "velocityms"
},
{
"click": "menuItemSelected(10,1)",
"text": "km/h",
"value": "velocitykmh"
},
{
"click": "menuItemSelected(10,2)",
"text": "mph",
"value": "velocitymph"
},
{
"click": "menuItemSelected(10,3)",
"text": "knot (kn)",
"value": "velocityknot"
}
],
"text": "velocity"
},
{
"submenu": [
{
"click": "menuItemSelected(11,0)",
"text": "millilitre",
"value": "mlitre"
},
{
"click": "menuItemSelected(11,1)",
"text": "litre",
"value": "litre"
},
{
"click": "menuItemSelected(11,2)",
"text": "cubic metre",
"value": "m3"
},
{
"click": "menuItemSelected(11,3)",
"text": "cubic decimetre",
"value": "dm3"
},
{
"click": "menuItemSelected(11,4)",
"text": "gallons",
"value": "gallons"
}
],
"text": "volume"
},
{
"submenu": [
{
"click": "menuItemSelected(12,0)",
"text": "watt (W)",
"value": "watt"
},
{
"click": "menuItemSelected(12,1)",
"text": "kilowatt (kW)",
"value": "kwatt"
},
{
"click": "menuItemSelected(12,2)",
"text": "volt-ampere (VA)",
"value": "voltamp"
},
{
"click": "menuItemSelected(12,3)",
"text": "kilovolt-ampere (kVA)",
"value": "kvoltamp"
},
{
"click": "menuItemSelected(12,4)",
"text": "volt-ampere reactive (var)",
"value": "voltampreact"
},
{
"click": "menuItemSelected(12,5)",
"text": "kilovolt-ampere reactive (kvar)",
"value": "kvoltampreact"
},
{
"click": "menuItemSelected(12,6)",
"text": "watt-hour (Wh)",
"value": "watth"
},
{
"click": "menuItemSelected(12,7)",
"text": "kilowatt-hour (kWh)",
"value": "kwatth"
},
{
"click": "menuItemSelected(12,8)",
"text": "joule (J)",
"value": "joule"
},
{
"click": "menuItemSelected(12,9)",
"text": "electron volt (eV)",
"value": "ev"
},
{
"click": "menuItemSelected(12,10)",
"text": "Ampere (A)",
"value": "amp"
},
{
"click": "menuItemSelected(12,11)",
"text": "Kiloampere (kA)",
"value": "kamp"
},
{
"click": "menuItemSelected(12,12)",
"text": "Volt (V)",
"value": "volt"
},
{
"click": "menuItemSelected(12,13)",
"text": "Kilovolt (kV)",
"value": "kvolt"
},
{
"click": "menuItemSelected(12,14)",
"text": "Decibel-milliwatt (dBm)",
"value": "dBm"
}
],
"text": "energy"
},
{
"submenu": [
{
"click": "menuItemSelected(13,0)",
"text": "Celsius (°C)",
"value": "celsius"
},
{
"click": "menuItemSelected(13,1)",
"text": "Farenheit (°F)",
"value": "farenheit"
},
{
"click": "menuItemSelected(13,2)",
"text": "Kelvin (K)",
"value": "kelvin"
}
],
"text": "temperature"
},
{
"submenu": [
{
"click": "menuItemSelected(14,0)",
"text": "Millibars",
"value": "pressurembar"
},
{
"click": "menuItemSelected(14,1)",
"text": "Bars",
"value": "pressurebar"
},
{
"click": "menuItemSelected(14,2)",
"text": "Kilobars",
"value": "pressurekbar"
},
{
"click": "menuItemSelected(14,3)",
"text": "Hectopascals",
"value": "pressurehpa"
},
{
"click": "menuItemSelected(14,4)",
"text": "Inches of mercury",
"value": "pressurehg"
},
{
"click": "menuItemSelected(14,5)",
"text": "PSI",
"value": "pressurepsi"
}
],
"text": "pressure"
},
{
"submenu": [
{
"click": "menuItemSelected(15,0)",
"text": "Newton-meters (Nm)",
"value": "forceNm"
},
{
"click": "menuItemSelected(15,1)",
"text": "Kilonewton-meters (kNm)",
"value": "forcekNm"
},
{
"click": "menuItemSelected(15,2)",
"text": "Newtons (N)",
"value": "forceN"
},
{
"click": "menuItemSelected(15,3)",
"text": "Kilonewtons (kN)",
"value": "forcekN"
}
],
"text": "force"
},
{
"submenu": [
{
"click": "menuItemSelected(16,0)",
"text": "Gallons/min (gpm)",
"value": "flowgpm"
},
{
"click": "menuItemSelected(16,1)",
"text": "Cubic meters/sec (cms)",
"value": "flowcms"
},
{
"click": "menuItemSelected(16,2)",
"text": "Cubic feet/sec (cfs)",
"value": "flowcfs"
},
{
"click": "menuItemSelected(16,3)",
"text": "Cubic feet/min (cfm)",
"value": "flowcfm"
}
],
"text": "flow"
}
],
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
]
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Row",
"titleSize": "h6"
},
{
"collapse": false,
"height": 359,
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_INFLUX-LOCAL}",
"editable": true,
"error": false,
"fill": 1,
"grid": {},
"id": 7,
"legend": {
"alignAsTable": true,
"avg": true,
"current": false,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 2,
"points": true,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "num of pedestrians",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(value) FROM pedestrianCount where \"id\" = '$crosswalks' and $timeFilter GROUP BY time($interval) ",
"rawQuery": true,
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
},
{
"alias": "speed(meters/hour)",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(value) FROM speed where \"id\" = '$crosswalks' and $timeFilter GROUP BY time($interval) ",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"thresholds": [],
"timeFrom": null,
"timeShift": null,
"title": "CrossWalk Speed & Count",
"tooltip": {
"msResolution": true,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateSpectral",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "timeseries",
"datasource": "${DS_INFLUX-LOCAL}",
"heatmap": {},
"highlightCards": true,
"id": 9,
"legend": {
"show": false
},
"links": [],
"span": 4,
"targets": [
{
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "/^$lanes$/",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(value) FROM speed where \"id\" = '$lanes' and $timeFilter GROUP BY time($interval)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"title": "Speed Histogram",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "velocitykmh",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketNumber": null,
"yBucketSize": null
},
{
"cards": {
"cardPadding": null,
"cardRound": null
},
"color": {
"cardColor": "#b4ff00",
"colorScale": "sqrt",
"colorScheme": "interpolateSpectral",
"exponent": 0.5,
"mode": "spectrum"
},
"dataFormat": "timeseries",
"datasource": "${DS_INFLUX-LOCAL}",
"heatmap": {},
"highlightCards": true,
"id": 13,
"legend": {
"show": false
},
"links": [],
"span": 4,
"targets": [
{
"dsType": "influxdb",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "/^$lanes$/",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT first(value) FROM vehicleCount where \"id\" = '$lanes' and $timeFilter GROUP BY time($interval)",
"rawQuery": true,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"title": "Vehicle Count Histogram",
"tooltip": {
"show": true,
"showHistogram": false
},
"type": "heatmap",
"xAxis": {
"show": true
},
"xBucketNumber": null,
"xBucketSize": null,
"yAxis": {
"decimals": null,
"format": "short",
"logBase": 1,
"max": null,
"min": null,
"show": true,
"splitFactor": null
},
"yBucketNumber": null,
"yBucketSize": null
}
],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": false,
"title": "Dashboard Row",
"titleSize": "h6"
}
],
"schemaVersion": 14,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_INFLUX-LOCAL}",
"hide": 0,
"includeAll": false,
"label": "traffic-lane",
"multi": false,
"name": "lanes",
"options": [],
"query": "SHOW TAG VALUES WITH KEY = \"id\"",
"refresh": 1,
"regex": "/thing/traffic-lane*/",
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_INFLUX-LOCAL}",
"hide": 0,
"includeAll": false,
"label": "crosswalks",
"multi": false,
"name": "crosswalks",
"options": [],
"query": "SHOW TAG VALUES WITH KEY = \"id\"",
"refresh": 1,
"regex": "/thing/crossWalk*/",
"sort": 0, "sort": 0,
"tagValuesQuery": "", "tagValuesQuery": "",
"tags": [], "tags": [],
...@@ -969,7 +2416,7 @@ ...@@ -969,7 +2416,7 @@
] ]
}, },
"time": { "time": {
"from": "now-12h", "from": "now-2d",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
...@@ -999,5 +2446,5 @@ ...@@ -999,5 +2446,5 @@
}, },
"timezone": "browser", "timezone": "browser",
"title": "test", "title": "test",
"version": 28 "version": 20
} }
\ No newline at end of file
...@@ -94,7 +94,7 @@ services: ...@@ -94,7 +94,7 @@ services:
- "8300:8000" - "8300:8000"
- "50035:50035" - "50035:50035"
extra_hosts: extra_hosts:
- "data.cityofchicago.org:172.16.1.244" - "data.cityofchicago.org:172.16.1.72"
####### parking ################### ####### parking ###################
parking: parking:
environment: environment:
...@@ -155,6 +155,7 @@ services: ...@@ -155,6 +155,7 @@ services:
- "50005:50005" - "50005:50005"
volumes: volumes:
- "/opt/mcx/config/repo/public-safety:/opt/mcx/config/repo/public-safety" - "/opt/mcx/config/repo/public-safety:/opt/mcx/config/repo/public-safety"
- "/opt/mcx/config/public-safety/sensors.chicago.json:/opt/mcx/config/sensors.chicago.json"
networks: networks:
- backend - backend
ui-api: ui-api:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment