Grafana dashboard: Indoor Localization
Description: Pruebas

sdtyuop

{
  "__inputs": [
    {
      "name": "DS_POSTGRESQL",
      "label": "PostgreSQL",
      "description": "",
      "type": "datasource",
      "pluginId": "postgres",
      "pluginName": "PostgreSQL"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.1.2"
    },
    {
      "type": "panel",
      "id": "larona-epict-panel",
      "name": "epict Panel",
      "version": "1.2.2"
    },
    {
      "type": "panel",
      "id": "natel-plotly-panel",
      "name": "Plotly",
      "version": "0.0.6"
    },
    {
      "type": "datasource",
      "id": "postgres",
      "name": "PostgreSQL",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12795,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "bgColor": null,
      "bgURL": "\\public\\img\\indoors.jpeg",
      "boxes": [],
      "datasource": "-- Grafana --",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 11,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "pluginVersion": "7.1.2",
      "timeFrom": null,
      "timeShift": null,
      "title": "Plano",
      "type": "larona-epict-panel"
    },
    {
      "datasource": "${DS_POSTGRESQL}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 10,
        "x": 11,
        "y": 0
      },
      "id": 2,
      "pconfig": {
        "fixScale": "",
        "layout": {
          "dragmode": "lasso",
          "font": {
            "family": "\"Open Sans\", Helvetica, Arial, sans-serif"
          },
          "hovermode": "closest",
          "legend": {
            "orientation": "h"
          },
          "showlegend": false,
          "xaxis": {
            "range": [
              0,
              16
            ],
            "rangemode": "between",
            "showgrid": true,
            "type": "linear",
            "zeroline": false
          },
          "yaxis": {
            "range": [
              0,
              7
            ],
            "rangemode": "between",
            "showgrid": true,
            "type": "linear",
            "zeroline": false
          },
          "zaxis": {
            "rangemode": "normal",
            "showgrid": true,
            "type": "linear",
            "zeroline": false
          }
        },
        "loadFromCDN": false,
        "settings": {
          "displayModeBar": false,
          "type": "scatter"
        },
        "showAnnotations": true,
        "traces": [
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_5",
              "x": "last_y_5",
              "y": "last_x_5",
              "z": null
            },
            "name": "Tag 5",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#37872D",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_6",
              "x": "last_y_6",
              "y": "last_x_6",
              "z": null
            },
            "name": "Tag 6",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#E0B400",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_7",
              "x": "last_y_7",
              "y": "last_x_7",
              "z": null
            },
            "name": "Tag 7",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#C4162A",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_8",
              "x": "last_y_8",
              "y": "last_x_8",
              "z": null
            },
            "name": "Tag 8",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#1F60C4",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_9",
              "x": "last_y_9",
              "y": "last_x_9",
              "z": null
            },
            "name": "Tag 9",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#FA6400",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_10",
              "x": "last_y_10",
              "y": "last_x_10",
              "z": null
            },
            "name": "Tag 10",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#8F3BB8",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          },
          {
            "mapping": {
              "color": "last_x_5",
              "size": null,
              "text": "id_11",
              "x": "last_y_11",
              "y": "last_x_11",
              "z": null
            },
            "name": "Tag 11",
            "settings": {
              "color_option": "solid",
              "line": {
                "color": "#005f81",
                "dash": "solid",
                "shape": "linear",
                "width": 6
              },
              "marker": {
                "color": "#FFA6B0",
                "colorscale": "YlOrRd",
                "line": {
                  "color": "#DDD",
                  "width": 0
                },
                "showscale": false,
                "size": 15,
                "sizemin": 3,
                "sizemode": "diameter",
                "sizeref": 0.2,
                "symbol": "circle"
              },
              "textposition": "top"
            },
            "show": {
              "line": true,
              "lines": false,
              "markers": true
            }
          }
        ]
      },
      "pluginVersion": "7.1.2",
      "targets": [
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_5\",\n  last_y AS \"last_y_5\",\n  asset_id AS \"id_5\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 5\nORDER BY 1",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_5"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_5"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_5"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "5"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_6\",\n  last_y AS \"last_y_6\",\n  asset_id AS \"id_6\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 6\nORDER BY 1",
          "refId": "B",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_6"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_6"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_6"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "6"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_7\",\n  last_y AS \"last_y_7\",\n  asset_id AS \"id_7\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 7\nORDER BY 1",
          "refId": "C",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_7"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_7"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_7"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "7"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_8\",\n  last_y AS \"last_y_8\",\n  asset_id AS \"id_8\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 8\nORDER BY 1",
          "refId": "D",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_8"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_8"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_8"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "8"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_9\",\n  last_y AS \"last_y_9\",\n  asset_id AS \"id_9\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 9\nORDER BY 1",
          "refId": "E",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_9"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_9"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_9"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "9"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_10\",\n  last_y AS \"last_y_10\",\n  asset_id AS \"id_10\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 10\nORDER BY 1",
          "refId": "F",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_10"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_10"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_10"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "10"
              ],
              "type": "expression"
            }
          ]
        },
        {
          "format": "time_series",
          "group": [],
          "metricColumn": "none",
          "rawQuery": false,
          "rawSql": "SELECT\n  \"timestamp\" AS \"time\",\n  last_x AS \"last_x_11\",\n  last_y AS \"last_y_11\",\n  asset_id AS \"id_11\"\nFROM \"position\"\nWHERE\n  $__timeFilter(\"timestamp\") AND\n  asset_id = 11\nORDER BY 1",
          "refId": "G",
          "select": [
            [
              {
                "params": [
                  "last_x"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_x_11"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "last_y"
                ],
                "type": "column"
              },
              {
                "params": [
                  "last_y_11"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "asset_id"
                ],
                "type": "column"
              },
              {
                "params": [
                  "id_11"
                ],
                "type": "alias"
              }
            ]
          ],
          "table": "\"position\"",
          "timeColumn": "\"timestamp\"",
          "timeColumnType": "timestamptz",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            },
            {
              "datatype": "int4",
              "name": "",
              "params": [
                "asset_id",
                "=",
                "11"
              ],
              "type": "expression"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Position",
      "type": "natel-plotly-panel",
      "version": 1
    }
  ],
  "refresh": "5s",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-15s",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Indoor Localization",
  "uid": "0tsuv7IMz",
  "version": 15,
  "description": "Pruebas"
}