Browse Source

Added offline backups for Gateways

pull/12315/head
mpetrov 2 years ago
parent
commit
04e5060689
  1. 24
      application/src/main/data/json/system/widget_types/gateway_configuration.json
  2. 24
      application/src/main/data/json/system/widget_types/gateway_configuration__single_device_.json
  3. 23
      application/src/main/data/json/system/widget_types/gateway_connectors.json
  4. 23
      application/src/main/data/json/system/widget_types/gateway_custom_statistics.json
  5. 23
      application/src/main/data/json/system/widget_types/gateway_general_chart_statistics.json
  6. 30
      application/src/main/data/json/system/widget_types/gateway_general_configuration.json
  7. 23
      application/src/main/data/json/system/widget_types/gateway_logs.json
  8. 44
      application/src/main/data/json/system/widget_types/gateway_status.json
  9. 23
      application/src/main/data/json/system/widget_types/service_rpc.json
  10. 4432
      application/src/main/data/resources/dashboards/gateways_dashboard.json
  11. 8
      application/src/main/data/resources/js_modules/gateway-management-extension.js

24
application/src/main/data/json/system/widget_types/gateway_configuration.json

File diff suppressed because one or more lines are too long

24
application/src/main/data/json/system/widget_types/gateway_configuration__single_device_.json

File diff suppressed because one or more lines are too long

23
application/src/main/data/json/system/widget_types/gateway_connectors.json

File diff suppressed because one or more lines are too long

23
application/src/main/data/json/system/widget_types/gateway_custom_statistics.json

File diff suppressed because one or more lines are too long

23
application/src/main/data/json/system/widget_types/gateway_general_chart_statistics.json

File diff suppressed because one or more lines are too long

30
application/src/main/data/json/system/widget_types/gateway_general_configuration.json

File diff suppressed because one or more lines are too long

23
application/src/main/data/json/system/widget_types/gateway_logs.json

File diff suppressed because one or more lines are too long

44
application/src/main/data/json/system/widget_types/gateway_status.json

@ -0,0 +1,44 @@
{
"fqn": "gateway_widgets.gateway_status",
"name": "Gateway status",
"deprecated": false,
"image": "tb-image;/api/images/system/gateway_status_system_widget_image.png",
"description": "Indicator of Gateway connection status.",
"descriptor": {
"type": "latest",
"sizeX": 7.5,
"sizeY": 3,
"resources": [
{
"url": "tb-resource;/api/resource/js_module/system/gateway-management-extension.js",
"isModule": true
}
],
"templateHtml": "<tb-gateway-status [deviceId]=\"entityId\" *ngIf=\"entityId\" [ctx]=\"ctx\"></tb-gateway-status>",
"templateCss": "",
"controllerScript": "self.onInit = function() {\n if (self.ctx.datasources && self.ctx.datasources.length) {\n self.ctx.$scope.entityId = self.ctx.datasources[0].entity.id;\n }\n};\n\nself.onDataUpdated = function() {\n self.ctx.$scope.gatewayStatus?.onDataUpdated();\n};",
"settingsSchema": "",
"dataKeySettingsSchema": "",
"settingsDirective": "tb-gateway-status",
"defaultConfig": "{\"datasources\":[{\"type\":\"static\",\"name\":\"function\",\"dataKeys\":[{\"name\":\"f(x)\",\"type\":\"function\",\"label\":\"Random\",\"color\":\"#2196f3\",\"settings\":{},\"_hash\":0.15479322438769105,\"funcBody\":\"var value = prevValue + Math.random() * 100 - 50;\\nvar multiplier = Math.pow(10, 2 || 0);\\nvar value = Math.round(value * multiplier) / multiplier;\\nif (value < -1000) {\\n\\tvalue = -1000;\\n} else if (value > 1000) {\\n\\tvalue = 1000;\\n}\\nreturn value;\"}]}],\"timewindow\":{\"realtime\":{\"timewindowMs\":60000}},\"showTitle\":false,\"backgroundColor\":\"rgb(255, 255, 255)\",\"color\":\"rgba(0, 0, 0, 0.87)\",\"padding\":\"8px\",\"settings\":{\"cardHtml\":\"<div class='card'>HTML code here</div>\",\"cardCss\":\".card {\\n font-weight: bold;\\n font-size: 32px;\\n color: #999;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n}\"},\"title\":\"HTML Card\",\"dropShadow\":true}"
},
"tags": [
"router",
"bridge",
"hub",
"access point",
"relay",
"opc ua",
"opc-ua",
"modbus",
"bacnet",
"odbc",
"ftp",
"snmp",
"mqtt",
"xmpp",
"ocpp",
"ble",
"bluetooth"
]
}

23
application/src/main/data/json/system/widget_types/service_rpc.json

File diff suppressed because one or more lines are too long

4432
application/src/main/data/resources/dashboards/gateways_dashboard.json

File diff suppressed because it is too large

8
application/src/main/data/resources/js_modules/gateway-management-extension.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save