{
  "title": "Weather Dashboard",
  "image": null,
  "mobileHide": false,
  "mobileOrder": null,
  "configuration": {
    "widgets": {
      "3aa2e1f6-6110-4640-986c-1248d40fee9d": {
        "type": "latest",
        "sizeX": 20,
        "sizeY": 13,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "dataKeys": [
                {
                  "name": "outsideHumidity",
                  "type": "timeseries",
                  "label": "outsideHumidity",
                  "color": "#607d8b",
                  "settings": {}
                },
                {
                  "name": "outsideTemp",
                  "type": "timeseries",
                  "label": "outsideTemperature",
                  "color": "#9c27b0",
                  "settings": {}
                },
                {
                  "name": "outsideMaxTemp",
                  "type": "timeseries",
                  "label": "outsideMaxTemp",
                  "color": "#607d8b",
                  "settings": {}
                },
                {
                  "name": "outsideMinTemp",
                  "type": "timeseries",
                  "label": "outsideMinTemp",
                  "color": "#9c27b0",
                  "settings": {}
                },
                {
                  "name": "latitude",
                  "type": "attribute",
                  "label": "latitude",
                  "color": "#3f51b5",
                  "settings": {}
                },
                {
                  "name": "longitude",
                  "type": "attribute",
                  "label": "longitude",
                  "color": "#e91e63",
                  "settings": {}
                }
              ],
              "entityAliasId": "6d9aab6b-1420-9ecc-1374-d505fa272913"
            }
          ],
          "showTitle": false,
          "backgroundColor": "#fff",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "fitMapBounds": true,
            "latKeyName": "latitude",
            "lngKeyName": "longitude",
            "showLabel": true,
            "label": "<div style=\"position: relative; white-space: nowrap; text-align: center; font-size: 13px; top: 3px;\"><span style=\"margin-left: -500%;\"></span><span style=\"border: solid #ff3f26; border-radius: 10px; color: #ff3f26; background-color: #fff; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 3px;\">${entityName}</span><span style=\"margin-right: -500%;\"></span></div>",
            "tooltipPattern": "<div style=\"color:black\"><b>${entityName}</b><br><br><b>Max outside temperature:</b> ${outsideMaxTemp:1}<br><b>Min outside temperature:</b> ${outsideMinTemp:1}<br><b>Current outside temperature:</b> ${outsideTemperature:1}<br><b>Current outside humidity:</b> ${outsideHumidity:1}<br></div>",
            "markerImageSize": 34,
            "useColorFunction": true,
            "markerImages": [
              "tb-image;/api/images/tenant/weather_dashboard_dashboard_widget_new_openstreetmap_marker_image_0.svg"
            ],
            "useMarkerImageFunction": true,
            "colorFunction": "var type = dsData[dsIndex]['type'];\nif (type == 'colorpin') {\n\tvar temperature = dsData[dsIndex]['temperature'];\n\tif (typeof temperature !== undefined) {\n\t    var percent = (temperature + 60)/120 * 100;\n\t    return tinycolor.mix('blue', 'red', amount = percent).toHexString();\n\t}\n\treturn 'blue';\n}\n",
            "color": "#fe7569",
            "mapProvider": "OpenStreetMap.HOT",
            "showTooltip": true,
            "autocloseTooltip": true,
            "useLabelFunction": false,
            "useTooltipFunction": false,
            "polygonKeyName": "coordinates",
            "polygonOpacity": 0.5,
            "polygonStrokeOpacity": 1,
            "polygonStrokeWeight": 1,
            "markerImageFunction": "var res = {\n    url: images[0],\n    size: 50\n};\n\nreturn res;"
          },
          "title": "New OpenStreetMap",
          "dropShadow": true,
          "enableFullscreen": true,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "showLegend": false,
          "widgetStyle": {},
          "actions": {
            "tooltipAction": []
          },
          "enableDataExport": false
        },
        "id": "3aa2e1f6-6110-4640-986c-1248d40fee9d",
        "typeFullFqn": "system.maps_v2.openstreetmap"
      },
      "b4763e7a-fff5-0e45-ea68-a7baf48f2b5c": {
        "type": "latest",
        "sizeX": 28,
        "sizeY": 13,
        "config": {
          "showTitle": true,
          "backgroundColor": "rgb(255, 255, 255)",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "4px",
          "settings": {
            "enableSearch": true,
            "displayPagination": true,
            "defaultPageSize": 10,
            "defaultSortOrder": "entityName",
            "displayEntityName": true,
            "displayEntityType": false,
            "entitiesTitle": "Buildings",
            "entityNameColumnTitle": "Building name"
          },
          "title": "New Entities table",
          "dropShadow": true,
          "enableFullscreen": true,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400,
            "padding": "5px 10px 5px 10px"
          },
          "showLegend": false,
          "datasources": [
            {
              "type": "entity",
              "dataKeys": [
                {
                  "name": "outsideHumidity",
                  "type": "timeseries",
                  "label": "Outside humidity",
                  "color": "#2196f3",
                  "settings": {
                    "columnWidth": "0px",
                    "useCellStyleFunction": false,
                    "useCellContentFunction": false
                  },
                  "decimals": 2
                },
                {
                  "name": "outsideMaxTemp",
                  "type": "timeseries",
                  "label": "Outside max temperature",
                  "color": "#4caf50",
                  "settings": {
                    "columnWidth": "0px",
                    "useCellStyleFunction": false,
                    "useCellContentFunction": false
                  },
                  "decimals": 2
                },
                {
                  "name": "outsideMinTemp",
                  "type": "timeseries",
                  "label": "Outside min temperature",
                  "color": "#f44336",
                  "settings": {
                    "columnWidth": "0px",
                    "useCellStyleFunction": false,
                    "useCellContentFunction": false
                  },
                  "decimals": 2
                },
                {
                  "name": "outsideTemp",
                  "type": "timeseries",
                  "label": "Outside temperature",
                  "color": "#ffc107",
                  "settings": {
                    "columnWidth": "0px",
                    "useCellStyleFunction": false,
                    "useCellContentFunction": false
                  },
                  "decimals": 2
                }
              ],
              "entityAliasId": "6d9aab6b-1420-9ecc-1374-d505fa272913"
            }
          ],
          "enableDataExport": true,
          "widgetStyle": {},
          "actions": {}
        },
        "id": "b4763e7a-fff5-0e45-ea68-a7baf48f2b5c",
        "typeFullFqn": "system.cards.entities_table"
      },
      "e4b213c6-0920-0790-bac4-a5fc9631d8f0": {
        "type": "timeseries",
        "sizeX": 20,
        "sizeY": 10,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "dataKeys": [
                {
                  "name": "outsideTemp",
                  "type": "timeseries",
                  "label": "Outside temperature",
                  "color": "#4caf50",
                  "settings": {
                    "showLines": true,
                    "fillLines": false,
                    "showPoints": false,
                    "showSeparateAxis": false,
                    "axisPosition": "left"
                  },
                  "decimals": 2
                }
              ],
              "entityAliasId": "6d9aab6b-1420-9ecc-1374-d505fa272913"
            }
          ],
          "showTitle": true,
          "backgroundColor": "#fff",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "shadowSize": 4,
            "fontColor": "#545454",
            "fontSize": 10,
            "xaxis": {
              "showLabels": true,
              "color": "#545454"
            },
            "yaxis": {
              "showLabels": true,
              "color": "#545454"
            },
            "grid": {
              "color": "#545454",
              "tickColor": "#DDDDDD",
              "verticalLines": true,
              "horizontalLines": true,
              "outlineWidth": 1
            },
            "stack": false,
            "tooltipIndividual": false,
            "showLegend": true,
            "legendConfig": {
              "direction": "column",
              "position": "bottom",
              "sortDataKeys": false,
              "showMin": false,
              "showMax": false,
              "showAvg": true,
              "showTotal": false,
              "showLatest": false,
              "valueFormat": null
            }
          },
          "title": "Temperature graph",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "mobileHeight": null,
          "enableDataExport": false,
          "widgetStyle": {},
          "useDashboardTimewindow": true,
          "actions": {},
          "showTitleIcon": false,
          "titleTooltip": "",
          "widgetCss": "",
          "pageSize": 1024,
          "noDataDisplayMessage": ""
        },
        "id": "e4b213c6-0920-0790-bac4-a5fc9631d8f0",
        "typeFullFqn": "system.charts.basic_timeseries"
      },
      "957e6112-382c-1541-ce37-85372fc4daee": {
        "type": "timeseries",
        "sizeX": 28,
        "sizeY": 10,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "dataKeys": [
                {
                  "name": "outsideHumidity",
                  "type": "timeseries",
                  "label": "Humidity",
                  "color": "#2196f3",
                  "settings": {
                    "showLines": true,
                    "fillLines": false,
                    "showPoints": false,
                    "showSeparateAxis": false,
                    "axisPosition": "left"
                  },
                  "decimals": 2
                }
              ],
              "entityAliasId": "6d9aab6b-1420-9ecc-1374-d505fa272913"
            }
          ],
          "showTitle": true,
          "backgroundColor": "#fff",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "shadowSize": 4,
            "fontColor": "#545454",
            "fontSize": 10,
            "xaxis": {
              "showLabels": true,
              "color": "#545454"
            },
            "yaxis": {
              "showLabels": true,
              "color": "#545454"
            },
            "grid": {
              "color": "#545454",
              "tickColor": "#DDDDDD",
              "verticalLines": true,
              "horizontalLines": true,
              "outlineWidth": 1
            },
            "stack": false,
            "tooltipIndividual": false,
            "showLegend": true,
            "legendConfig": {
              "direction": "column",
              "position": "bottom",
              "sortDataKeys": false,
              "showMin": false,
              "showMax": false,
              "showAvg": true,
              "showTotal": false,
              "showLatest": false,
              "valueFormat": null
            }
          },
          "title": "Humidity graph",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "mobileHeight": null,
          "enableDataExport": false,
          "widgetStyle": {},
          "useDashboardTimewindow": true,
          "actions": {},
          "showTitleIcon": false,
          "titleTooltip": "",
          "widgetCss": "",
          "pageSize": 1024,
          "noDataDisplayMessage": ""
        },
        "id": "957e6112-382c-1541-ce37-85372fc4daee",
        "typeFullFqn": "system.charts.basic_timeseries"
      }
    },
    "states": {
      "default": {
        "name": "Weather dashboard",
        "root": true,
        "layouts": {
          "main": {
            "widgets": {
              "3aa2e1f6-6110-4640-986c-1248d40fee9d": {
                "sizeX": 13,
                "sizeY": 11,
                "row": 0,
                "col": 0
              },
              "b4763e7a-fff5-0e45-ea68-a7baf48f2b5c": {
                "sizeX": 35,
                "sizeY": 11,
                "row": 0,
                "col": 13
              },
              "e4b213c6-0920-0790-bac4-a5fc9631d8f0": {
                "sizeX": 20,
                "sizeY": 14,
                "mobileHeight": null,
                "row": 11,
                "col": 0
              },
              "957e6112-382c-1541-ce37-85372fc4daee": {
                "sizeX": 28,
                "sizeY": 14,
                "mobileHeight": null,
                "row": 11,
                "col": 20
              }
            },
            "gridSettings": {
              "backgroundColor": "#eeeeee",
              "color": "rgba(0,0,0,0.870588)",
              "columns": 48,
              "backgroundSizeMode": "100%",
              "autoFillHeight": true,
              "mobileAutoFillHeight": false,
              "mobileRowHeight": 70,
              "margin": 7,
              "outerMargin": true,
              "layoutType": "default"
            }
          }
        }
      }
    },
    "entityAliases": {
      "6d9aab6b-1420-9ecc-1374-d505fa272913": {
        "id": "6d9aab6b-1420-9ecc-1374-d505fa272913",
        "alias": "Buildings",
        "filter": {
          "type": "assetType",
          "resolveMultiple": true,
          "assetNameFilter": "",
          "assetTypes": [
            "building"
          ]
        }
      }
    },
    "timewindow": {
      "selectedTab": 0,
      "realtime": {
        "realtimeType": 0,
        "interval": 15000,
        "timewindowMs": 3600000
      },
      "aggregation": {
        "type": "AVG"
      }
    },
    "settings": {
      "stateControllerId": "entity",
      "showTitle": false,
      "showDashboardsSelect": true,
      "showEntitiesSelect": true,
      "showDashboardTimewindow": true,
      "showDashboardExport": true,
      "toolbarAlwaysOpen": true
    },
    "filters": {}
  },
  "name": "Weather Dashboard",
  "resources": [
    {
      "link": "/api/images/tenant/weather_dashboard_dashboard_widget_new_openstreetmap_marker_image_0.svg",
      "title": "\"Weather Dashboard\" dashboard widget \"New OpenStreetMap\" marker image 0",
      "type": "IMAGE",
      "subType": "IMAGE",
      "fileName": "weather_dashboard_dashboard_widget_new_openstreetmap_marker_image_0.svg",
      "publicResourceKey": "NsLBVKpz3YSfUms2W0kQikyzlBPBoVCE",
      "mediaType": "image/svg+xml",
      "data": "PHN2ZyBpZD0ic3ZnNDQwOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTUwIDE1MCI+CiAgPHN0eWxlPgogICAgLnN0MHtvcGFjaXR5OjAuODkyO2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyA7fSAuc3Qxe2ZpbGw6dXJsKCNTVkdJRF8xXyk7fSAuc3Qye2ZpbGw6I0ZGM0UwMTt9IC5zdDN7ZmlsbDojRkZGRkZGO30KICA8L3N0eWxlPgogIDxnIGlkPSJsYXllcjEiPgogICAgPGcgaWQ9InBhdGg2ODgxLTMtNS01LTEtOC00LTQtNy04IiB0c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