-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
63 lines (63 loc) · 1.46 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"$schema": "http://json-schema.org/draft/2019-09/schema#",
"type": "object",
"title": "osiota application onewire-owfs",
"description": "This application collects temperature values (and other data) from 1-Wire devices via owfs (1-Wire filesystem).",
"properties": {
"map": {
"type": "array",
"description": "Device mappings",
"items": {
"type": "object",
"title": "Device mapping",
"properties": {
"map": {
"type": "string",
"description": "1-Wire device id (in format from OWFS)"
},
"node": {
"type": "string",
"description": "Node name to publish data to"
},
"metadata": {
"type": "object",
"description": "Metadata for that device",
"default": {
"type": "temperature.data",
"unit": "C",
"unit_long": "Celsius"
},
"additionalProperties": true
}
},
"required": [ "map" ],
"additionalProperties": false,
"examples": [
{
"map": "28.AB8967452301",
"node": "/Außen/Außentemperatur",
"metadata": {
"type": "temperature.data",
"unit": "C",
"unit_long": "Celsius"
}
}
]
}
},
"host": {
"type": "string",
"title": "Host",
"description": "Host name of the owserver",
"default": "localhost"
},
"port": {
"type": "number",
"title": "Port",
"description": "Port of the owserver",
"default": 4304
}
},
"required": [],
"additionalProperties": false
}