-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.schema.json
57 lines (57 loc) · 2.27 KB
/
config.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
{
"pluginAlias": "Sunsensor",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"lat": {
"type": "number",
"title": "Latitude",
"required": true
},
"long": {
"type": "number",
"title": "Longitude",
"required": true
},
"debugLog": {
"type": "boolean",
"title": "Additional debug log",
"required": false,
"default": false
},
"sensors": {
"type": "array",
"title": "Sensors",
"required": true,
"description": "Array of the sun positions to keep track of with sensors",
"default": [],
"items": {
"type": "object",
"title": "Sun Position",
"required": true,
"properties": {
"name": {
"type": "string",
"title": "Sensor Name",
"required": true
},
"lowerThreshold": {
"type": "number",
"title": "Lower Threshold",
"description": "Lower threshold within which the sensor should activate. In degrees. 0° - North, 90° - East, 180° - South, 270° - West. You can also use optionally values between -360° and 0° as well as 360° and 720° to define overlaps.",
"required": true
},
"upperThreshold": {
"type": "number",
"title": "Upper Threshold",
"description": "Upper threshold within which the sensor should activate. In degrees. 0° - North, 90° - East, 180° - South, 270° - West. You can also use optionally values between -360° and 0° as well as 360° and 720° to define overlaps.",
"required": true
}
}
}
}
}
}
}