|
1
|
+{
|
|
2
|
+ "title": "Gateways",
|
|
3
|
+ "configuration": {
|
|
4
|
+ "widgets": {
|
|
5
|
+ "94715984-ae74-76e4-20b7-2f956b01ed80": {
|
|
6
|
+ "isSystemType": true,
|
|
7
|
+ "bundleAlias": "entity_admin_widgets",
|
|
8
|
+ "typeAlias": "device_admin_table2",
|
|
9
|
+ "type": "latest",
|
|
10
|
+ "title": "New widget",
|
|
11
|
+ "sizeX": 24,
|
|
12
|
+ "sizeY": 12,
|
|
13
|
+ "config": {
|
|
14
|
+ "timewindow": {
|
|
15
|
+ "realtime": {
|
|
16
|
+ "interval": 1000,
|
|
17
|
+ "timewindowMs": 86400000
|
|
18
|
+ },
|
|
19
|
+ "aggregation": {
|
|
20
|
+ "type": "NONE",
|
|
21
|
+ "limit": 200
|
|
22
|
+ }
|
|
23
|
+ },
|
|
24
|
+ "showTitle": true,
|
|
25
|
+ "backgroundColor": "rgb(255, 255, 255)",
|
|
26
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
27
|
+ "padding": "4px",
|
|
28
|
+ "settings": {
|
|
29
|
+ "enableSearch": true,
|
|
30
|
+ "displayPagination": true,
|
|
31
|
+ "defaultPageSize": 10,
|
|
32
|
+ "defaultSortOrder": "entityName",
|
|
33
|
+ "displayEntityName": true,
|
|
34
|
+ "displayEntityType": false,
|
|
35
|
+ "entitiesTitle": "List of gateways",
|
|
36
|
+ "enableSelectColumnDisplay": true,
|
|
37
|
+ "displayEntityLabel": false,
|
|
38
|
+ "entityNameColumnTitle": "Gateway Name"
|
|
39
|
+ },
|
|
40
|
+ "title": "Devices gateway table",
|
|
41
|
+ "dropShadow": true,
|
|
42
|
+ "enableFullscreen": true,
|
|
43
|
+ "titleStyle": {
|
|
44
|
+ "fontSize": "16px",
|
|
45
|
+ "fontWeight": 400,
|
|
46
|
+ "padding": "5px 10px 5px 10px"
|
|
47
|
+ },
|
|
48
|
+ "useDashboardTimewindow": false,
|
|
49
|
+ "showLegend": false,
|
|
50
|
+ "datasources": [
|
|
51
|
+ {
|
|
52
|
+ "type": "entity",
|
|
53
|
+ "dataKeys": [
|
|
54
|
+ {
|
|
55
|
+ "name": "active",
|
|
56
|
+ "type": "attribute",
|
|
57
|
+ "label": "Active",
|
|
58
|
+ "color": "#2196f3",
|
|
59
|
+ "settings": {
|
|
60
|
+ "columnWidth": "0px",
|
|
61
|
+ "useCellStyleFunction": true,
|
|
62
|
+ "useCellContentFunction": true,
|
|
63
|
+ "cellContentFunction": "value = '⬤';\nreturn value;",
|
|
64
|
+ "cellStyleFunction": "var color;\nif (value == 'false') {\n color = '#EB5757';\n} else {\n color = '#27AE60';\n}\nreturn {\n color: color,\n fontSize: '18px'\n};"
|
|
65
|
+ },
|
|
66
|
+ "_hash": 0.3646047595211721
|
|
67
|
+ },
|
|
68
|
+ {
|
|
69
|
+ "name": "eventsSent",
|
|
70
|
+ "type": "timeseries",
|
|
71
|
+ "label": "Sent",
|
|
72
|
+ "color": "#4caf50",
|
|
73
|
+ "settings": {
|
|
74
|
+ "columnWidth": "0px",
|
|
75
|
+ "useCellStyleFunction": false,
|
|
76
|
+ "useCellContentFunction": false
|
|
77
|
+ },
|
|
78
|
+ "_hash": 0.7235710720767985
|
|
79
|
+ },
|
|
80
|
+ {
|
|
81
|
+ "name": "eventsProduced",
|
|
82
|
+ "type": "timeseries",
|
|
83
|
+ "label": "Events",
|
|
84
|
+ "color": "#f44336",
|
|
85
|
+ "settings": {
|
|
86
|
+ "columnWidth": "0px",
|
|
87
|
+ "useCellStyleFunction": false,
|
|
88
|
+ "useCellContentFunction": false
|
|
89
|
+ },
|
|
90
|
+ "_hash": 0.5085933386303254
|
|
91
|
+ },
|
|
92
|
+ {
|
|
93
|
+ "name": "LOGS",
|
|
94
|
+ "type": "timeseries",
|
|
95
|
+ "label": "Latest log",
|
|
96
|
+ "color": "#ffc107",
|
|
97
|
+ "settings": {
|
|
98
|
+ "columnWidth": "0px",
|
|
99
|
+ "useCellStyleFunction": false,
|
|
100
|
+ "useCellContentFunction": false
|
|
101
|
+ },
|
|
102
|
+ "_hash": 0.3504240371585048,
|
|
103
|
+ "postFuncBody": "if(value) {\n return value.substring(0, 31) + \"...\";\n} else {\n return '';\n}"
|
|
104
|
+ },
|
|
105
|
+ {
|
|
106
|
+ "name": "RemoteLoggingLevel",
|
|
107
|
+ "type": "attribute",
|
|
108
|
+ "label": "Log level",
|
|
109
|
+ "color": "#607d8b",
|
|
110
|
+ "settings": {
|
|
111
|
+ "columnWidth": "0px",
|
|
112
|
+ "useCellStyleFunction": false,
|
|
113
|
+ "useCellContentFunction": false
|
|
114
|
+ },
|
|
115
|
+ "_hash": 0.9785994222542516
|
|
116
|
+ }
|
|
117
|
+ ],
|
|
118
|
+ "entityAliasId": "3e0f533a-0db1-3292-184f-06e73535061a"
|
|
119
|
+ }
|
|
120
|
+ ],
|
|
121
|
+ "showTitleIcon": true,
|
|
122
|
+ "titleIcon": "list",
|
|
123
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
124
|
+ "iconSize": "24px",
|
|
125
|
+ "titleTooltip": "List device",
|
|
126
|
+ "widgetStyle": {},
|
|
127
|
+ "displayTimewindow": true,
|
|
128
|
+ "actions": {
|
|
129
|
+ "headerButton": [
|
|
130
|
+ {
|
|
131
|
+ "id": "70837a9d-c3de-a9a7-03c5-dccd14998758",
|
|
132
|
+ "name": "Add device",
|
|
133
|
+ "icon": "add",
|
|
134
|
+ "type": "customPretty",
|
|
135
|
+ "customHtml": "<md-dialog aria-label=\"Add entity\" style=\"width: 480px\">\n <form name=\"addDeviceForm\" ng-submit=\"vm.save()\">\n <md-toolbar>\n <div class=\"md-toolbar-tools\">\n <h2>Add device</h2>\n <span flex></span>\n <md-button class=\"md-icon-button\" ng-click=\"vm.cancel()\">\n <ng-md-icon icon=\"close\" aria-label=\"Close\"></ng-md-icon>\n </md-button>\n </div>\n </md-toolbar>\n <md-progress-linear class=\"md-warn\" md-mode=\"indeterminate\" ng-disabled=\"!$root.loading && !vm.loading\" ng-show=\"$root.loading || vm.loading\"></md-progress-linear>\n <span style=\"min-height: 5px;\" flex=\"\" ng-show=\"!$root.loading && !vm.loading\"></span>\n <md-dialog-content>\n <div class=\"md-dialog-content\">\n <fieldset ng-disabled=\"$root.loading || vm.loading\">\n <md-input-container flex class=\"md-block\">\n <label>Device name</label>\n <input ng-model=\"vm.deviceName\" name=deviceName required>\n <div ng-messages=\"addDeviceForm.deviceName.$error\">\n <div ng-message=\"required\">Device name is required.</div>\n </div>\n </md-input-container>\n <div flex layout=\"row\">\n <md-input-container flex=\"50\" class=\"md-block\">\n <label>Latitude</label>\n <input type=\"number\" step=\"any\" name=\"latitude\" ng-model=\"vm.attributes.latitude\">\n </md-input-container>\n <md-input-container flex=\"50\" class=\"md-block\">\n <label>Longitude</label>\n <input type=\"number\" step=\"any\" name=\"longitude\" ng-model=\"vm.attributes.longitude\">\n </md-input-container>\n </div>\n <md-input-container class=\"md-block\">\n <label>Label</label>\n <input name=\"deviceLabel\" ng-model=\"vm.deviceLabel\">\n </md-input-container>\n </fieldset>\n </div>\n </md-dialog-content>\n <md-dialog-actions>\n <md-button type=\"submit\" ng-disabled=\"vm.loading || addDeviceForm.$invalid || !addDeviceForm.$dirty\" class=\"md-raised md-primary\">Create</md-button>\n <md-button ng-click=\"vm.cancel()\" class=\"md-primary\">Cancel</md-button>\n </md-dialog-actions>\n </form>\n</md-dialog>\n",
|
|
136
|
+ "customCss": "",
|
|
137
|
+ "customFunction": "let $injector = widgetContext.$scope.$injector;\nlet $mdDialog = $injector.get('$mdDialog'),\n $document = $injector.get('$document'),\n $q = $injector.get('$q'),\n $rootScope = $injector.get('$rootScope'),\n types = $injector.get('types'),\n deviceService = $injector.get('deviceService'),\n attributeService = $injector.get('attributeService');\n\nopenAddDeviceDialog();\n\nfunction openAddDeviceDialog() {\n $mdDialog.show({\n controller: ['$scope', '$mdDialog',\n AddDeviceDialogController\n ],\n controllerAs: 'vm',\n template: htmlTemplate,\n parent: angular.element($document[0].body),\n targetEvent: $event,\n multiple: true,\n clickOutsideToClose: false\n });\n}\n\nfunction AddDeviceDialogController($scope, $mdDialog) {\n let vm = this;\n vm.types = types;\n vm.attributes = {};\n vm.deviceType = \"gateway\";\n\n vm.cancel = () => {\n $mdDialog.hide();\n };\n\n vm.save = () => {\n vm.loading = true;\n $scope.addDeviceForm.$setPristine();\n let device = {\n additionalInfo: {gateway: true},\n name: vm.deviceName,\n type: vm.deviceType,\n label: vm.deviceLabel\n };\n deviceService.saveDevice(device).then(\n (device) => {\n saveAttributes(device.id).then(\n () => {\n vm.loading = false;\n updateAliasData();\n $mdDialog.hide();\n }\n );\n },\n () => {\n vm.loading = false;\n }\n );\n };\n\n function saveAttributes(entityId) {\n let attributesArray = [];\n for (let key in vm.attributes) {\n attributesArray.push({\n key: key,\n value: vm.attributes[key]\n });\n }\n if (attributesArray.length > 0) {\n return attributeService.saveEntityAttributes(\n entityId.entityType, entityId.id,\n \"SERVER_SCOPE\", attributesArray);\n } else {\n return $q.when([]);\n }\n }\n\n function updateAliasData() {\n let aliasIds = [];\n for (let id in widgetContext.aliasController\n .resolvedAliases) {\n aliasIds.push(id);\n }\n let tasks = [];\n aliasIds.forEach((aliasId) => {\n widgetContext.aliasController\n .setAliasUnresolved(aliasId);\n tasks.push(widgetContext.aliasController\n .getAliasInfo(aliasId));\n });\n $q.all(tasks).then(() => {\n $rootScope.$broadcast(\n 'widgetForceReInit');\n });\n }\n}"
|
|
138
|
+ }
|
|
139
|
+ ],
|
|
140
|
+ "actionCellButton": [
|
|
141
|
+ {
|
|
142
|
+ "id": "78845501-234e-a452-6819-82b5b776e99f",
|
|
143
|
+ "name": "Configuration",
|
|
144
|
+ "icon": "settings",
|
|
145
|
+ "type": "openDashboardState",
|
|
146
|
+ "targetDashboardStateId": "__entityname__config",
|
|
147
|
+ "openRightLayout": false,
|
|
148
|
+ "setEntityId": true
|
|
149
|
+ },
|
|
150
|
+ {
|
|
151
|
+ "id": "f6ffdba8-e40f-2b8d-851b-f5ecaf18606b",
|
|
152
|
+ "name": "Graphs",
|
|
153
|
+ "icon": "show_chart",
|
|
154
|
+ "type": "openDashboardState",
|
|
155
|
+ "targetDashboardStateId": "__entityname_grafic",
|
|
156
|
+ "setEntityId": true
|
|
157
|
+ },
|
|
158
|
+ {
|
|
159
|
+ "id": "242671f3-76c6-6982-7acc-6f12addf0ccc",
|
|
160
|
+ "name": "Edit device",
|
|
161
|
+ "icon": "edit",
|
|
162
|
+ "type": "customPretty",
|
|
163
|
+ "customHtml": "<md-dialog aria-label=\"Edit entity\" style=\"width: 480px\">\n <form name=\"editDeviceForm\" ng-submit=\"vm.save()\">\n <md-toolbar>\n <div class=\"md-toolbar-tools\">\n <h2>Edit device</h2>\n <span flex></span>\n <md-button class=\"md-icon-button\" ng-click=\"vm.cancel()\">\n <ng-md-icon icon=\"close\" aria-label=\"Close\"></ng-md-icon>\n </md-button>\n </div>\n </md-toolbar>\n <md-progress-linear class=\"md-warn\" md-mode=\"indeterminate\" ng-disabled=\"!$root.loading && !vm.loading\" ng-show=\"$root.loading || vm.loading\"></md-progress-linear>\n <span style=\"min-height: 5px;\" flex=\"\" ng-show=\"!$root.loading && !vm.loading\"></span>\n <md-dialog-content>\n <div class=\"md-dialog-content\">\n <fieldset ng-disabled=\"$root.loading || vm.loading\">\n <md-input-container flex class=\"md-block\">\n <label>Device name</label>\n <input ng-model=\"vm.device.name\" name=deviceName required>\n <div ng-messages=\"editDeviceForm.deviceName.$error\">\n <div ng-message=\"required\">Device name is required.</div>\n </div>\n </md-input-container>\n <!--<div flex layout=\"row\">-->\n <!--<tb-entity-subtype-autocomplete flex=\"50\"-->\n <!-- ng-disabled=\"true\"-->\n <!-- tb-required=\"true\"-->\n <!-- the-form=\"editDeviceForm\"-->\n <!-- ng-model=\"vm.device.type\"-->\n <!-- entity-type=\"vm.types.entityType.device\">-->\n <!--</tb-entity-subtype-autocomplete>-->\n <!-- <md-input-container flex=\"50\" class=\"md-block\">-->\n <!-- <label>Label</label>-->\n <!-- <input name=\"deviceLabel\" ng-model=\"vm.device.label\">-->\n <!-- </md-input-container>-->\n <!--</div>-->\n <div flex layout=\"row\">\n <md-input-container flex=\"50\" class=\"md-block\">\n <label>Latitude</label>\n <input type=\"number\" step=\"any\" name=\"latitude\" ng-model=\"vm.attributes.latitude\">\n </md-input-container>\n <md-input-container flex=\"50\" class=\"md-block\">\n <label>Longitude</label>\n <input type=\"number\" step=\"any\" name=\"longitude\" ng-model=\"vm.attributes.longitude\">\n </md-input-container>\n </div>\n <md-input-container class=\"md-block\">\n <label>Label</label>\n <input name=\"deviceLabel\" ng-model=\"vm.device.label\">\n </md-input-container>\n </fieldset>\n </div>\n </md-dialog-content>\n <md-dialog-actions>\n <md-button type=\"submit\" ng-disabled=\"vm.loading || editDeviceForm.$invalid || !editDeviceForm.$dirty\" class=\"md-raised md-primary\">Create</md-button>\n <md-button ng-click=\"vm.cancel()\" class=\"md-primary\">Cancel</md-button>\n </md-dialog-actions>\n </form>\n</md-dialog>",
|
|
164
|
+ "customCss": "/*=======================================================================*/\n/*========== There are two examples: for edit and add entity ==========*/\n/*=======================================================================*/\n/*======================== Edit entity example ========================*/\n/*=======================================================================*/\n/*\n.edit-entity-form md-input-container {\n padding-right: 10px;\n}\n\n.edit-entity-form .boolean-value-input {\n padding-left: 5px;\n}\n\n.edit-entity-form .boolean-value-input .checkbox-label {\n margin-bottom: 8px;\n color: rgba(0,0,0,0.54);\n font-size: 12px;\n}\n\n.relations-list .header {\n padding-right: 5px;\n padding-bottom: 5px;\n padding-left: 5px;\n}\n\n.relations-list .header .cell {\n padding-right: 5px;\n padding-left: 5px;\n font-size: 12px;\n font-weight: 700;\n color: rgba(0, 0, 0, .54);\n white-space: nowrap;\n}\n\n.relations-list .body {\n padding-right: 5px;\n padding-bottom: 15px;\n padding-left: 5px;\n}\n\n.relations-list .body .row {\n padding-top: 5px;\n}\n\n.relations-list .body .cell {\n padding-right: 5px;\n padding-left: 5px;\n}\n\n.relations-list .body md-autocomplete-wrap md-input-container {\n height: 30px;\n}\n\n.relations-list .body .md-button {\n margin: 0;\n}\n\n.relations-list.old-relations tb-entity-select tb-entity-autocomplete button {\n display: none;\n} \n*/\n/*========================================================================*/\n/*========================= Add entity example =========================*/\n/*========================================================================*/\n/*\n.add-entity-form md-input-container {\n padding-right: 10px;\n}\n\n.add-entity-form .boolean-value-input {\n padding-left: 5px;\n}\n\n.add-entity-form .boolean-value-input .checkbox-label {\n margin-bottom: 8px;\n color: rgba(0,0,0,0.54);\n font-size: 12px;\n}\n\n.relations-list .header {\n padding-right: 5px;\n padding-bottom: 5px;\n padding-left: 5px;\n}\n\n.relations-list .header .cell {\n padding-right: 5px;\n padding-left: 5px;\n font-size: 12px;\n font-weight: 700;\n color: rgba(0, 0, 0, .54);\n white-space: nowrap;\n}\n\n.relations-list .body {\n padding-right: 5px;\n padding-bottom: 15px;\n padding-left: 5px;\n}\n\n.relations-list .body .row {\n padding-top: 5px;\n}\n\n.relations-list .body .cell {\n padding-right: 5px;\n padding-left: 5px;\n}\n\n.relations-list .body md-autocomplete-wrap md-input-container {\n height: 30px;\n}\n\n.relations-list .body .md-button {\n margin: 0;\n}\n*/\n",
|
|
165
|
+ "customFunction": "let $injector = widgetContext.$scope.$injector;\nlet $mdDialog = $injector.get('$mdDialog'),\n $document = $injector.get('$document'),\n $q = $injector.get('$q'),\n $rootScope = $injector.get('$rootScope'),\n types = $injector.get('types'),\n deviceService = $injector.get('deviceService'),\n attributeService = $injector.get('attributeService');\n \nopenEditDeviceDialog();\n\nfunction openEditDeviceDialog() {\n $mdDialog.show({\n controller: ['$scope','$mdDialog', EditDeviceDialogController],\n controllerAs: 'vm',\n template: htmlTemplate,\n parent: angular.element($document[0].body),\n targetEvent: $event,\n multiple: true,\n clickOutsideToClose: false\n });\n}\n\nfunction EditDeviceDialogController($scope,$mdDialog) {\n let vm = this;\n vm.types = types;\n vm.loading = false;\n vm.attributes = {};\n \n getEntityInfo();\n \n function getEntityInfo() {\n vm.loading = true;\n deviceService.getDevice(entityId.id).then(\n (device) => {\n attributeService.getEntityAttributesValues(entityId.entityType, entityId.id, 'SERVER_SCOPE').then(\n (data) => {\n if (data.length) {\n getEntityAttributes(data);\n }\n vm.device = device;\n vm.loading = false;\n } \n );\n }\n )\n }\n \n vm.cancel = function() {\n $mdDialog.hide();\n };\n \n vm.save = () => {\n vm.loading = true;\n $scope.editDeviceForm.$setPristine();\n deviceService.saveDevice(vm.device).then(\n () => {\n saveAttributes().then(\n () => {\n updateAliasData();\n vm.loading = false;\n $mdDialog.hide();\n }\n );\n },\n () => {\n vm.loading = false;\n }\n );\n }\n \n function getEntityAttributes(attributes) {\n for (let i = 0; i < attributes.length; i++) {\n vm.attributes[attributes[i].key] = attributes[i].value; \n }\n }\n \n function saveAttributes() {\n let attributesArray = [];\n for (let key in vm.attributes) {\n attributesArray.push({key: key, value: vm.attributes[key]});\n }\n if (attributesArray.length > 0) {\n return attributeService.saveEntityAttributes(entityId.entityType, entityId.id, \"SERVER_SCOPE\", attributesArray);\n } else {\n return $q.when([]);\n }\n }\n \n function updateAliasData() {\n let aliasIds = [];\n for (let id in widgetContext.aliasController.resolvedAliases) {\n aliasIds.push(id);\n }\n let tasks = [];\n aliasIds.forEach((aliasId) => {\n widgetContext.aliasController.setAliasUnresolved(aliasId);\n tasks.push(widgetContext.aliasController.getAliasInfo(aliasId));\n });\n console.log(widgetContext);\n $q.all(tasks).then(() => {\n $rootScope.$broadcast('widgetForceReInit');\n });\n }\n}\n"
|
|
166
|
+ },
|
|
167
|
+ {
|
|
168
|
+ "id": "862ec2b7-fbcf-376e-f85f-b77c07f36efa",
|
|
169
|
+ "name": "Delete device",
|
|
170
|
+ "icon": "delete",
|
|
171
|
+ "type": "custom",
|
|
172
|
+ "customFunction": "let $injector = widgetContext.$scope.$injector;\nlet $mdDialog = $injector.get('$mdDialog'),\n $document = $injector.get('$document'),\n types = $injector.get('types'),\n deviceService = $injector.get('deviceService'),\n $rootScope = $injector.get('$rootScope'),\n $q = $injector.get('$q');\n\nopenDeleteDeviceDialog();\n\nfunction openDeleteDeviceDialog() {\n let title = \"Are you sure you want to delete the device \" + entityName + \"?\";\n let content = \"Be careful, after the confirmation, the device and all related data will become unrecoverable!\";\n let confirm = $mdDialog.confirm()\n .targetEvent($event)\n .title(title)\n .htmlContent(content)\n .ariaLabel(title)\n .cancel('Cancel')\n .ok('Delete');\n $mdDialog.show(confirm).then(() => {\n deleteDevice();\n })\n}\n\nfunction deleteDevice() {\n deviceService.deleteDevice(entityId.id).then(\n () => {\n updateAliasData();\n }\n );\n}\n\nfunction updateAliasData() {\n let aliasIds = [];\n for (let id in widgetContext.aliasController.resolvedAliases) {\n aliasIds.push(id);\n }\n let tasks = [];\n aliasIds.forEach((aliasId) => {\n widgetContext.aliasController.setAliasUnresolved(aliasId);\n tasks.push(widgetContext.aliasController.getAliasInfo(aliasId));\n });\n $q.all(tasks).then(() => {\n $rootScope.$broadcast('entityAliasesChanged', aliasIds);\n });\n}"
|
|
173
|
+ }
|
|
174
|
+ ],
|
|
175
|
+ "rowClick": [
|
|
176
|
+ {
|
|
177
|
+ "id": "ad5fc7e1-5e60-e056-6940-a75a383466a1",
|
|
178
|
+ "name": "to_entityname__config",
|
|
179
|
+ "icon": "more_horiz",
|
|
180
|
+ "type": "openDashboardState",
|
|
181
|
+ "targetDashboardStateId": "__entityname__config",
|
|
182
|
+ "setEntityId": true,
|
|
183
|
+ "stateEntityParamName": ""
|
|
184
|
+ }
|
|
185
|
+ ]
|
|
186
|
+ }
|
|
187
|
+ },
|
|
188
|
+ "id": "94715984-ae74-76e4-20b7-2f956b01ed80"
|
|
189
|
+ },
|
|
190
|
+ "eadabbc7-519e-76fc-ba10-b3fe8c18da10": {
|
|
191
|
+ "isSystemType": true,
|
|
192
|
+ "bundleAlias": "cards",
|
|
193
|
+ "typeAlias": "timeseries_table",
|
|
194
|
+ "type": "timeseries",
|
|
195
|
+ "title": "New widget",
|
|
196
|
+ "sizeX": 14,
|
|
197
|
+ "sizeY": 13,
|
|
198
|
+ "config": {
|
|
199
|
+ "datasources": [
|
|
200
|
+ {
|
|
201
|
+ "type": "entity",
|
|
202
|
+ "dataKeys": [
|
|
203
|
+ {
|
|
204
|
+ "name": "LOGS",
|
|
205
|
+ "type": "timeseries",
|
|
206
|
+ "label": "LOGS",
|
|
207
|
+ "color": "#2196f3",
|
|
208
|
+ "settings": {
|
|
209
|
+ "useCellStyleFunction": false,
|
|
210
|
+ "useCellContentFunction": false
|
|
211
|
+ },
|
|
212
|
+ "_hash": 0.3496649158709739,
|
|
213
|
+ "postFuncBody": "return value.replace(/ - (.*) - \\[/gi, ' - <b style=\"color:#0f0;\">$1</b> - [');"
|
|
214
|
+ }
|
|
215
|
+ ],
|
|
216
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
217
|
+ }
|
|
218
|
+ ],
|
|
219
|
+ "timewindow": {
|
|
220
|
+ "realtime": {
|
|
221
|
+ "interval": 1000,
|
|
222
|
+ "timewindowMs": 2592000000
|
|
223
|
+ },
|
|
224
|
+ "aggregation": {
|
|
225
|
+ "type": "NONE",
|
|
226
|
+ "limit": 200
|
|
227
|
+ }
|
|
228
|
+ },
|
|
229
|
+ "showTitle": true,
|
|
230
|
+ "backgroundColor": "rgb(255, 255, 255)",
|
|
231
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
232
|
+ "padding": "8px",
|
|
233
|
+ "settings": {
|
|
234
|
+ "showTimestamp": true,
|
|
235
|
+ "displayPagination": true,
|
|
236
|
+ "defaultPageSize": 10
|
|
237
|
+ },
|
|
238
|
+ "title": "Debug events (logs)",
|
|
239
|
+ "dropShadow": true,
|
|
240
|
+ "enableFullscreen": true,
|
|
241
|
+ "titleStyle": {
|
|
242
|
+ "fontSize": "16px",
|
|
243
|
+ "fontWeight": 400
|
|
244
|
+ },
|
|
245
|
+ "useDashboardTimewindow": false,
|
|
246
|
+ "showLegend": false,
|
|
247
|
+ "widgetStyle": {},
|
|
248
|
+ "actions": {},
|
|
249
|
+ "showTitleIcon": false,
|
|
250
|
+ "titleIcon": null,
|
|
251
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
252
|
+ "iconSize": "24px",
|
|
253
|
+ "titleTooltip": "",
|
|
254
|
+ "displayTimewindow": true
|
|
255
|
+ },
|
|
256
|
+ "id": "eadabbc7-519e-76fc-ba10-b3fe8c18da10"
|
|
257
|
+ },
|
|
258
|
+ "f928afc4-30d1-8d0c-e3cf-777f9f9d1155": {
|
|
259
|
+ "isSystemType": true,
|
|
260
|
+ "bundleAlias": "charts",
|
|
261
|
+ "typeAlias": "basic_timeseries",
|
|
262
|
+ "type": "timeseries",
|
|
263
|
+ "title": "New widget",
|
|
264
|
+ "sizeX": 17,
|
|
265
|
+ "sizeY": 4,
|
|
266
|
+ "config": {
|
|
267
|
+ "datasources": [
|
|
268
|
+ {
|
|
269
|
+ "type": "entity",
|
|
270
|
+ "dataKeys": [
|
|
271
|
+ {
|
|
272
|
+ "name": "opcuaEventsProduced",
|
|
273
|
+ "type": "timeseries",
|
|
274
|
+ "label": "opcuaEventsProduced",
|
|
275
|
+ "color": "#2196f3",
|
|
276
|
+ "settings": {
|
|
277
|
+ "excludeFromStacking": false,
|
|
278
|
+ "hideDataByDefault": false,
|
|
279
|
+ "disableDataHiding": false,
|
|
280
|
+ "removeFromLegend": false,
|
|
281
|
+ "showLines": true,
|
|
282
|
+ "fillLines": false,
|
|
283
|
+ "showPoints": false,
|
|
284
|
+ "showPointShape": "circle",
|
|
285
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
286
|
+ "showPointsLineWidth": 5,
|
|
287
|
+ "showPointsRadius": 3,
|
|
288
|
+ "tooltipValueFormatter": "",
|
|
289
|
+ "showSeparateAxis": false,
|
|
290
|
+ "axisTitle": "",
|
|
291
|
+ "axisPosition": "left",
|
|
292
|
+ "axisTicksFormatter": "",
|
|
293
|
+ "comparisonSettings": {
|
|
294
|
+ "showValuesForComparison": true,
|
|
295
|
+ "comparisonValuesLabel": "",
|
|
296
|
+ "color": ""
|
|
297
|
+ }
|
|
298
|
+ },
|
|
299
|
+ "_hash": 0.1477920581839779
|
|
300
|
+ },
|
|
301
|
+ {
|
|
302
|
+ "name": "opcuaEventsSent",
|
|
303
|
+ "type": "timeseries",
|
|
304
|
+ "label": "opcuaEventsSent",
|
|
305
|
+ "color": "#4caf50",
|
|
306
|
+ "settings": {
|
|
307
|
+ "excludeFromStacking": false,
|
|
308
|
+ "hideDataByDefault": false,
|
|
309
|
+ "disableDataHiding": false,
|
|
310
|
+ "removeFromLegend": false,
|
|
311
|
+ "showLines": true,
|
|
312
|
+ "fillLines": false,
|
|
313
|
+ "showPoints": false,
|
|
314
|
+ "showPointShape": "circle",
|
|
315
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
316
|
+ "showPointsLineWidth": 5,
|
|
317
|
+ "showPointsRadius": 3,
|
|
318
|
+ "tooltipValueFormatter": "",
|
|
319
|
+ "showSeparateAxis": false,
|
|
320
|
+ "axisTitle": "",
|
|
321
|
+ "axisPosition": "left",
|
|
322
|
+ "axisTicksFormatter": "",
|
|
323
|
+ "comparisonSettings": {
|
|
324
|
+ "showValuesForComparison": true,
|
|
325
|
+ "comparisonValuesLabel": "",
|
|
326
|
+ "color": ""
|
|
327
|
+ }
|
|
328
|
+ },
|
|
329
|
+ "_hash": 0.6500957113784758
|
|
330
|
+ }
|
|
331
|
+ ],
|
|
332
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
333
|
+ }
|
|
334
|
+ ],
|
|
335
|
+ "timewindow": {
|
|
336
|
+ "realtime": {
|
|
337
|
+ "interval": 1000,
|
|
338
|
+ "timewindowMs": 120000
|
|
339
|
+ },
|
|
340
|
+ "aggregation": {
|
|
341
|
+ "type": "NONE",
|
|
342
|
+ "limit": 25000
|
|
343
|
+ },
|
|
344
|
+ "hideInterval": false,
|
|
345
|
+ "hideAggregation": false
|
|
346
|
+ },
|
|
347
|
+ "showTitle": true,
|
|
348
|
+ "backgroundColor": "#fff",
|
|
349
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
350
|
+ "padding": "8px",
|
|
351
|
+ "settings": {
|
|
352
|
+ "shadowSize": 4,
|
|
353
|
+ "fontColor": "#545454",
|
|
354
|
+ "fontSize": 10,
|
|
355
|
+ "xaxis": {
|
|
356
|
+ "showLabels": true,
|
|
357
|
+ "color": "#545454"
|
|
358
|
+ },
|
|
359
|
+ "yaxis": {
|
|
360
|
+ "showLabels": true,
|
|
361
|
+ "color": "#545454"
|
|
362
|
+ },
|
|
363
|
+ "grid": {
|
|
364
|
+ "color": "#545454",
|
|
365
|
+ "tickColor": "#DDDDDD",
|
|
366
|
+ "verticalLines": true,
|
|
367
|
+ "horizontalLines": true,
|
|
368
|
+ "outlineWidth": 1
|
|
369
|
+ },
|
|
370
|
+ "stack": false,
|
|
371
|
+ "tooltipIndividual": false,
|
|
372
|
+ "timeForComparison": "months",
|
|
373
|
+ "xaxisSecond": {
|
|
374
|
+ "axisPosition": "top",
|
|
375
|
+ "showLabels": true
|
|
376
|
+ }
|
|
377
|
+ },
|
|
378
|
+ "title": "Real time information",
|
|
379
|
+ "dropShadow": true,
|
|
380
|
+ "enableFullscreen": true,
|
|
381
|
+ "titleStyle": {
|
|
382
|
+ "fontSize": "16px",
|
|
383
|
+ "fontWeight": 400
|
|
384
|
+ },
|
|
385
|
+ "mobileHeight": null,
|
|
386
|
+ "showTitleIcon": false,
|
|
387
|
+ "titleIcon": null,
|
|
388
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
389
|
+ "iconSize": "24px",
|
|
390
|
+ "titleTooltip": "",
|
|
391
|
+ "widgetStyle": {},
|
|
392
|
+ "useDashboardTimewindow": false,
|
|
393
|
+ "displayTimewindow": true,
|
|
394
|
+ "showLegend": true,
|
|
395
|
+ "legendConfig": {
|
|
396
|
+ "direction": "column",
|
|
397
|
+ "position": "right",
|
|
398
|
+ "showMin": true,
|
|
399
|
+ "showMax": true,
|
|
400
|
+ "showAvg": true,
|
|
401
|
+ "showTotal": true
|
|
402
|
+ },
|
|
403
|
+ "actions": {}
|
|
404
|
+ },
|
|
405
|
+ "id": "f928afc4-30d1-8d0c-e3cf-777f9f9d1155"
|
|
406
|
+ },
|
|
407
|
+ "2a95b473-042d-59d0-2da2-40d0cccb6c8a": {
|
|
408
|
+ "isSystemType": true,
|
|
409
|
+ "bundleAlias": "cards",
|
|
410
|
+ "typeAlias": "timeseries_table",
|
|
411
|
+ "type": "timeseries",
|
|
412
|
+ "title": "New widget",
|
|
413
|
+ "sizeX": 7,
|
|
414
|
+ "sizeY": 7,
|
|
415
|
+ "config": {
|
|
416
|
+ "datasources": [
|
|
417
|
+ {
|
|
418
|
+ "type": "entity",
|
|
419
|
+ "dataKeys": [
|
|
420
|
+ {
|
|
421
|
+ "name": "eventsSent",
|
|
422
|
+ "type": "timeseries",
|
|
423
|
+ "label": "Events",
|
|
424
|
+ "color": "#2196f3",
|
|
425
|
+ "settings": {
|
|
426
|
+ "useCellStyleFunction": false,
|
|
427
|
+ "useCellContentFunction": false
|
|
428
|
+ },
|
|
429
|
+ "_hash": 0.8156044798125357
|
|
430
|
+ },
|
|
431
|
+ {
|
|
432
|
+ "name": "eventsProduced",
|
|
433
|
+ "type": "timeseries",
|
|
434
|
+ "label": "Produced",
|
|
435
|
+ "color": "#4caf50",
|
|
436
|
+ "settings": {
|
|
437
|
+ "useCellStyleFunction": false,
|
|
438
|
+ "useCellContentFunction": false
|
|
439
|
+ },
|
|
440
|
+ "_hash": 0.6538259344015449
|
|
441
|
+ }
|
|
442
|
+ ],
|
|
443
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
444
|
+ }
|
|
445
|
+ ],
|
|
446
|
+ "timewindow": {
|
|
447
|
+ "realtime": {
|
|
448
|
+ "interval": 1000,
|
|
449
|
+ "timewindowMs": 604800000
|
|
450
|
+ },
|
|
451
|
+ "aggregation": {
|
|
452
|
+ "type": "NONE",
|
|
453
|
+ "limit": 200
|
|
454
|
+ }
|
|
455
|
+ },
|
|
456
|
+ "showTitle": true,
|
|
457
|
+ "backgroundColor": "rgb(255, 255, 255)",
|
|
458
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
459
|
+ "padding": "8px",
|
|
460
|
+ "settings": {
|
|
461
|
+ "showTimestamp": true,
|
|
462
|
+ "displayPagination": true,
|
|
463
|
+ "defaultPageSize": 6,
|
|
464
|
+ "hideEmptyLines": true
|
|
465
|
+ },
|
|
466
|
+ "title": "Total Messages",
|
|
467
|
+ "dropShadow": true,
|
|
468
|
+ "enableFullscreen": true,
|
|
469
|
+ "titleStyle": {
|
|
470
|
+ "fontSize": "16px",
|
|
471
|
+ "fontWeight": 400
|
|
472
|
+ },
|
|
473
|
+ "useDashboardTimewindow": false,
|
|
474
|
+ "showLegend": false,
|
|
475
|
+ "widgetStyle": {},
|
|
476
|
+ "actions": {},
|
|
477
|
+ "showTitleIcon": false,
|
|
478
|
+ "titleIcon": null,
|
|
479
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
480
|
+ "iconSize": "24px",
|
|
481
|
+ "titleTooltip": "",
|
|
482
|
+ "displayTimewindow": true,
|
|
483
|
+ "legendConfig": {
|
|
484
|
+ "direction": "column",
|
|
485
|
+ "position": "bottom",
|
|
486
|
+ "showMin": false,
|
|
487
|
+ "showMax": false,
|
|
488
|
+ "showAvg": true,
|
|
489
|
+ "showTotal": false
|
|
490
|
+ }
|
|
491
|
+ },
|
|
492
|
+ "id": "2a95b473-042d-59d0-2da2-40d0cccb6c8a"
|
|
493
|
+ },
|
|
494
|
+ "aaa69366-aacc-9028-65aa-645c0f8533ec": {
|
|
495
|
+ "isSystemType": true,
|
|
496
|
+ "bundleAlias": "charts",
|
|
497
|
+ "typeAlias": "basic_timeseries",
|
|
498
|
+ "type": "timeseries",
|
|
499
|
+ "title": "New widget",
|
|
500
|
+ "sizeX": 17,
|
|
501
|
+ "sizeY": 4,
|
|
502
|
+ "config": {
|
|
503
|
+ "datasources": [
|
|
504
|
+ {
|
|
505
|
+ "type": "entity",
|
|
506
|
+ "dataKeys": [
|
|
507
|
+ {
|
|
508
|
+ "name": "eventsSent",
|
|
509
|
+ "type": "timeseries",
|
|
510
|
+ "label": "eventsSent",
|
|
511
|
+ "color": "#2196f3",
|
|
512
|
+ "settings": {
|
|
513
|
+ "excludeFromStacking": false,
|
|
514
|
+ "hideDataByDefault": false,
|
|
515
|
+ "disableDataHiding": false,
|
|
516
|
+ "removeFromLegend": false,
|
|
517
|
+ "showLines": true,
|
|
518
|
+ "fillLines": false,
|
|
519
|
+ "showPoints": false,
|
|
520
|
+ "showPointShape": "circle",
|
|
521
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
522
|
+ "showPointsLineWidth": 5,
|
|
523
|
+ "showPointsRadius": 3,
|
|
524
|
+ "tooltipValueFormatter": "",
|
|
525
|
+ "showSeparateAxis": false,
|
|
526
|
+ "axisTitle": "",
|
|
527
|
+ "axisPosition": "left",
|
|
528
|
+ "axisTicksFormatter": "",
|
|
529
|
+ "comparisonSettings": {
|
|
530
|
+ "showValuesForComparison": true,
|
|
531
|
+ "comparisonValuesLabel": "",
|
|
532
|
+ "color": ""
|
|
533
|
+ }
|
|
534
|
+ },
|
|
535
|
+ "_hash": 0.41414001784591314
|
|
536
|
+ },
|
|
537
|
+ {
|
|
538
|
+ "name": "eventsProduced",
|
|
539
|
+ "type": "timeseries",
|
|
540
|
+ "label": "eventsProduced",
|
|
541
|
+ "color": "#4caf50",
|
|
542
|
+ "settings": {
|
|
543
|
+ "excludeFromStacking": false,
|
|
544
|
+ "hideDataByDefault": false,
|
|
545
|
+ "disableDataHiding": false,
|
|
546
|
+ "removeFromLegend": false,
|
|
547
|
+ "showLines": true,
|
|
548
|
+ "fillLines": false,
|
|
549
|
+ "showPoints": false,
|
|
550
|
+ "showPointShape": "circle",
|
|
551
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
552
|
+ "showPointsLineWidth": 5,
|
|
553
|
+ "showPointsRadius": 3,
|
|
554
|
+ "tooltipValueFormatter": "",
|
|
555
|
+ "showSeparateAxis": false,
|
|
556
|
+ "axisTitle": "",
|
|
557
|
+ "axisPosition": "left",
|
|
558
|
+ "axisTicksFormatter": "",
|
|
559
|
+ "comparisonSettings": {
|
|
560
|
+ "showValuesForComparison": true,
|
|
561
|
+ "comparisonValuesLabel": "",
|
|
562
|
+ "color": ""
|
|
563
|
+ }
|
|
564
|
+ },
|
|
565
|
+ "_hash": 0.7819101846284422
|
|
566
|
+ }
|
|
567
|
+ ],
|
|
568
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
569
|
+ }
|
|
570
|
+ ],
|
|
571
|
+ "timewindow": {
|
|
572
|
+ "realtime": {
|
|
573
|
+ "timewindowMs": 60000
|
|
574
|
+ }
|
|
575
|
+ },
|
|
576
|
+ "showTitle": true,
|
|
577
|
+ "backgroundColor": "#fff",
|
|
578
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
579
|
+ "padding": "8px",
|
|
580
|
+ "settings": {
|
|
581
|
+ "shadowSize": 4,
|
|
582
|
+ "fontColor": "#545454",
|
|
583
|
+ "fontSize": 10,
|
|
584
|
+ "xaxis": {
|
|
585
|
+ "showLabels": true,
|
|
586
|
+ "color": "#545454"
|
|
587
|
+ },
|
|
588
|
+ "yaxis": {
|
|
589
|
+ "showLabels": true,
|
|
590
|
+ "color": "#545454"
|
|
591
|
+ },
|
|
592
|
+ "grid": {
|
|
593
|
+ "color": "#545454",
|
|
594
|
+ "tickColor": "#DDDDDD",
|
|
595
|
+ "verticalLines": true,
|
|
596
|
+ "horizontalLines": true,
|
|
597
|
+ "outlineWidth": 1
|
|
598
|
+ },
|
|
599
|
+ "stack": false,
|
|
600
|
+ "tooltipIndividual": false,
|
|
601
|
+ "timeForComparison": "months",
|
|
602
|
+ "xaxisSecond": {
|
|
603
|
+ "axisPosition": "top",
|
|
604
|
+ "showLabels": true
|
|
605
|
+ }
|
|
606
|
+ },
|
|
607
|
+ "title": "History information",
|
|
608
|
+ "dropShadow": true,
|
|
609
|
+ "enableFullscreen": true,
|
|
610
|
+ "titleStyle": {
|
|
611
|
+ "fontSize": "16px",
|
|
612
|
+ "fontWeight": 400
|
|
613
|
+ },
|
|
614
|
+ "mobileHeight": null,
|
|
615
|
+ "showTitleIcon": false,
|
|
616
|
+ "titleIcon": null,
|
|
617
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
618
|
+ "iconSize": "24px",
|
|
619
|
+ "titleTooltip": "",
|
|
620
|
+ "widgetStyle": {},
|
|
621
|
+ "useDashboardTimewindow": true,
|
|
622
|
+ "displayTimewindow": true,
|
|
623
|
+ "showLegend": true,
|
|
624
|
+ "legendConfig": {
|
|
625
|
+ "direction": "column",
|
|
626
|
+ "position": "right",
|
|
627
|
+ "showMin": true,
|
|
628
|
+ "showMax": true,
|
|
629
|
+ "showAvg": true,
|
|
630
|
+ "showTotal": true
|
|
631
|
+ },
|
|
632
|
+ "actions": {}
|
|
633
|
+ },
|
|
634
|
+ "id": "aaa69366-aacc-9028-65aa-645c0f8533ec"
|
|
635
|
+ },
|
|
636
|
+ "ce5c7d01-a3ef-5cf0-4578-8505135c23a0": {
|
|
637
|
+ "isSystemType": true,
|
|
638
|
+ "bundleAlias": "charts",
|
|
639
|
+ "typeAlias": "basic_timeseries",
|
|
640
|
+ "type": "timeseries",
|
|
641
|
+ "title": "New widget",
|
|
642
|
+ "sizeX": 17,
|
|
643
|
+ "sizeY": 4,
|
|
644
|
+ "config": {
|
|
645
|
+ "datasources": [
|
|
646
|
+ {
|
|
647
|
+ "type": "entity",
|
|
648
|
+ "dataKeys": [
|
|
649
|
+ {
|
|
650
|
+ "name": "bleEventsProduced",
|
|
651
|
+ "type": "timeseries",
|
|
652
|
+ "label": "bleEventsProduced",
|
|
653
|
+ "color": "#2196f3",
|
|
654
|
+ "settings": {
|
|
655
|
+ "excludeFromStacking": false,
|
|
656
|
+ "hideDataByDefault": false,
|
|
657
|
+ "disableDataHiding": false,
|
|
658
|
+ "removeFromLegend": false,
|
|
659
|
+ "showLines": true,
|
|
660
|
+ "fillLines": false,
|
|
661
|
+ "showPoints": false,
|
|
662
|
+ "showPointShape": "circle",
|
|
663
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
664
|
+ "showPointsLineWidth": 5,
|
|
665
|
+ "showPointsRadius": 3,
|
|
666
|
+ "tooltipValueFormatter": "",
|
|
667
|
+ "showSeparateAxis": false,
|
|
668
|
+ "axisTitle": "",
|
|
669
|
+ "axisPosition": "left",
|
|
670
|
+ "axisTicksFormatter": "",
|
|
671
|
+ "comparisonSettings": {
|
|
672
|
+ "showValuesForComparison": true,
|
|
673
|
+ "comparisonValuesLabel": "",
|
|
674
|
+ "color": ""
|
|
675
|
+ }
|
|
676
|
+ },
|
|
677
|
+ "_hash": 0.5625165504526104
|
|
678
|
+ },
|
|
679
|
+ {
|
|
680
|
+ "name": "bleEventsSent",
|
|
681
|
+ "type": "timeseries",
|
|
682
|
+ "label": "bleEventsSent",
|
|
683
|
+ "color": "#4caf50",
|
|
684
|
+ "settings": {
|
|
685
|
+ "excludeFromStacking": false,
|
|
686
|
+ "hideDataByDefault": false,
|
|
687
|
+ "disableDataHiding": false,
|
|
688
|
+ "removeFromLegend": false,
|
|
689
|
+ "showLines": true,
|
|
690
|
+ "fillLines": false,
|
|
691
|
+ "showPoints": false,
|
|
692
|
+ "showPointShape": "circle",
|
|
693
|
+ "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
|
|
694
|
+ "showPointsLineWidth": 5,
|
|
695
|
+ "showPointsRadius": 3,
|
|
696
|
+ "tooltipValueFormatter": "",
|
|
697
|
+ "showSeparateAxis": false,
|
|
698
|
+ "axisTitle": "",
|
|
699
|
+ "axisPosition": "left",
|
|
700
|
+ "axisTicksFormatter": "",
|
|
701
|
+ "comparisonSettings": {
|
|
702
|
+ "showValuesForComparison": true,
|
|
703
|
+ "comparisonValuesLabel": "",
|
|
704
|
+ "color": ""
|
|
705
|
+ }
|
|
706
|
+ },
|
|
707
|
+ "_hash": 0.6817950080745288
|
|
708
|
+ }
|
|
709
|
+ ],
|
|
710
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
711
|
+ }
|
|
712
|
+ ],
|
|
713
|
+ "timewindow": {
|
|
714
|
+ "realtime": {
|
|
715
|
+ "interval": 5000,
|
|
716
|
+ "timewindowMs": 120000
|
|
717
|
+ },
|
|
718
|
+ "aggregation": {
|
|
719
|
+ "type": "AVG",
|
|
720
|
+ "limit": 25000
|
|
721
|
+ }
|
|
722
|
+ },
|
|
723
|
+ "showTitle": true,
|
|
724
|
+ "backgroundColor": "#fff",
|
|
725
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
726
|
+ "padding": "8px",
|
|
727
|
+ "settings": {
|
|
728
|
+ "shadowSize": 4,
|
|
729
|
+ "fontColor": "#545454",
|
|
730
|
+ "fontSize": 10,
|
|
731
|
+ "xaxis": {
|
|
732
|
+ "showLabels": true,
|
|
733
|
+ "color": "#545454"
|
|
734
|
+ },
|
|
735
|
+ "yaxis": {
|
|
736
|
+ "showLabels": true,
|
|
737
|
+ "color": "#545454"
|
|
738
|
+ },
|
|
739
|
+ "grid": {
|
|
740
|
+ "color": "#545454",
|
|
741
|
+ "tickColor": "#DDDDDD",
|
|
742
|
+ "verticalLines": true,
|
|
743
|
+ "horizontalLines": true,
|
|
744
|
+ "outlineWidth": 1
|
|
745
|
+ },
|
|
746
|
+ "stack": false,
|
|
747
|
+ "tooltipIndividual": false,
|
|
748
|
+ "timeForComparison": "months",
|
|
749
|
+ "xaxisSecond": {
|
|
750
|
+ "axisPosition": "top",
|
|
751
|
+ "showLabels": true
|
|
752
|
+ }
|
|
753
|
+ },
|
|
754
|
+ "title": "Real time information",
|
|
755
|
+ "dropShadow": true,
|
|
756
|
+ "enableFullscreen": true,
|
|
757
|
+ "titleStyle": {
|
|
758
|
+ "fontSize": "16px",
|
|
759
|
+ "fontWeight": 400
|
|
760
|
+ },
|
|
761
|
+ "mobileHeight": null,
|
|
762
|
+ "showTitleIcon": false,
|
|
763
|
+ "titleIcon": null,
|
|
764
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
765
|
+ "iconSize": "24px",
|
|
766
|
+ "titleTooltip": "",
|
|
767
|
+ "widgetStyle": {},
|
|
768
|
+ "useDashboardTimewindow": false,
|
|
769
|
+ "displayTimewindow": true,
|
|
770
|
+ "showLegend": true,
|
|
771
|
+ "legendConfig": {
|
|
772
|
+ "direction": "column",
|
|
773
|
+ "position": "right",
|
|
774
|
+ "showMin": true,
|
|
775
|
+ "showMax": true,
|
|
776
|
+ "showAvg": true,
|
|
777
|
+ "showTotal": true
|
|
778
|
+ },
|
|
779
|
+ "actions": {}
|
|
780
|
+ },
|
|
781
|
+ "id": "ce5c7d01-a3ef-5cf0-4578-8505135c23a0"
|
|
782
|
+ },
|
|
783
|
+ "466f046d-6005-a168-b107-60fcb2469cd5": {
|
|
784
|
+ "isSystemType": true,
|
|
785
|
+ "bundleAlias": "gateway_widgets",
|
|
786
|
+ "typeAlias": "attributes_card",
|
|
787
|
+ "type": "latest",
|
|
788
|
+ "title": "New widget",
|
|
789
|
+ "sizeX": 7,
|
|
790
|
+ "sizeY": 5,
|
|
791
|
+ "config": {
|
|
792
|
+ "datasources": [
|
|
793
|
+ {
|
|
794
|
+ "type": "entity",
|
|
795
|
+ "dataKeys": [],
|
|
796
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
797
|
+ }
|
|
798
|
+ ],
|
|
799
|
+ "timewindow": {
|
|
800
|
+ "realtime": {
|
|
801
|
+ "timewindowMs": 60000
|
|
802
|
+ }
|
|
803
|
+ },
|
|
804
|
+ "showTitle": true,
|
|
805
|
+ "backgroundColor": "#fff",
|
|
806
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
807
|
+ "padding": "8px",
|
|
808
|
+ "settings": {
|
|
809
|
+ "eventsTitle": "Gateway Events Form",
|
|
810
|
+ "eventsReg": [
|
|
811
|
+ "EventsProduced",
|
|
812
|
+ "EventsSent"
|
|
813
|
+ ]
|
|
814
|
+ },
|
|
815
|
+ "title": "Gateway events",
|
|
816
|
+ "showTitleIcon": false,
|
|
817
|
+ "titleIcon": null,
|
|
818
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
819
|
+ "iconSize": "24px",
|
|
820
|
+ "titleTooltip": "",
|
|
821
|
+ "dropShadow": true,
|
|
822
|
+ "enableFullscreen": true,
|
|
823
|
+ "widgetStyle": {},
|
|
824
|
+ "titleStyle": {
|
|
825
|
+ "fontSize": "16px",
|
|
826
|
+ "fontWeight": 400
|
|
827
|
+ },
|
|
828
|
+ "useDashboardTimewindow": true,
|
|
829
|
+ "displayTimewindow": true,
|
|
830
|
+ "showLegend": false,
|
|
831
|
+ "actions": {}
|
|
832
|
+ },
|
|
833
|
+ "id": "466f046d-6005-a168-b107-60fcb2469cd5"
|
|
834
|
+ },
|
|
835
|
+ "8fc32225-164f-3258-73f7-e6b6d959cf0b": {
|
|
836
|
+ "isSystemType": true,
|
|
837
|
+ "bundleAlias": "gateway_widgets",
|
|
838
|
+ "typeAlias": "config_form_latest",
|
|
839
|
+ "type": "latest",
|
|
840
|
+ "title": "New widget",
|
|
841
|
+ "sizeX": 10,
|
|
842
|
+ "sizeY": 9,
|
|
843
|
+ "config": {
|
|
844
|
+ "datasources": [
|
|
845
|
+ {
|
|
846
|
+ "type": "entity",
|
|
847
|
+ "dataKeys": [],
|
|
848
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
849
|
+ }
|
|
850
|
+ ],
|
|
851
|
+ "timewindow": {
|
|
852
|
+ "realtime": {
|
|
853
|
+ "timewindowMs": 60000
|
|
854
|
+ }
|
|
855
|
+ },
|
|
856
|
+ "showTitle": true,
|
|
857
|
+ "backgroundColor": "#fff",
|
|
858
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
859
|
+ "padding": "8px",
|
|
860
|
+ "settings": {
|
|
861
|
+ "gatewayTitle": "Gateway configuration (Single device)",
|
|
862
|
+ "readOnly": false
|
|
863
|
+ },
|
|
864
|
+ "title": "New Gateway configuration (Single device)",
|
|
865
|
+ "showTitleIcon": false,
|
|
866
|
+ "titleIcon": null,
|
|
867
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
868
|
+ "iconSize": "24px",
|
|
869
|
+ "titleTooltip": "",
|
|
870
|
+ "dropShadow": true,
|
|
871
|
+ "enableFullscreen": true,
|
|
872
|
+ "widgetStyle": {},
|
|
873
|
+ "titleStyle": {
|
|
874
|
+ "fontSize": "16px",
|
|
875
|
+ "fontWeight": 400
|
|
876
|
+ },
|
|
877
|
+ "useDashboardTimewindow": true,
|
|
878
|
+ "displayTimewindow": true,
|
|
879
|
+ "showLegend": false,
|
|
880
|
+ "actions": {}
|
|
881
|
+ },
|
|
882
|
+ "id": "8fc32225-164f-3258-73f7-e6b6d959cf0b"
|
|
883
|
+ },
|
|
884
|
+ "063fc179-c9fd-f952-e714-f24e9c43c05c": {
|
|
885
|
+ "isSystemType": true,
|
|
886
|
+ "bundleAlias": "control_widgets",
|
|
887
|
+ "typeAlias": "rpcbutton",
|
|
888
|
+ "type": "rpc",
|
|
889
|
+ "title": "New widget",
|
|
890
|
+ "sizeX": 4,
|
|
891
|
+ "sizeY": 2,
|
|
892
|
+ "config": {
|
|
893
|
+ "targetDeviceAliases": [],
|
|
894
|
+ "showTitle": false,
|
|
895
|
+ "backgroundColor": "#e6e7e8",
|
|
896
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
897
|
+ "padding": "0px",
|
|
898
|
+ "settings": {
|
|
899
|
+ "requestTimeout": 5000,
|
|
900
|
+ "oneWayElseTwoWay": true,
|
|
901
|
+ "styleButton": {
|
|
902
|
+ "isRaised": true,
|
|
903
|
+ "isPrimary": false
|
|
904
|
+ },
|
|
905
|
+ "methodParams": "{}",
|
|
906
|
+ "methodName": "gateway_reboot",
|
|
907
|
+ "buttonText": "GATEWAY REBOOT"
|
|
908
|
+ },
|
|
909
|
+ "title": "New RPC Button",
|
|
910
|
+ "dropShadow": true,
|
|
911
|
+ "enableFullscreen": false,
|
|
912
|
+ "widgetStyle": {},
|
|
913
|
+ "titleStyle": {
|
|
914
|
+ "fontSize": "16px",
|
|
915
|
+ "fontWeight": 400
|
|
916
|
+ },
|
|
917
|
+ "useDashboardTimewindow": true,
|
|
918
|
+ "showLegend": false,
|
|
919
|
+ "actions": {},
|
|
920
|
+ "datasources": [],
|
|
921
|
+ "showTitleIcon": false,
|
|
922
|
+ "titleIcon": null,
|
|
923
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
924
|
+ "iconSize": "24px",
|
|
925
|
+ "titleTooltip": "",
|
|
926
|
+ "displayTimewindow": true,
|
|
927
|
+ "targetDeviceAliasIds": [
|
|
928
|
+ "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
929
|
+ ]
|
|
930
|
+ },
|
|
931
|
+ "id": "063fc179-c9fd-f952-e714-f24e9c43c05c"
|
|
932
|
+ },
|
|
933
|
+ "3c2134cc-27a0-93e1-dbe1-2fa7c1ce16b7": {
|
|
934
|
+ "isSystemType": true,
|
|
935
|
+ "bundleAlias": "control_widgets",
|
|
936
|
+ "typeAlias": "rpcbutton",
|
|
937
|
+ "type": "rpc",
|
|
938
|
+ "title": "New widget",
|
|
939
|
+ "sizeX": 4,
|
|
940
|
+ "sizeY": 2,
|
|
941
|
+ "config": {
|
|
942
|
+ "targetDeviceAliases": [],
|
|
943
|
+ "showTitle": false,
|
|
944
|
+ "backgroundColor": "#e6e7e8",
|
|
945
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
946
|
+ "padding": "0px",
|
|
947
|
+ "settings": {
|
|
948
|
+ "requestTimeout": 5000,
|
|
949
|
+ "oneWayElseTwoWay": true,
|
|
950
|
+ "styleButton": {
|
|
951
|
+ "isRaised": true,
|
|
952
|
+ "isPrimary": false
|
|
953
|
+ },
|
|
954
|
+ "methodName": "gateway_restart",
|
|
955
|
+ "methodParams": "{}",
|
|
956
|
+ "buttonText": "gateway restart"
|
|
957
|
+ },
|
|
958
|
+ "title": "New RPC Button",
|
|
959
|
+ "dropShadow": true,
|
|
960
|
+ "enableFullscreen": false,
|
|
961
|
+ "widgetStyle": {},
|
|
962
|
+ "titleStyle": {
|
|
963
|
+ "fontSize": "16px",
|
|
964
|
+ "fontWeight": 400
|
|
965
|
+ },
|
|
966
|
+ "useDashboardTimewindow": true,
|
|
967
|
+ "showLegend": false,
|
|
968
|
+ "actions": {},
|
|
969
|
+ "datasources": [],
|
|
970
|
+ "showTitleIcon": false,
|
|
971
|
+ "titleIcon": null,
|
|
972
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
973
|
+ "iconSize": "24px",
|
|
974
|
+ "titleTooltip": "",
|
|
975
|
+ "displayTimewindow": true,
|
|
976
|
+ "targetDeviceAliasIds": [
|
|
977
|
+ "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
978
|
+ ]
|
|
979
|
+ },
|
|
980
|
+ "id": "3c2134cc-27a0-93e1-dbe1-2fa7c1ce16b7"
|
|
981
|
+ },
|
|
982
|
+ "6770b6ba-eff8-df05-75f8-c1f9326d4842": {
|
|
983
|
+ "isSystemType": true,
|
|
984
|
+ "bundleAlias": "input_widgets",
|
|
985
|
+ "typeAlias": "markers_placement_openstreetmap",
|
|
986
|
+ "type": "latest",
|
|
987
|
+ "title": "New widget",
|
|
988
|
+ "sizeX": 6,
|
|
989
|
+ "sizeY": 4,
|
|
990
|
+ "config": {
|
|
991
|
+ "datasources": [
|
|
992
|
+ {
|
|
993
|
+ "type": "entity",
|
|
994
|
+ "dataKeys": [
|
|
995
|
+ {
|
|
996
|
+ "name": "latitude",
|
|
997
|
+ "type": "attribute",
|
|
998
|
+ "label": "latitude",
|
|
999
|
+ "color": "#2196f3",
|
|
1000
|
+ "settings": {},
|
|
1001
|
+ "_hash": 0.9743324774725604
|
|
1002
|
+ },
|
|
1003
|
+ {
|
|
1004
|
+ "name": "longitude",
|
|
1005
|
+ "type": "attribute",
|
|
1006
|
+ "label": "longitude",
|
|
1007
|
+ "color": "#4caf50",
|
|
1008
|
+ "settings": {},
|
|
1009
|
+ "_hash": 0.5530093635101525
|
|
1010
|
+ }
|
|
1011
|
+ ],
|
|
1012
|
+ "entityAliasId": "b2487e75-2fa4-f211-142c-434dfd50c70c"
|
|
1013
|
+ }
|
|
1014
|
+ ],
|
|
1015
|
+ "timewindow": {
|
|
1016
|
+ "realtime": {
|
|
1017
|
+ "timewindowMs": 60000
|
|
1018
|
+ }
|
|
1019
|
+ },
|
|
1020
|
+ "showTitle": false,
|
|
1021
|
+ "backgroundColor": "#fff",
|
|
1022
|
+ "color": "rgba(0, 0, 0, 0.87)",
|
|
1023
|
+ "padding": "8px",
|
|
1024
|
+ "settings": {
|
|
1025
|
+ "fitMapBounds": true,
|
|
1026
|
+ "latKeyName": "latitude",
|
|
1027
|
+ "lngKeyName": "longitude",
|
|
1028
|
+ "showLabel": true,
|
|
1029
|
+ "label": "${entityName}",
|
|
1030
|
+ "tooltipPattern": "<b>${entityName}</b><br/><br/><b>Latitude:</b> ${latitude:7}<br/><b>Longitude:</b> ${longitude:7}<br/><br/><link-act name='delete'>Delete</link-act>",
|
|
1031
|
+ "markerImageSize": 34,
|
|
1032
|
+ "useColorFunction": false,
|
|
1033
|
+ "markerImages": [],
|
|
1034
|
+ "useMarkerImageFunction": false,
|
|
1035
|
+ "color": "#fe7569",
|
|
1036
|
+ "mapProvider": "OpenStreetMap.Mapnik",
|
|
1037
|
+ "showTooltip": true,
|
|
1038
|
+ "autocloseTooltip": true,
|
|
1039
|
+ "defaultCenterPosition": [
|
|
1040
|
+ 0,
|
|
1041
|
+ 0
|
|
1042
|
+ ],
|
|
1043
|
+ "customProviderTileUrl": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
1044
|
+ "showTooltipAction": "click",
|
|
1045
|
+ "polygonKeyName": "coordinates",
|
|
1046
|
+ "polygonOpacity": 0.5,
|
|
1047
|
+ "polygonStrokeOpacity": 1,
|
|
1048
|
+ "polygonStrokeWeight": 1,
|
|
1049
|
+ "zoomOnClick": true,
|
|
1050
|
+ "showCoverageOnHover": true,
|
|
1051
|
+ "animate": true,
|
|
1052
|
+ "maxClusterRadius": 80,
|
|
1053
|
+ "removeOutsideVisibleBounds": true,
|
|
1054
|
+ "defaultZoomLevel": 5
|
|
1055
|
+ },
|
|
1056
|
+ "title": "Gateway Location",
|
|
1057
|
+ "dropShadow": true,
|
|
1058
|
+ "enableFullscreen": false,
|
|
1059
|
+ "titleStyle": {
|
|
1060
|
+ "fontSize": "16px",
|
|
1061
|
+ "fontWeight": 400
|
|
1062
|
+ },
|
|
1063
|
+ "useDashboardTimewindow": true,
|
|
1064
|
+ "showLegend": false,
|
|
1065
|
+ "widgetStyle": {},
|
|
1066
|
+ "actions": {
|
|
1067
|
+ "tooltipAction": [
|
|
1068
|
+ {
|
|
1069
|
+ "id": "54c293c4-9ca6-e34f-dc6a-0271944c1c66",
|
|
1070
|
+ "name": "delete",
|
|
1071
|
+ "icon": "more_horiz",
|
|
1072
|
+ "type": "custom",
|
|
1073
|
+ "customFunction": "var $rootScope = widgetContext.$scope.$injector.get('$rootScope');\nvar entityDatasource = widgetContext.map.subscription.datasources.filter(\n function(entity) {\n return entity.entityId === entityId.id\n });\n\nwidgetContext.map.saveMarkerLocation(entityDatasource[0],\n widgetContext.map.locations[0], {\n \"lat\": null,\n \"lng\": null\n }).then(function succes() {\n $rootScope.$broadcast('widgetForceReInit');\n });"
|
|
1074
|
+ }
|
|
1075
|
+ ]
|
|
1076
|
+ },
|
|
1077
|
+ "showTitleIcon": false,
|
|
1078
|
+ "titleIcon": null,
|
|
1079
|
+ "iconColor": "rgba(0, 0, 0, 0.87)",
|
|
1080
|
+ "iconSize": "24px",
|
|
1081
|
+ "titleTooltip": "",
|
|
1082
|
+ "displayTimewindow": true
|
|
1083
|
+ },
|
|
1084
|
+ "id": "6770b6ba-eff8-df05-75f8-c1f9326d4842"
|
|
1085
|
+ }
|
|
1086
|
+ },
|
|
1087
|
+ "states": {
|
|
1088
|
+ "main_gateway": {
|
|
1089
|
+ "name": "Gateways",
|
|
1090
|
+ "root": true,
|
|
1091
|
+ "layouts": {
|
|
1092
|
+ "main": {
|
|
1093
|
+ "widgets": {
|
|
1094
|
+ "94715984-ae74-76e4-20b7-2f956b01ed80": {
|
|
1095
|
+ "sizeX": 24,
|
|
1096
|
+ "sizeY": 12,
|
|
1097
|
+ "row": 0,
|
|
1098
|
+ "col": 0
|
|
1099
|
+ }
|
|
1100
|
+ },
|
|
1101
|
+ "gridSettings": {
|
|
1102
|
+ "backgroundColor": "#eeeeee",
|
|
1103
|
+ "color": "rgba(0,0,0,0.870588)",
|
|
1104
|
+ "columns": 24,
|
|
1105
|
+ "margins": [
|
|
1106
|
+ 10,
|
|
1107
|
+ 10
|
|
1108
|
+ ],
|
|
1109
|
+ "backgroundSizeMode": "100%",
|
|
1110
|
+ "autoFillHeight": true,
|
|
1111
|
+ "mobileAutoFillHeight": false,
|
|
1112
|
+ "mobileRowHeight": 70
|
|
1113
|
+ }
|
|
1114
|
+ }
|
|
1115
|
+ }
|
|
1116
|
+ },
|
|
1117
|
+ "__entityname__config": {
|
|
1118
|
+ "name": "${entityName} Configuration",
|
|
1119
|
+ "root": false,
|
|
1120
|
+ "layouts": {
|
|
1121
|
+ "main": {
|
|
1122
|
+ "widgets": {
|
|
1123
|
+ "eadabbc7-519e-76fc-ba10-b3fe8c18da10": {
|
|
1124
|
+ "sizeX": 14,
|
|
1125
|
+ "sizeY": 13,
|
|
1126
|
+ "row": 0,
|
|
1127
|
+ "col": 10
|
|
1128
|
+ },
|
|
1129
|
+ "8fc32225-164f-3258-73f7-e6b6d959cf0b": {
|
|
1130
|
+ "sizeX": 10,
|
|
1131
|
+ "sizeY": 9,
|
|
1132
|
+ "row": 0,
|
|
1133
|
+ "col": 0
|
|
1134
|
+ },
|
|
1135
|
+ "063fc179-c9fd-f952-e714-f24e9c43c05c": {
|
|
1136
|
+ "sizeX": 4,
|
|
1137
|
+ "sizeY": 2,
|
|
1138
|
+ "row": 9,
|
|
1139
|
+ "col": 0
|
|
1140
|
+ },
|
|
1141
|
+ "3c2134cc-27a0-93e1-dbe1-2fa7c1ce16b7": {
|
|
1142
|
+ "sizeX": 4,
|
|
1143
|
+ "sizeY": 2,
|
|
1144
|
+ "row": 11,
|
|
1145
|
+ "col": 0
|
|
1146
|
+ },
|
|
1147
|
+ "6770b6ba-eff8-df05-75f8-c1f9326d4842": {
|
|
1148
|
+ "sizeX": 6,
|
|
1149
|
+ "sizeY": 4,
|
|
1150
|
+ "row": 9,
|
|
1151
|
+ "col": 4
|
|
1152
|
+ }
|
|
1153
|
+ },
|
|
1154
|
+ "gridSettings": {
|
|
1155
|
+ "backgroundColor": "#eeeeee",
|
|
1156
|
+ "color": "rgba(0,0,0,0.870588)",
|
|
1157
|
+ "columns": 24,
|
|
1158
|
+ "margins": [
|
|
1159
|
+ 10,
|
|
1160
|
+ 10
|
|
1161
|
+ ],
|
|
1162
|
+ "backgroundSizeMode": "100%",
|
|
1163
|
+ "autoFillHeight": true,
|
|
1164
|
+ "mobileAutoFillHeight": false,
|
|
1165
|
+ "mobileRowHeight": 70
|
|
1166
|
+ }
|
|
1167
|
+ }
|
|
1168
|
+ }
|
|
1169
|
+ },
|
|
1170
|
+ "__entityname_grafic": {
|
|
1171
|
+ "name": "${entityName} Details",
|
|
1172
|
+ "root": false,
|
|
1173
|
+ "layouts": {
|
|
1174
|
+ "main": {
|
|
1175
|
+ "widgets": {
|
|
1176
|
+ "f928afc4-30d1-8d0c-e3cf-777f9f9d1155": {
|
|
1177
|
+ "sizeX": 17,
|
|
1178
|
+ "sizeY": 4,
|
|
1179
|
+ "mobileHeight": null,
|
|
1180
|
+ "row": 4,
|
|
1181
|
+ "col": 7
|
|
1182
|
+ },
|
|
1183
|
+ "2a95b473-042d-59d0-2da2-40d0cccb6c8a": {
|
|
1184
|
+ "sizeX": 7,
|
|
1185
|
+ "sizeY": 7,
|
|
1186
|
+ "row": 5,
|
|
1187
|
+ "col": 0
|
|
1188
|
+ },
|
|
1189
|
+ "aaa69366-aacc-9028-65aa-645c0f8533ec": {
|
|
1190
|
+ "sizeX": 17,
|
|
1191
|
+ "sizeY": 4,
|
|
1192
|
+ "mobileHeight": null,
|
|
1193
|
+ "row": 0,
|
|
1194
|
+ "col": 7
|
|
1195
|
+ },
|
|
1196
|
+ "ce5c7d01-a3ef-5cf0-4578-8505135c23a0": {
|
|
1197
|
+ "sizeX": 17,
|
|
1198
|
+ "sizeY": 4,
|
|
1199
|
+ "mobileHeight": null,
|
|
1200
|
+ "row": 8,
|
|
1201
|
+ "col": 7
|
|
1202
|
+ },
|
|
1203
|
+ "466f046d-6005-a168-b107-60fcb2469cd5": {
|
|
1204
|
+ "sizeX": 7,
|
|
1205
|
+ "sizeY": 5,
|
|
1206
|
+ "row": 0,
|
|
1207
|
+ "col": 0
|
|
1208
|
+ }
|
|
1209
|
+ },
|
|
1210
|
+ "gridSettings": {
|
|
1211
|
+ "backgroundColor": "#eeeeee",
|
|
1212
|
+ "color": "rgba(0,0,0,0.870588)",
|
|
1213
|
+ "columns": 24,
|
|
1214
|
+ "margins": [
|
|
1215
|
+ 10,
|
|
1216
|
+ 10
|
|
1217
|
+ ],
|
|
1218
|
+ "backgroundSizeMode": "auto 100%",
|
|
1219
|
+ "autoFillHeight": true,
|
|
1220
|
+ "mobileAutoFillHeight": true,
|
|
1221
|
+ "mobileRowHeight": 70
|
|
1222
|
+ }
|
|
1223
|
+ }
|
|
1224
|
+ }
|
|
1225
|
+ }
|
|
1226
|
+ },
|
|
1227
|
+ "entityAliases": {
|
|
1228
|
+ "3e0f533a-0db1-3292-184f-06e73535061a": {
|
|
1229
|
+ "id": "3e0f533a-0db1-3292-184f-06e73535061a",
|
|
1230
|
+ "alias": "Gateways",
|
|
1231
|
+ "filter": {
|
|
1232
|
+ "type": "deviceType",
|
|
1233
|
+ "resolveMultiple": true,
|
|
1234
|
+ "deviceType": "gateway",
|
|
1235
|
+ "deviceNameFilter": ""
|
|
1236
|
+ }
|
|
1237
|
+ },
|
|
1238
|
+ "b2487e75-2fa4-f211-142c-434dfd50c70c": {
|
|
1239
|
+ "id": "b2487e75-2fa4-f211-142c-434dfd50c70c",
|
|
1240
|
+ "alias": "Current Gateway",
|
|
1241
|
+ "filter": {
|
|
1242
|
+ "type": "stateEntity",
|
|
1243
|
+ "resolveMultiple": false,
|
|
1244
|
+ "stateEntityParamName": "",
|
|
1245
|
+ "defaultStateEntity": null
|
|
1246
|
+ }
|
|
1247
|
+ }
|
|
1248
|
+ },
|
|
1249
|
+ "timewindow": {
|
|
1250
|
+ "realtime": {
|
|
1251
|
+ "interval": 1000,
|
|
1252
|
+ "timewindowMs": 86400000
|
|
1253
|
+ },
|
|
1254
|
+ "aggregation": {
|
|
1255
|
+ "type": "NONE",
|
|
1256
|
+ "limit": 25000
|
|
1257
|
+ },
|
|
1258
|
+ "hideInterval": false,
|
|
1259
|
+ "hideAggregation": false,
|
|
1260
|
+ "hideAggInterval": false
|
|
1261
|
+ },
|
|
1262
|
+ "settings": {
|
|
1263
|
+ "stateControllerId": "entity",
|
|
1264
|
+ "showTitle": true,
|
|
1265
|
+ "showDashboardsSelect": true,
|
|
1266
|
+ "showEntitiesSelect": true,
|
|
1267
|
+ "showDashboardTimewindow": true,
|
|
1268
|
+ "showDashboardExport": true,
|
|
1269
|
+ "toolbarAlwaysOpen": true,
|
|
1270
|
+ "titleColor": "rgba(0,0,0,0.870588)"
|
|
1271
|
+ }
|
|
1272
|
+ },
|
|
1273
|
+ "name": "Gateways"
|
|
1274
|
+} |
|
|
\ No newline at end of file |
...
|
...
|
|