Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubi-gists/6c974f19ac2abb3237beab4a660938ba to your computer and use it in GitHub Desktop.
Save ubi-gists/6c974f19ac2abb3237beab4a660938ba to your computer and use it in GitHub Desktop.
[
{
"__model__": "dashboard",
"label": "ncd-ota",
"name": "NCD OTA",
"description": "",
"tags": [],
"context": {
"size": "auto",
"alignment": "center",
"isDynamic": true,
"displayName": "name",
"__customStyle": null,
"dashboardType": "one-device",
"defaultDevice": "~00:13:a2:00:41:ee:32:a8",
"hasBackground": false,
"imageSettings": {
"isUrlValue": false
},
"temporalxaxis": "dynamic",
"filterSettings": {},
"hideDatePicker": false,
"widgetsOpacity": 1,
"floatingWidgets": false,
"timestampFormat": "MM/DD/YYYY HH:mm",
"deviceFilterType": "device_group",
"deviceFilterEntityId": "~vibration-sensors",
"widgetVerticalSpacing": 10,
"hideHeaderFooterWidgets": false,
"widgetHorizontalSpacing": 10,
"prospector_is_filters_last_value_alt": false
},
"timeframe": {
"endDate": "now/d",
"startDate": "now-7d"
},
"isEditable": true,
"order": 1
},
{
"__model__": "widget",
"name": "Request Raw",
"position": {
"h": 6,
"w": 6,
"x": 10,
"y": 8
},
"type": "manual_input",
"settings": {
"time": [],
"dataFetch": "inherit",
"dataEntities": {
"devices": [],
"variables": [
{
"span": null,
"step": 1,
"type": "last_value",
"label": "request-raw",
"maxValue": "1",
"minValue": "1",
"inputLabel": "Type in 1",
"aggregationMethod": "last_value"
}
]
}
},
"uxSettings": {
"fontFamily": "Open Sans",
"buttonLabel": "Request Raw Packet",
"__customStyle": null
}
},
{
"__model__": "widget",
"name": "Device OTA",
"position": {
"h": 18,
"w": 10,
"x": 0,
"y": 0
},
"type": "manual_input",
"settings": {
"time": [],
"dataFetch": "inherit",
"dataEntities": {
"devices": [],
"variables": [
{
"span": null,
"type": "context",
"label": "ota",
"contextKey": "output_data_rate_101",
"inputLabel": "Output Data Rate (Hz) [50, 100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600]",
"aggregationMethod": "last_value"
},
{
"span": null,
"type": "context",
"label": "ota",
"contextKey": "sampling_duration_101",
"inputLabel": "Sampling Duration [This number multiplies 50ms]",
"aggregationMethod": "last_value"
},
{
"span": null,
"type": "context",
"label": "ota",
"contextKey": "sampling_interval_101",
"inputLabel": "Data Transmission Interval (minutes) [1, 5, 10, 15. 20, 30, 60, 120, 180]",
"aggregationMethod": "last_value"
},
{
"span": null,
"type": "context",
"label": "ota",
"contextKey": "mode_80",
"inputLabel": "Raw or FFT (1,2) [1 = Raw, 2 = Processed+Raw on demand]",
"aggregationMethod": "last_value"
},
{
"span": null,
"type": "context",
"label": "ota",
"contextKey": "otaAllDevices",
"inputLabel": "Global OTA",
"aggregationMethod": "last_value"
}
]
}
},
"uxSettings": {
"fontFamily": "Open Sans",
"buttonLabel": "Send OTA Command",
"__customStyle": null
}
},
{
"__model__": "widget",
"name": "OTA Status",
"position": {
"h": 8,
"w": 6,
"x": 10,
"y": 0
},
"type": "indicator",
"settings": {
"colors": [
{
"color": "#effc2e",
"range": 0,
"message": "OTA request Sent"
},
{
"color": "#f27e07",
"range": 1,
"message": "OTA request received"
},
{
"color": "#038419",
"range": "2",
"message": "OTA performed"
}
],
"dataFetch": "inherit",
"dataEntities": {
"variables": [
{
"span": "inherit",
"color": {
"a": 1,
"b": 233,
"g": 230,
"r": 201
},
"label": "ota",
"variableColor": {
"a": 1,
"b": 233,
"g": 230,
"r": 201
},
"aggregationMethod": "last_value"
}
]
},
"decimalPoints": null
},
"uxSettings": {
"dataFormat": "auto",
"circleDesign": "large",
"displayLabel": false,
"__customStyle": null,
"imageSettings": {
"isUrlValue": false
},
"timestampFormat": null
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment