Skip to content

Instantly share code, notes, and snippets.

@lensraster
Last active April 22, 2018 00:02
Show Gist options
  • Save lensraster/806a5a23e45e6916068a2f1e43c4d4d5 to your computer and use it in GitHub Desktop.
Save lensraster/806a5a23e45e6916068a2f1e43c4d4d5 to your computer and use it in GitHub Desktop.
{
"level1": [
{
"id": 1,
"name": "Level1: # 1"
},
{
"id": 2,
"name": "Level1: # 2"
}
],
"level2": [
{
"idLevel1": 1,
"level3": [
{
"active": false,
"alert": false,
"id": 1,
"name": "Area 1",
"sensors": [
1,
2,
3,
4,
5,
6,
7,
8,
9
],
"type": "sensors"
},
{
"active": false,
"alert": false,
"id": 2,
"name": "Area 2",
"sensors": [
10,
11,
12,
13,
14,
15,
16,
17,
18
],
"type": "sensors"
}
],
"name": "Office1 B1",
"text": "Text 1",
"type": "sensors",
"visible": true
},
{
"idLevel1": 1,
"level3": [
{
"active": false,
"alert": false,
"id": 3,
"name": "Area 1",
"sensors": [
19,
20,
21,
22,
23,
24,
25,
26,
27
],
"type": "sensors"
},
{
"active": false,
"alert": false,
"id": 4,
"name": "Area 2",
"sensors": [
28,
29,
30,
31,
32,
33,
34,
35,
36
],
"type": "sensors"
}
],
"name": "Office2 B1",
"text": "Text 2",
"type": "sensors",
"visible": true
},
{
"idLevel1": 1,
"level3": [
{
"active": false,
"alert": false,
"id": 5,
"name": "Device Area 1",
"sensors": [
1000,
1001,
1002
],
"type": "device"
},
{
"active": false,
"alert": false,
"id": 6,
"name": "Device Area 2",
"sensors": [
1003,
1004,
1005
],
"type": "device"
}
],
"name": "AP Office 1 B1",
"text": "Text 1",
"type": "device",
"visible": true
},
{
"idLevel1": 2,
"level3": [
{
"active": false,
"alert": false,
"id": 7,
"name": "Area 1",
"sensors": [
37,
38,
39,
40,
41,
42,
43,
44,
45
],
"type": "sensors"
},
{
"active": false,
"alert": false,
"id": 8,
"name": "Area 2",
"sensors": [
46,
47,
48,
49,
50,
51,
52,
53,
54
],
"type": "sensors"
}
],
"name": "Office1 B2",
"text": "Text 1",
"type": "sensors",
"visible": true
},
{
"idLevel1": 2,
"level3": [
{
"active": false,
"alert": false,
"id": 9,
"name": "Area 1",
"sensors": [
55,
56,
57,
58,
59,
60,
61,
62,
63
],
"type": "sensors"
},
{
"active": false,
"alert": false,
"id": 10,
"name": "Area 2",
"sensors": [
64,
65,
66,
67,
68,
69,
70,
71,
72
],
"type": "sensors"
}
],
"name": "Office2 B2",
"text": "Text 2",
"type": "sensors",
"visible": true
},
{
"idLevel1": 2,
"level3": [
{
"active": false,
"alert": false,
"id": 11,
"name": "Device Area 1",
"sensors": [
1006,
1007,
1008
],
"type": "device"
},
{
"active": false,
"alert": false,
"id": 12,
"name": "Device Area 2",
"sensors": [
1009,
1010,
1011
],
"type": "device"
}
],
"name": "AP Office 1 B2",
"text": "Text 1",
"type": "device",
"visible": true
}
],
"sensors": [
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 1,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 29
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 2,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 109
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 3,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 73
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 4,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 108
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 5,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 25
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 6,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 69
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 7,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 29
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 8,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 111
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 9,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 90
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 10,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 102
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 11,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 52
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 12,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 117
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 13,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 34
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 14,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 39
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 15,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 98
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 16,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 61
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 17,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 23
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 18,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 100
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 19,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 44
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 20,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 119
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 21,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 111
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 22,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 43
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 23,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 50
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 24,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 116
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 25,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 21
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 26,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 57
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 27,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 61
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 28,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 110
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 29,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 75
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 30,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 55
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 31,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 87
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 32,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 14
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 33,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 103
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 34,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 10
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 35,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 62
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 36,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 95
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 37,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 76
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 38,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 90
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 39,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 37
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 40,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 92
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 41,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 51
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 42,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 116
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 43,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 53
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 44,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 55
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 45,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 95
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 46,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 28
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 47,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 28
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 48,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 80
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 49,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 10
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 50,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 70
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 51,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 78
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 52,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 82
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 53,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 43
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 54,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 15
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 55,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 94
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 56,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 80
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 57,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 15
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 58,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 105
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 59,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 108
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 60,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 79
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 61,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 113
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 62,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 106
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 63,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 51
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 64,
"measure": "Celcius",
"name": "Temperature",
"text": "",
"type": "sensor",
"value": 37
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 65,
"measure": "Percent",
"name": "Humidity",
"text": "",
"type": "sensor",
"value": 70
},
{
"colorClass": "green",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 66,
"measure": "PPM",
"name": "CO2",
"text": "",
"type": "sensor",
"value": 20
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 67,
"measure": "PPB",
"name": "TVOC",
"text": "",
"type": "sensor",
"value": 120
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 68,
"measure": "UG/M3",
"name": "PM2.5",
"text": "",
"type": "sensor",
"value": 80
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 69,
"measure": "PPB",
"name": "NO2",
"text": "",
"type": "sensor",
"value": 60
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 70,
"measure": "PPM",
"name": "CO",
"text": "",
"type": "sensor",
"value": 35
},
{
"colorClass": "red",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 71,
"measure": "PPB",
"name": "Ozone",
"text": "",
"type": "sensor",
"value": 101
},
{
"colorClass": "yellow",
"control": "",
"iconClass": "fas fa-thermometer-empty",
"id": 72,
"measure": "HPA",
"name": "Air Pressure",
"text": "",
"type": "sensor",
"value": 37
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1000,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 2
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1001,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 3
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1002,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 5
},
{
"colorClass": "yellow",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1003,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 4
},
{
"colorClass": "red",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1004,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 3
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1005,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 1
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1006,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 1
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1007,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 4
},
{
"colorClass": "yellow",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1008,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 5
},
{
"colorClass": "green",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1009,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 1
},
{
"colorClass": "yellow",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1010,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 2
},
{
"colorClass": "red",
"control": [
1,
2,
3,
4,
5,
"auto"
],
"iconClass": "fas fa-thermometer-empty",
"id": 1011,
"measure": "rpm",
"name": "AP",
"text": "",
"type": "device",
"value": 5
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment