Grafana dashboard: Synthèse
Description: Electricité, température, météo, activité


{
  "__inputs": [
    {
      "name": "DS_TEMPERATURES",
      "label": "Temperatures",
      "description": "",
      "type": "datasource",
      "pluginId": "frser-sqlite-datasource",
      "pluginName": "SQLite"
    },
    {
      "name": "DS_INFINITYTEST",
      "label": "InfinityTest",
      "description": "",
      "type": "datasource",
      "pluginId": "yesoreyeram-infinity-datasource",
      "pluginName": "Infinity"
    },
    {
      "name": "DS_INFINITY",
      "label": "Infinity",
      "description": "",
      "type": "datasource",
      "pluginId": "yesoreyeram-infinity-datasource",
      "pluginName": "Infinity"
    },
    {
      "name": "DS_DÉTECTIONS_V2",
      "label": "Détections V2",
      "description": "",
      "type": "datasource",
      "pluginId": "frser-sqlite-datasource",
      "pluginName": "SQLite"
    }
  ],
  "__elements": [
    {
      "name": "Températures Synthèse",
      "uid": "_6C9GEgRk",
      "kind": 1,
      "model": {
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "continuous-BlYlRd"
            },
            "mappings": [],
            "thresholds": {
              "mode": "percentage",
              "steps": [
                {
                  "color": "light-blue",
                  "value": null
                }
              ]
            }
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "Tempérture intérieure"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "mode": "thresholds"
                  }
                },
                {
                  "id": "thresholds",
                  "value": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "semi-dark-blue",
                        "value": null
                      },
                      {
                        "color": "yellow",
                        "value": 19
                      },
                      {
                        "color": "orange",
                        "value": 21
                      },
                      {
                        "color": "dark-red",
                        "value": 26
                      },
                      {
                        "color": "dark-purple",
                        "value": 28
                      }
                    ]
                  }
                },
                {
                  "id": "max",
                  "value": 30
                },
                {
                  "id": "min",
                  "value": 16
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Tempérture extérieure"
              },
              "properties": [
                {
                  "id": "min"
                },
                {
                  "id": "max",
                  "value": 40
                },
                {
                  "id": "color",
                  "value": {
                    "mode": "continuous-BlYlRd"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Tempérture piscine"
              },
              "properties": [
                {
                  "id": "min",
                  "value": 0
                },
                {
                  "id": "max",
                  "value": 35
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 0
        },
        "id": 8,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true
        },
        "pluginVersion": "8.3.4",
        "targets": [
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_TEMPERATURES}"
            },
            "queryText": "Select \ntimestamp as time,\nT_int as \"Tempérture intérieure\"\nfrom temperatures",
            "queryType": "table",
            "rawQueryText": "Select \ntimestamp as time,\nT_int as \"Tempérture intérieure\"\nfrom temperatures",
            "refId": "A",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_TEMPERATURES}"
            },
            "hide": false,
            "queryText": "Select \ntimestamp as time,\nT_ext as \"Tempérture extérieure\"\nfrom temperatures",
            "queryType": "table",
            "rawQueryText": "Select \ntimestamp as time,\nT_ext as \"Tempérture extérieure\"\nfrom temperatures",
            "refId": "B",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_TEMPERATURES}"
            },
            "hide": false,
            "queryText": "Select \ntimestamp as time,\nT_eau as \"Tempérture piscine\"\nfrom temperatures",
            "queryType": "table",
            "rawQueryText": "Select \ntimestamp as time,\nT_eau as \"Tempérture piscine\"\nfrom temperatures",
            "refId": "C",
            "timeColumns": [
              "time",
              "ts"
            ]
          }
        ],
        "title": "Températures",
        "type": "gauge"
      }
    },
    {
      "name": "Météo",
      "uid": "72oznPgRz",
      "kind": 1,
      "model": {
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "${DS_INFINITYTEST}"
        },
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 50,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                }
              ]
            },
            "unit": "velocitykmh"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "B Couverture nuageuse"
              },
              "properties": [
                {
                  "id": "unit",
                  "value": "percent"
                },
                {
                  "id": "thresholds",
                  "value": {
                    "mode": "percentage",
                    "steps": [
                      {
                        "color": "blue",
                        "value": null
                      },
                      {
                        "color": "text",
                        "value": 50
                      },
                      {
                        "color": "#504f4f",
                        "value": 80
                      }
                    ]
                  }
                },
                {
                  "id": "displayName",
                  "value": "Couverture nuageuse"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "A Vitesse du vent"
              },
              "properties": [
                {
                  "id": "thresholds",
                  "value": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "green",
                        "value": null
                      },
                      {
                        "color": "yellow",
                        "value": 10
                      },
                      {
                        "color": "orange",
                        "value": 20
                      },
                      {
                        "color": "red",
                        "value": 30
                      },
                      {
                        "color": "dark-purple",
                        "value": 50
                      }
                    ]
                  }
                },
                {
                  "id": "displayName",
                  "value": "Vitesse du vent"
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 8
        },
        "id": 12,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "8.3.4",
        "targets": [
          {
            "cacheDurationSeconds": 300,
            "columns": [
              {
                "selector": "metrics.title",
                "text": "Vitesse du vent",
                "type": "string"
              },
              {
                "selector": "metrics.level",
                "text": "Vitesse du vent",
                "type": "number"
              },
              {
                "selector": "id",
                "text": "id1",
                "type": "string"
              }
            ],
            "datasource": {
              "type": "yesoreyeram-infinity-datasource",
              "uid": "${DS_INFINITYTEST}"
            },
            "fields": [
              {
                "jsonPath": ""
              }
            ],
            "filters": [
              {
                "field": "id1",
                "operator": "equals",
                "value": [
                  "HTTP_Device_sensorMultilevel_36"
                ]
              }
            ],
            "format": "table",
            "global_query_id": "",
            "hide": false,
            "method": "GET",
            "queryParams": "",
            "refId": "A",
            "root_selector": "",
            "source": "url",
            "type": "json",
            "url": "http://192.168.1.9:8083/JS/Run/controller.devices",
            "urlPath": "",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          },
          {
            "columns": [
              {
                "selector": "metrics.title",
                "text": "Couverture nuageuse2",
                "type": "string"
              },
              {
                "selector": "id",
                "text": "id2",
                "type": "string"
              },
              {
                "selector": "metrics.level",
                "text": "Couverture nuageuse",
                "type": "number"
              }
            ],
            "datasource": {
              "type": "yesoreyeram-infinity-datasource",
              "uid": "${DS_INFINITYTEST}"
            },
            "filters": [
              {
                "field": "id2",
                "operator": "equals",
                "value": [
                  "HTTP_Device_sensorMultilevel_110"
                ]
              }
            ],
            "format": "table",
            "global_query_id": "",
            "hide": false,
            "refId": "B",
            "root_selector": "",
            "source": "url",
            "type": "json",
            "url": "http://192.168.1.9:8083/JS/Run/controller.devices",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          }
        ],
        "title": "Météo",
        "type": "gauge"
      }
    },
    {
      "name": "Conso",
      "uid": "-f9QMPRgk",
      "kind": 1,
      "model": {
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "${DS_INFINITY}"
        },
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 6000,
            "min": 0,
            "thresholds": {
              "mode": "percentage",
              "steps": [
                {
                  "color": "dark-green",
                  "value": null
                },
                {
                  "color": "semi-dark-green",
                  "value": 10
                },
                {
                  "color": "super-light-yellow",
                  "value": 20.0001
                },
                {
                  "color": "semi-dark-yellow",
                  "value": 30
                },
                {
                  "color": "#EF843C",
                  "value": 40
                },
                {
                  "color": "light-red",
                  "value": 60
                },
                {
                  "color": "dark-red",
                  "value": 80
                },
                {
                  "color": "#BA43A9",
                  "value": 90
                }
              ]
            },
            "unit": "watt"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 16
        },
        "id": 2,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true
        },
        "pluginVersion": "8.3.4",
        "targets": [
          {
            "columns": [
              {
                "selector": "W1",
                "text": "Cuis, LavLing, VMC",
                "type": "number"
              },
              {
                "selector": "W2",
                "text": "LavVaisl, Congel, Piscine",
                "type": "number"
              },
              {
                "selector": "W3",
                "text": "Four, SechLing",
                "type": "number"
              },
              {
                "selector": "WTOTAL",
                "text": "Total",
                "type": "number"
              }
            ],
            "datasource": {
              "type": "yesoreyeram-infinity-datasource",
              "uid": "${DS_INFINITY}"
            },
            "filters": [],
            "format": "table",
            "global_query_id": "",
            "queryText": "\n    SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value\n    WHERE time >= 1234 and time < 134567\n  ",
            "queryType": "table",
            "rawQueryText": "SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value \nWHERE time >= $__from / 1000 and time < $__to / 1000",
            "refId": "A",
            "root_selector": "",
            "source": "url",
            "timeColumns": [
              "time",
              "ts"
            ],
            "type": "json",
            "url": "http://192.168.1.6/index_teleinfodirect.php",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          }
        ],
        "title": "Consommation instantannée",
        "type": "gauge"
      }
    },
    {
      "name": "Nombre de détections",
      "uid": "61Rz39WRk",
      "kind": 1,
      "model": {
        "datasource": {
          "type": "frser-sqlite-datasource",
          "uid": "${DS_DÉTECTIONS_V2}"
        },
        "description": "",
        "fieldConfig": {
          "defaults": {
            "mappings": [],
            "thresholds": {
              "mode": "percentage",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "orange",
                  "value": 33
                },
                {
                  "color": "red",
                  "value": 66
                }
              ]
            }
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 24
        },
        "id": 10,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true
        },
        "pluginVersion": "8.3.4",
        "targets": [
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total depuis minuit'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime'))",
            "queryType": "table",
            "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total depuis minuit'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime'))",
            "refId": "D",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total 24h glissant'\nfrom detections2\nWHERE  datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')\n",
            "queryType": "table",
            "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total 24h glissant'\nfrom detections2\nWHERE  datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')\n",
            "refId": "B",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total semaine glissant'\nfrom detections2\nWHERE datetime(timestamp,'unixepoch','localtime') >= datetime('now','-7 day')",
            "queryType": "table",
            "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total semaine glissant'\nfrom detections2\nWHERE datetime(timestamp,'unixepoch','localtime') >= datetime('now','-7 day')",
            "refId": "C",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total quotidien avec allumage'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime')) AND Allumage=1",
            "queryType": "table",
            "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total quotidien avec allumage'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime')) AND Allumage=1",
            "refId": "A",
            "timeColumns": [
              "time",
              "ts"
            ]
          }
        ],
        "title": "Nombre de détections",
        "type": "gauge"
      }
    },
    {
      "name": "Détections du jour 24h glissant",
      "uid": "3o7XCrWRz",
      "kind": 1,
      "model": {
        "datasource": {
          "type": "frser-sqlite-datasource",
          "uid": "${DS_DÉTECTIONS_V2}"
        },
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "points",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 9,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "decimals": 1,
            "mappings": [],
            "max": 2,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            }
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "Jour"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "blue",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Nuit"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "red",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 32
        },
        "id": 6,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom"
          },
          "tooltip": {
            "mode": "single"
          }
        },
        "pluginVersion": "8.3.4",
        "targets": [
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Jour\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day') AND Allumage = 0",
            "queryType": "table",
            "rawQueryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Jour\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day') AND Allumage = 0",
            "refId": "B",
            "timeColumns": [
              "time",
              "ts"
            ]
          },
          {
            "datasource": {
              "type": "frser-sqlite-datasource",
              "uid": "${DS_DÉTECTIONS_V2}"
            },
            "hide": false,
            "queryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Nuit\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')  AND Allumage = 1",
            "queryType": "table",
            "rawQueryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Nuit\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')  AND Allumage = 1",
            "refId": "C",
            "timeColumns": [
              "time",
              "ts"
            ]
          }
        ],
        "title": "Détections du jour 24h glissant",
        "type": "timeseries"
      }
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "frser-sqlite-datasource",
      "name": "SQLite",
      "version": "2.2.1"
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.3.4"
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "yesoreyeram-infinity-datasource",
      "name": "Infinity",
      "version": "0.8.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlYlRd"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "light-blue",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Tempérture intérieure"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "thresholds"
                }
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "semi-dark-blue",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 19
                    },
                    {
                      "color": "orange",
                      "value": 21
                    },
                    {
                      "color": "dark-red",
                      "value": 26
                    },
                    {
                      "color": "dark-purple",
                      "value": 28
                    }
                  ]
                }
              },
              {
                "id": "max",
                "value": 30
              },
              {
                "id": "min",
                "value": 16
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Tempérture extérieure"
            },
            "properties": [
              {
                "id": "min"
              },
              {
                "id": "max",
                "value": 40
              },
              {
                "id": "color",
                "value": {
                  "mode": "continuous-BlYlRd"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Tempérture piscine"
            },
            "properties": [
              {
                "id": "min",
                "value": 0
              },
              {
                "id": "max",
                "value": 35
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 2,
          "created": "2022-02-23T14:34:28+01:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-02-23T14:34:28+01:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Températures Synthèse",
        "type": "gauge",
        "uid": "_6C9GEgRk",
        "version": 1
      },
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "8.3.4",
      "targets": [
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_TEMPERATURES}"
          },
          "queryText": "Select \ntimestamp as time,\nT_int as \"Tempérture intérieure\"\nfrom temperatures",
          "queryType": "table",
          "rawQueryText": "Select \ntimestamp as time,\nT_int as \"Tempérture intérieure\"\nfrom temperatures",
          "refId": "A",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_TEMPERATURES}"
          },
          "hide": false,
          "queryText": "Select \ntimestamp as time,\nT_ext as \"Tempérture extérieure\"\nfrom temperatures",
          "queryType": "table",
          "rawQueryText": "Select \ntimestamp as time,\nT_ext as \"Tempérture extérieure\"\nfrom temperatures",
          "refId": "B",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_TEMPERATURES}"
          },
          "hide": false,
          "queryText": "Select \ntimestamp as time,\nT_eau as \"Tempérture piscine\"\nfrom temperatures",
          "queryType": "table",
          "rawQueryText": "Select \ntimestamp as time,\nT_eau as \"Tempérture piscine\"\nfrom temperatures",
          "refId": "C",
          "timeColumns": [
            "time",
            "ts"
          ]
        }
      ],
      "title": "Températures",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "${DS_INFINITYTEST}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 50,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "velocitykmh"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "B Couverture nuageuse"
            },
            "properties": [
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "blue",
                      "value": null
                    },
                    {
                      "color": "text",
                      "value": 50
                    },
                    {
                      "color": "#504f4f",
                      "value": 80
                    }
                  ]
                }
              },
              {
                "id": "displayName",
                "value": "Couverture nuageuse"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "A Vitesse du vent"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 10
                    },
                    {
                      "color": "orange",
                      "value": 20
                    },
                    {
                      "color": "red",
                      "value": 30
                    },
                    {
                      "color": "dark-purple",
                      "value": 50
                    }
                  ]
                }
              },
              {
                "id": "displayName",
                "value": "Vitesse du vent"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 8
      },
      "id": 12,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 2,
          "created": "2022-02-23T14:36:57+01:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-02-23T14:36:57+01:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Météo",
        "type": "gauge",
        "uid": "72oznPgRz",
        "version": 1
      },
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.3.4",
      "targets": [
        {
          "cacheDurationSeconds": 300,
          "columns": [
            {
              "selector": "metrics.title",
              "text": "Vitesse du vent",
              "type": "string"
            },
            {
              "selector": "metrics.level",
              "text": "Vitesse du vent",
              "type": "number"
            },
            {
              "selector": "id",
              "text": "id1",
              "type": "string"
            }
          ],
          "datasource": {
            "type": "yesoreyeram-infinity-datasource",
            "uid": "${DS_INFINITYTEST}"
          },
          "fields": [
            {
              "jsonPath": ""
            }
          ],
          "filters": [
            {
              "field": "id1",
              "operator": "equals",
              "value": [
                "HTTP_Device_sensorMultilevel_36"
              ]
            }
          ],
          "format": "table",
          "global_query_id": "",
          "hide": false,
          "method": "GET",
          "queryParams": "",
          "refId": "A",
          "root_selector": "",
          "source": "url",
          "type": "json",
          "url": "http://192.168.1.9:8083/JS/Run/controller.devices",
          "urlPath": "",
          "url_options": {
            "data": "",
            "method": "GET"
          }
        },
        {
          "columns": [
            {
              "selector": "metrics.title",
              "text": "Couverture nuageuse2",
              "type": "string"
            },
            {
              "selector": "id",
              "text": "id2",
              "type": "string"
            },
            {
              "selector": "metrics.level",
              "text": "Couverture nuageuse",
              "type": "number"
            }
          ],
          "datasource": {
            "type": "yesoreyeram-infinity-datasource",
            "uid": "${DS_INFINITYTEST}"
          },
          "filters": [
            {
              "field": "id2",
              "operator": "equals",
              "value": [
                "HTTP_Device_sensorMultilevel_110"
              ]
            }
          ],
          "format": "table",
          "global_query_id": "",
          "hide": false,
          "refId": "B",
          "root_selector": "",
          "source": "url",
          "type": "json",
          "url": "http://192.168.1.9:8083/JS/Run/controller.devices",
          "url_options": {
            "data": "",
            "method": "GET"
          }
        }
      ],
      "title": "Météo",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "${DS_INFINITY}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 6000,
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              },
              {
                "color": "semi-dark-green",
                "value": 10
              },
              {
                "color": "super-light-yellow",
                "value": 20.0001
              },
              {
                "color": "semi-dark-yellow",
                "value": 30
              },
              {
                "color": "#EF843C",
                "value": 40
              },
              {
                "color": "light-red",
                "value": 60
              },
              {
                "color": "dark-red",
                "value": 80
              },
              {
                "color": "#BA43A9",
                "value": 90
              }
            ]
          },
          "unit": "watt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 16
      },
      "id": 2,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 2,
          "created": "2022-02-23T14:32:48+01:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-02-23T14:32:48+01:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Conso",
        "type": "gauge",
        "uid": "-f9QMPRgk",
        "version": 1
      },
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "8.3.4",
      "targets": [
        {
          "columns": [
            {
              "selector": "W1",
              "text": "Cuis, LavLing, VMC",
              "type": "number"
            },
            {
              "selector": "W2",
              "text": "LavVaisl, Congel, Piscine",
              "type": "number"
            },
            {
              "selector": "W3",
              "text": "Four, SechLing",
              "type": "number"
            },
            {
              "selector": "WTOTAL",
              "text": "Total",
              "type": "number"
            }
          ],
          "datasource": {
            "type": "yesoreyeram-infinity-datasource",
            "uid": "${DS_INFINITY}"
          },
          "filters": [],
          "format": "table",
          "global_query_id": "",
          "queryText": "\n    SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value\n    WHERE time >= 1234 and time < 134567\n  ",
          "queryType": "table",
          "rawQueryText": "SELECT CAST(strftime('%s', 'now', '-1 minute') as INTEGER) as time, 4 as value \nWHERE time >= $__from / 1000 and time < $__to / 1000",
          "refId": "A",
          "root_selector": "",
          "source": "url",
          "timeColumns": [
            "time",
            "ts"
          ],
          "type": "json",
          "url": "http://192.168.1.6/index_teleinfodirect.php",
          "url_options": {
            "data": "",
            "method": "GET"
          }
        }
      ],
      "title": "Consommation instantannée",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "frser-sqlite-datasource",
        "uid": "${DS_DÉTECTIONS_V2}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 33
              },
              {
                "color": "red",
                "value": 66
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 24
      },
      "id": 10,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 2,
          "created": "2022-02-13T19:33:21+01:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-02-13T19:33:21+01:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Nombre de détections",
        "type": "gauge",
        "uid": "61Rz39WRk",
        "version": 1
      },
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "8.3.4",
      "targets": [
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total depuis minuit'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime'))",
          "queryType": "table",
          "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total depuis minuit'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime'))",
          "refId": "D",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total 24h glissant'\nfrom detections2\nWHERE  datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')\n",
          "queryType": "table",
          "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total 24h glissant'\nfrom detections2\nWHERE  datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')\n",
          "refId": "B",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total semaine glissant'\nfrom detections2\nWHERE datetime(timestamp,'unixepoch','localtime') >= datetime('now','-7 day')",
          "queryType": "table",
          "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total semaine glissant'\nfrom detections2\nWHERE datetime(timestamp,'unixepoch','localtime') >= datetime('now','-7 day')",
          "refId": "C",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total quotidien avec allumage'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime')) AND Allumage=1",
          "queryType": "table",
          "rawQueryText": "Select \nCOUNT(DISTINCT timestamp) as 'Total quotidien avec allumage'\nfrom detections2\nwhere strftime('%Y-%m-%d','now') = strftime('%Y-%m-%d',datetime(timestamp,'unixepoch','localtime')) AND Allumage=1",
          "refId": "A",
          "timeColumns": [
            "time",
            "ts"
          ]
        }
      ],
      "title": "Nombre de détections",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "frser-sqlite-datasource",
        "uid": "${DS_DÉTECTIONS_V2}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "points",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 9,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 1,
          "mappings": [],
          "max": 2,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Jour"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Nuit"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 32
      },
      "id": 6,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 2,
          "created": "2022-02-13T19:30:09+01:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-02-13T19:30:09+01:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Détections du jour 24h glissant",
        "type": "timeseries",
        "uid": "3o7XCrWRz",
        "version": 1
      },
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.3.4",
      "targets": [
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Jour\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day') AND Allumage = 0",
          "queryType": "table",
          "rawQueryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Jour\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day') AND Allumage = 0",
          "refId": "B",
          "timeColumns": [
            "time",
            "ts"
          ]
        },
        {
          "datasource": {
            "type": "frser-sqlite-datasource",
            "uid": "${DS_DÉTECTIONS_V2}"
          },
          "hide": false,
          "queryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Nuit\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')  AND Allumage = 1",
          "queryType": "table",
          "rawQueryText": "Select \ntimestamp as time,\n1*timestamp/timestamp as \"Nuit\"\nfrom detections2\nwhere datetime(timestamp,'unixepoch','localtime') >= datetime('now','-1 day')  AND Allumage = 1",
          "refId": "C",
          "timeColumns": [
            "time",
            "ts"
          ]
        }
      ],
      "title": "Détections du jour 24h glissant",
      "type": "timeseries"
    }
  ],
  "schemaVersion": 34,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Synthèse",
  "uid": "JrmUMPRRz",
  "version": 5,
  "weekStart": "",
  "gnetId": 15802,
  "description": "Electricité, température, météo, activité"
}