From 383b7f6ed9386e42d15d9acba237ed831c01fa3c Mon Sep 17 00:00:00 2001 From: smash Date: Thu, 22 Oct 2020 14:16:30 +0200 Subject: [PATCH] correction cut/engrave for case, first version of grafana dashboard --- co2-dashboard.json | 213 ++++++++++++++++++++++++++++++++++++++++ lasercut_case/front.svg | 161 +++++++++++++++--------------- 2 files changed, 292 insertions(+), 82 deletions(-) create mode 100644 co2-dashboard.json diff --git a/co2-dashboard.json b/co2-dashboard.json new file mode 100644 index 0000000..bfe35e2 --- /dev/null +++ b/co2-dashboard.json @@ -0,0 +1,213 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "gnetId": null, + "graphTooltip": 0, + "id": 1, + "iteration": 1600168251672, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 17, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 2, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "CO2 $co2name", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "none" + ], + "type": "fill" + } + ], + "measurement": "mqtt_consumer", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "topic", + "operator": "=", + "value": "co2ampel/$co2name/sensor/${co2name}_ppm/state" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "co2 $co2name", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:775", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "400", + "show": true + }, + { + "$$hashKey": "object:776", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "10s", + "schemaVersion": 26, + "style": "dark", + "tags": [], + "templating": { + "list": [ + { + "allValue": null, + "current": { + "selected": false, + "text": "smash", + "value": "smash" + }, + "datasource": "InfluxDB", + "definition": "show tag values with key = \"topic\"", + "hide": 0, + "includeAll": false, + "label": null, + "multi": false, + "name": "co2name", + "options": [], + "query": "show tag values with key = \"topic\"", + "refresh": 2, + "regex": "/\\/(.*?)\\//", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ] + }, + "timezone": "", + "title": "co2", + "uid": "1axlpIdGk", + "version": 7 +} diff --git a/lasercut_case/front.svg b/lasercut_case/front.svg index eaef8d1..d7af2f8 100644 --- a/lasercut_case/front.svg +++ b/lasercut_case/front.svg @@ -26,7 +26,7 @@ inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.2755859" - inkscape:cx="294.46759" + inkscape:cx="138.46085" inkscape:cy="247.89585" inkscape:document-units="mm" inkscape:current-layer="layer1" @@ -35,10 +35,10 @@ fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" - inkscape:window-width="1920" - inkscape:window-height="1052" + inkscape:window-width="1280" + inkscape:window-height="967" inkscape:window-x="0" - inkscape:window-y="1080" + inkscape:window-y="0" inkscape:window-maximized="1" /> @@ -48,7 +48,7 @@ image/svg+xml - + smash@hacktick.de @@ -79,85 +79,82 @@ inkscape:groupmode="layer" id="layer1" transform="translate(20.303269,-37.747719)"> + + + + id="text5255" + style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7.76111126px;line-height:1.25;font-family:'High Score';-inkscape-font-specification:'High Score';letter-spacing:0px;word-spacing:0px;fill:none;fill-opacity:1;stroke:#0000ff;stroke-width:0.26458332;stroke-opacity:1" + aria-label="CO2 Ampel" + transform="translate(-20.303269,-73.335611)"> - - - - - - - - - - - - - - + id="path8144" + style="fill:none;fill-opacity:1;stroke:#0000ff;stroke-width:0.26458332;stroke-opacity:1" + d="m 37.808767,122.69568 v -0.24253 h 0.242535 v 0.24253 z m 0.242535,-0.24253 v -0.24254 h 0.242534 v 0.24254 z m 0.242534,-0.24254 v -0.7276 H 35.38342 v -2.66788 h 2.425347 v 0.24253 h -2.182813 v 2.18281 h 2.910417 v 0.97014 z m -0.485069,-3.39548 v -0.24254 h 0.242535 v 0.24254 z m 0.242535,-0.24254 v -0.24253 h 0.242534 v 0.24253 z m -4.123091,4.36563 v -4.8507 h 0.242535 v 4.60816 h 3.638021 v 0.24254 z m 0.242535,-4.8507 v -0.24253 h 0.242535 v 0.24253 z m 0.242535,-0.24253 v -0.24254 h 0.242534 v 0.24254 z m 3.880555,0.48507 v -0.72761 h -3.638021 v -0.24253 h 3.880556 v 0.97014 z" + inkscape:connector-curvature="0" /> + + + + + + + + +