bt-sensors-plugin-sk 1.1.0-beta.2.2.6 → 1.2.0-beta.0.0.1.test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BTSensor.js +257 -107
- package/README.md +2 -34
- package/definitions.json +941 -0
- package/index.js +401 -317
- package/package.json +51 -6
- package/plugin_defaults.json +57 -0
- package/public/159.js +2 -0
- package/public/159.js.LICENSE.txt +14 -0
- package/public/30.js +8 -0
- package/public/30.js.LICENSE.txt +65 -0
- package/public/540.js +2 -0
- package/public/540.js.LICENSE.txt +8 -0
- package/public/893.js +1 -0
- package/public/main.js +1 -0
- package/public/remoteEntry.js +1 -0
- package/sensor_classes/ATC.js +30 -20
- package/sensor_classes/BlackListedDevice.js +4 -0
- package/sensor_classes/GoveeH510x.js +3 -3
- package/sensor_classes/IBeacon.js +2 -3
- package/sensor_classes/Inkbird.js +4 -4
- package/sensor_classes/MopekaTankSensor.js +13 -6
- package/sensor_classes/Renogy/RenogySensor.js +14 -5
- package/sensor_classes/UNKNOWN.js +8 -4
- package/sensor_classes/Victron/VictronSensor.js +6 -2
- package/sensor_classes/VictronBatteryMonitor.js +8 -6
- package/sensor_classes/VictronDCEnergyMeter.js +1 -1
- package/sensor_classes/VictronInverter.js +1 -1
- package/sensor_classes/VictronInverterRS.js +1 -1
- package/sensor_classes/XiaomiMiBeacon.js +17 -8
- package/spec/electrical.json +688 -0
- package/spec/environment.json +401 -0
- package/spec/sensors.json +39 -0
- package/spec/tanks.json +115 -0
- package/src/components/PluginConfigurationPanel.js +368 -0
- package/src/index.js +0 -0
- package/webpack.config.js +71 -0
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
4
|
+
"id": "https://signalk.org/specification/1.5.1/schemas/groups/environment.json#",
|
|
5
|
+
"description": "Schema describing the environmental child-object of a Vessel.",
|
|
6
|
+
"title": "environment",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"zoneObject": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"temperature": {
|
|
12
|
+
"description": "Temperature",
|
|
13
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
14
|
+
"units": "K"
|
|
15
|
+
},
|
|
16
|
+
"heatIndexTemperature": {
|
|
17
|
+
"description": "Current heat index temperature in zone",
|
|
18
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
19
|
+
"units": "K"
|
|
20
|
+
},
|
|
21
|
+
"pressure": {
|
|
22
|
+
"description": "Pressure in zone",
|
|
23
|
+
"units": "Pa",
|
|
24
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
25
|
+
},
|
|
26
|
+
"relativeHumidity": {
|
|
27
|
+
"description": "Relative humidity in zone",
|
|
28
|
+
"units": "ratio",
|
|
29
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
30
|
+
},
|
|
31
|
+
"dewPoint": {
|
|
32
|
+
"description": "DEPRECATED: use dewPointTemperature",
|
|
33
|
+
"units": "K",
|
|
34
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
35
|
+
},
|
|
36
|
+
"dewPointTemperature": {
|
|
37
|
+
"description": "Dewpoint in zone",
|
|
38
|
+
"units": "K",
|
|
39
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
40
|
+
},
|
|
41
|
+
"airDensity": {
|
|
42
|
+
"description": "Air density in zone",
|
|
43
|
+
"units": "kg/m3",
|
|
44
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
45
|
+
},
|
|
46
|
+
"illuminance": {
|
|
47
|
+
"description": "Illuminance in zone",
|
|
48
|
+
"units": "Lux",
|
|
49
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"properties": {
|
|
55
|
+
"outside": {
|
|
56
|
+
"description": "Environmental conditions outside of the vessel's hull",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"temperature": {
|
|
60
|
+
"description": "Current outside air temperature",
|
|
61
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
62
|
+
"units": "K"
|
|
63
|
+
},
|
|
64
|
+
"dewPointTemperature": {
|
|
65
|
+
"description": "Current outside dew point temperature",
|
|
66
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
67
|
+
"units": "K"
|
|
68
|
+
},
|
|
69
|
+
"apparentWindChillTemperature": {
|
|
70
|
+
"description": "Current outside apparent wind chill temperature",
|
|
71
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
72
|
+
"units": "K"
|
|
73
|
+
},
|
|
74
|
+
"theoreticalWindChillTemperature": {
|
|
75
|
+
"description": "Current outside theoretical wind chill temperature",
|
|
76
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
77
|
+
"units": "K"
|
|
78
|
+
},
|
|
79
|
+
"heatIndexTemperature": {
|
|
80
|
+
"description": "Current outside heat index temperature",
|
|
81
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
82
|
+
"units": "K"
|
|
83
|
+
},
|
|
84
|
+
"pressure": {
|
|
85
|
+
"description": "Current outside air ambient pressure",
|
|
86
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
87
|
+
"units": "Pa"
|
|
88
|
+
},
|
|
89
|
+
"humidity": {
|
|
90
|
+
"description": "DEPRECATED: use relativeHumidity",
|
|
91
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
92
|
+
"units": "ratio"
|
|
93
|
+
},
|
|
94
|
+
"relativeHumidity": {
|
|
95
|
+
"description": "Current outside air relative humidity",
|
|
96
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
97
|
+
"units": "ratio"
|
|
98
|
+
},
|
|
99
|
+
"airDensity": {
|
|
100
|
+
"description": "Current outside air density",
|
|
101
|
+
"units": "kg/m3",
|
|
102
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
103
|
+
},
|
|
104
|
+
"illuminance": {
|
|
105
|
+
"description": "Current outside ambient light flux.",
|
|
106
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
107
|
+
"units": "Lux"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"inside": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"description": "Environmental conditions inside the vessel's hull",
|
|
114
|
+
"allOf": [
|
|
115
|
+
{
|
|
116
|
+
"patternProperties": {
|
|
117
|
+
"[A-Za-z0-9]+": {
|
|
118
|
+
"description": "This regex pattern is used for validation of the identifier for the environmental zone, eg. engineRoom, mainCabin, refrigerator",
|
|
119
|
+
"$ref": "#/definitions/zoneObject"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"$ref": "#/definitions/zoneObject"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"water": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"description": "Environmental conditions of the water that the vessel is sailing in",
|
|
131
|
+
"properties": {
|
|
132
|
+
"temperature": {
|
|
133
|
+
"description": "Current water temperature",
|
|
134
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
135
|
+
"units": "K"
|
|
136
|
+
},
|
|
137
|
+
"salinity": {
|
|
138
|
+
"description": "Water salinity",
|
|
139
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
140
|
+
"units": "ratio"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"depth": {
|
|
145
|
+
"title": "depth",
|
|
146
|
+
"type": "object",
|
|
147
|
+
"description": "Depth related data",
|
|
148
|
+
"properties": {
|
|
149
|
+
"belowKeel": {
|
|
150
|
+
"description": "Depth below keel",
|
|
151
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
152
|
+
"units": "m"
|
|
153
|
+
},
|
|
154
|
+
"belowTransducer": {
|
|
155
|
+
"description": "Depth below Transducer",
|
|
156
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
157
|
+
"units": "m"
|
|
158
|
+
},
|
|
159
|
+
"belowSurface": {
|
|
160
|
+
"description": "Depth from surface",
|
|
161
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
162
|
+
"units": "m"
|
|
163
|
+
},
|
|
164
|
+
"transducerToKeel": {
|
|
165
|
+
"description": "Depth from the transducer to the bottom of the keel",
|
|
166
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
167
|
+
"units": "m"
|
|
168
|
+
},
|
|
169
|
+
"surfaceToTransducer": {
|
|
170
|
+
"description": "Depth transducer is below the water surface",
|
|
171
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
172
|
+
"units": "m"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"current": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"title": "current",
|
|
179
|
+
"description": "Direction and strength of current affecting the vessel",
|
|
180
|
+
"allOf": [
|
|
181
|
+
{
|
|
182
|
+
"$ref": "../definitions.json#/definitions/commonValueFields"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"properties": {
|
|
186
|
+
"value": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"drift": {
|
|
190
|
+
"type": "number",
|
|
191
|
+
"description": "The speed component of the water current vector",
|
|
192
|
+
"example": 3.12,
|
|
193
|
+
"units": "m/s"
|
|
194
|
+
},
|
|
195
|
+
"setTrue": {
|
|
196
|
+
"type": "number",
|
|
197
|
+
"description": "The direction component of the water current vector referenced to true (geographic) north",
|
|
198
|
+
"example": 123.45,
|
|
199
|
+
"units": "rad"
|
|
200
|
+
},
|
|
201
|
+
"setMagnetic": {
|
|
202
|
+
"type": "number",
|
|
203
|
+
"description": "The direction component of the water current vector referenced to magnetic north",
|
|
204
|
+
"example": 131.22,
|
|
205
|
+
"units": "rad"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"values": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"patternProperties": {
|
|
212
|
+
".*": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"timestamp": {
|
|
216
|
+
"$ref": "../definitions.json#/definitions/timestamp"
|
|
217
|
+
},
|
|
218
|
+
"pgn": {
|
|
219
|
+
"type": "number"
|
|
220
|
+
},
|
|
221
|
+
"sentence": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"value": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"drift": {
|
|
228
|
+
"type": "number",
|
|
229
|
+
"description": "The speed component of the water current vector",
|
|
230
|
+
"example": 3.12,
|
|
231
|
+
"units": "m/s"
|
|
232
|
+
},
|
|
233
|
+
"setTrue": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"description": "The direction component of the water current vector referenced to true (geographic) north",
|
|
236
|
+
"example": 123.45,
|
|
237
|
+
"units": "rad"
|
|
238
|
+
},
|
|
239
|
+
"setMagnetic": {
|
|
240
|
+
"type": "number",
|
|
241
|
+
"description": "The direction component of the water current vector referenced to magnetic north",
|
|
242
|
+
"example": 131.22,
|
|
243
|
+
"units": "rad"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"tide": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"title": "tide",
|
|
258
|
+
"description": "Tide data",
|
|
259
|
+
"properties": {
|
|
260
|
+
"heightHigh": {
|
|
261
|
+
"description": "Next high tide height relative to lowest astronomical tide (LAT/Chart Datum)",
|
|
262
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
263
|
+
"units": "m"
|
|
264
|
+
},
|
|
265
|
+
"heightNow": {
|
|
266
|
+
"description": "The current tide height relative to lowest astronomical tide (LAT/Chart Datum)",
|
|
267
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
268
|
+
"units": "m"
|
|
269
|
+
},
|
|
270
|
+
"heightLow": {
|
|
271
|
+
"description": "The next low tide height relative to lowest astronomical tide (LAT/Chart Datum)",
|
|
272
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
273
|
+
"units": "m"
|
|
274
|
+
},
|
|
275
|
+
"timeLow": {
|
|
276
|
+
"description": "Time of the next low tide in UTC",
|
|
277
|
+
"$ref": "../definitions.json#/definitions/timestamp"
|
|
278
|
+
},
|
|
279
|
+
"timeHigh": {
|
|
280
|
+
"description": "Time of next high tide in UTC",
|
|
281
|
+
"$ref": "../definitions.json#/definitions/timestamp"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"heave": {
|
|
286
|
+
"description": "Vertical movement of the vessel due to waves",
|
|
287
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
288
|
+
"units": "m"
|
|
289
|
+
},
|
|
290
|
+
"wind": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"title": "wind",
|
|
293
|
+
"description": "Wind data.",
|
|
294
|
+
"properties": {
|
|
295
|
+
"angleApparent": {
|
|
296
|
+
"description": "Apparent wind angle, negative to port",
|
|
297
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
298
|
+
"units": "rad"
|
|
299
|
+
},
|
|
300
|
+
"angleTrueGround": {
|
|
301
|
+
"description": "True wind angle based on speed over ground, negative to port",
|
|
302
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
303
|
+
"units": "rad"
|
|
304
|
+
},
|
|
305
|
+
"angleTrueWater": {
|
|
306
|
+
"description": "True wind angle based on speed through water, negative to port",
|
|
307
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
308
|
+
"units": "rad"
|
|
309
|
+
},
|
|
310
|
+
"directionChangeAlarm": {
|
|
311
|
+
"description": "The angle the wind needs to shift to raise an alarm",
|
|
312
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
313
|
+
"units": "rad"
|
|
314
|
+
},
|
|
315
|
+
"directionTrue": {
|
|
316
|
+
"description": "The wind direction relative to true north",
|
|
317
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
318
|
+
"units": "rad"
|
|
319
|
+
},
|
|
320
|
+
"directionMagnetic": {
|
|
321
|
+
"description": "The wind direction relative to magnetic north",
|
|
322
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
323
|
+
"units": "rad"
|
|
324
|
+
},
|
|
325
|
+
"speedTrue": {
|
|
326
|
+
"description": "Wind speed over water (as calculated from speedApparent and vessel's speed through water)",
|
|
327
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
328
|
+
"units": "m/s"
|
|
329
|
+
},
|
|
330
|
+
"speedOverGround": {
|
|
331
|
+
"description": "Wind speed over ground (as calculated from speedApparent and vessel's speed over ground)",
|
|
332
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
333
|
+
"units": "m/s"
|
|
334
|
+
},
|
|
335
|
+
"speedApparent": {
|
|
336
|
+
"description": "Apparent wind speed",
|
|
337
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
338
|
+
"units": "m/s"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"time": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"description": "A time reference for the vessel. All clocks on the vessel dispaying local time should use the timezone offset here. If a timezoneRegion is supplied the timezone must also be supplied. If timezoneRegion is supplied that should be displayed by UIs in preference to simply timezone. ie 12:05 (Europe/London) should be displayed in preference to 12:05 (UTC+01:00)",
|
|
345
|
+
"properties": {
|
|
346
|
+
"millis": {
|
|
347
|
+
"type": "number",
|
|
348
|
+
"title": "Epoch time",
|
|
349
|
+
"example": 1449648657735,
|
|
350
|
+
"description": "Milliseconds since the UNIX epoch (1970-01-01 00:00:00)"
|
|
351
|
+
},
|
|
352
|
+
"timezoneOffset": {
|
|
353
|
+
"type": "number",
|
|
354
|
+
"title": "Timezone offset",
|
|
355
|
+
"example": -400,
|
|
356
|
+
"maximum": 1300,
|
|
357
|
+
"minimum": -1300,
|
|
358
|
+
"description": "Onboard timezone offset from UTC in hours and minutes (-)hhmm. +ve means east of Greenwich. For use by UIs",
|
|
359
|
+
"default": 0
|
|
360
|
+
},
|
|
361
|
+
"timezoneRegion": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"title": "IANA Timezone national region",
|
|
364
|
+
"example": "Europe/Zurich",
|
|
365
|
+
"description": "Onboard timezone offset as listed in the IANA timezone database (tz database)",
|
|
366
|
+
"pattern": "^[a-zA-Z0-9\/+-]+$"
|
|
367
|
+
},
|
|
368
|
+
"timestamp": {
|
|
369
|
+
"$ref": "../definitions.json#/definitions/timestamp"
|
|
370
|
+
},
|
|
371
|
+
"source": {
|
|
372
|
+
"$ref": "../definitions.json#/definitions/source"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"dependencies": {
|
|
376
|
+
"timezoneRegion": [
|
|
377
|
+
"timezoneOffset"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"mode": {
|
|
382
|
+
"type": "object",
|
|
383
|
+
"description": "Mode of the vessel based on the current conditions. Can be combined with navigation.state to control vessel signals eg switch to night mode for instrumentation and lights, or make sound signals for fog.",
|
|
384
|
+
"properties": {
|
|
385
|
+
"value": {
|
|
386
|
+
"enum": [
|
|
387
|
+
"day",
|
|
388
|
+
"night",
|
|
389
|
+
"restricted visibility"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"timestamp": {
|
|
393
|
+
"$ref": "../definitions.json#/definitions/timestamp"
|
|
394
|
+
},
|
|
395
|
+
"source": {
|
|
396
|
+
"$ref": "../definitions.json#/definitions/source"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
4
|
+
"id": "https://signalk.org/specification/1.5.1/schemas/groups/sensors.json#",
|
|
5
|
+
"description": "An object describing an individual sensor. It should be an object in vessel, named using a unique name or UUID",
|
|
6
|
+
"title": "sensor",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The common name of the sensor"
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"sensorType": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The datamodel definition of the sensor data. FIXME - need to create a definitions lib of sensor datamodel types"
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
"sensorData": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The data of the sensor data. FIXME - need to ref the definitions of sensor types"
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
"fromBow": {
|
|
24
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
25
|
+
"description": "The distance from the bow to the sensor location"
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"fromCenter": {
|
|
29
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
30
|
+
"description": "The distance from the centerline to the sensor location, -ve to starboard, +ve to port"
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
"class": {
|
|
34
|
+
"$ref": "../definitions.json#/definitions/stringValue",
|
|
35
|
+
"pattern_": "^[AB]\\Z",
|
|
36
|
+
"description": "AIS transponder class in sensors.ais.class, A or B"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/spec/tanks.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
4
|
+
"id": "https://signalk.org/specification/1.5.1/schemas/groups/tanks.json#",
|
|
5
|
+
"description": "A tank, named by a unique identifier",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"tankCollection": {
|
|
8
|
+
"patternProperties": {
|
|
9
|
+
".*": {
|
|
10
|
+
"description": "Tank, one or many, within the vessel",
|
|
11
|
+
"name": "Tank",
|
|
12
|
+
"properties": {
|
|
13
|
+
"name": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The name of the tank. Useful if multiple tanks of a certain type are on board"
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
"type": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The type of tank",
|
|
21
|
+
"enum": [
|
|
22
|
+
"petrol",
|
|
23
|
+
"fresh water",
|
|
24
|
+
"greywater",
|
|
25
|
+
"blackwater",
|
|
26
|
+
"holding",
|
|
27
|
+
"lpg",
|
|
28
|
+
"diesel",
|
|
29
|
+
"liveWell",
|
|
30
|
+
"baitWell",
|
|
31
|
+
"ballast",
|
|
32
|
+
"rum"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
"capacity": {
|
|
37
|
+
"description": "Total capacity",
|
|
38
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
39
|
+
"units": "m3"
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
"currentLevel": {
|
|
43
|
+
"description": "Level of fluid in tank 0-100%",
|
|
44
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
45
|
+
"units": "ratio"
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"currentVolume": {
|
|
49
|
+
"description": "Volume of fluid in tank",
|
|
50
|
+
"units": "m3",
|
|
51
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
52
|
+
},
|
|
53
|
+
"pressure": {
|
|
54
|
+
"description": "Pressure of contents in tank, especially LPG/gas",
|
|
55
|
+
"units": "Pa",
|
|
56
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
57
|
+
},
|
|
58
|
+
"temperature": {
|
|
59
|
+
"description": "Temperature of tank, especially cryogenic or LPG/gas",
|
|
60
|
+
"units": "K",
|
|
61
|
+
"$ref": "../definitions.json#/definitions/numberValue"
|
|
62
|
+
},
|
|
63
|
+
"viscosity": {
|
|
64
|
+
"description": "Viscosity of the fluid, if applicable",
|
|
65
|
+
"$ref": "../definitions.json#/definitions/numberValue",
|
|
66
|
+
"units": "Pa/s"
|
|
67
|
+
},
|
|
68
|
+
"extinguishant": {
|
|
69
|
+
"description": "The preferred extinguishant to douse a fire in this tank",
|
|
70
|
+
"$ref": "../definitions.json#/definitions/stringValue"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"properties": {
|
|
78
|
+
"freshWater": {
|
|
79
|
+
"description": "Fresh water tank (drinking)",
|
|
80
|
+
"$ref": "#/definitions/tankCollection"
|
|
81
|
+
},
|
|
82
|
+
"wasteWater": {
|
|
83
|
+
"description": "Waste water tank (grey water)",
|
|
84
|
+
"$ref": "#/definitions/tankCollection"
|
|
85
|
+
},
|
|
86
|
+
"blackWater": {
|
|
87
|
+
"description": "Black water tank (sewage)",
|
|
88
|
+
"$ref": "#/definitions/tankCollection"
|
|
89
|
+
},
|
|
90
|
+
"fuel": {
|
|
91
|
+
"description": "Fuel tank (petrol or diesel)",
|
|
92
|
+
"$ref": "#/definitions/tankCollection"
|
|
93
|
+
},
|
|
94
|
+
"lubrication": {
|
|
95
|
+
"description": "Lubrication tank (oil or grease)",
|
|
96
|
+
"$ref": "#/definitions/tankCollection"
|
|
97
|
+
},
|
|
98
|
+
"liveWell": {
|
|
99
|
+
"description": "Live tank (fish)",
|
|
100
|
+
"$ref": "#/definitions/tankCollection"
|
|
101
|
+
},
|
|
102
|
+
"baitWell": {
|
|
103
|
+
"description": "Bait tank",
|
|
104
|
+
"$ref": "#/definitions/tankCollection"
|
|
105
|
+
},
|
|
106
|
+
"gas": {
|
|
107
|
+
"description": "Lpg/propane and other gases",
|
|
108
|
+
"$ref": "#/definitions/tankCollection"
|
|
109
|
+
},
|
|
110
|
+
"ballast": {
|
|
111
|
+
"description": "Ballast tanks",
|
|
112
|
+
"$ref": "#/definitions/tankCollection"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|