-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.json
100 lines (99 loc) · 2.13 KB
/
module.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"dependencies" : [],
"singleton" : false,
"category" : "devices",
"author" : "Pieter E. Zanstra / M.Pruefer(click for Recipe)",
"homepage" : "https://github.com/pz1/ZWayModules/tree/master/Mathematica2",
"icon" : "icon.png",
"moduleName" : "Mathematica2",
"version" : "0.0.5",
"maturity" : "beta",
"repository" : {
"type" : "git",
"source" : "https://github.com/pz1/ZWayModules"
},
"defaults" : {
"title" : "__m_title__",
"description" : "__m_descr__",
"formula" : "a+b",
"Title" : "Energy",
"scaleTitle" : "kWh",
"metric1" : "level",
"metric2" : "level",
"cParams" : "0;0"
},
"schema" : {
"type" : "object",
"properties" : {
"formula" : {
"type" : "string",
"required" : true
},
"Title" : {
"type" : "string",
"required" : true
},
"scaleTitle" : {
"type" : "string",
"required" : true
},
"sensor1" : {
"field" : "enum",
"datasource" : "namespaces",
"enum" : "namespaces:devices_sensorMultilevel:deviceId",
"required" : true
},
"metric1" : {
"type" : "string",
"required" : true
},
"sensor2" : {
"field" : "enum",
"datasource" : "namespaces",
"enum" : "namespaces:devices_sensorMultilevel:deviceId",
"required" : false
},
"metric2" : {
"type" : "string",
"required" : true
}
},
"required" : true
},
"options" : {
"fields" : {
"formula" : {
"label" : "__formula__",
"helper" : "__helper__"
},
"Title" : {
"label" : "__sensor-name__"
},
"scaleTitle" : {
"label" : "__sensor-units__"
},
"sensor1" : {
"label" : "__sensor1__",
"type" : "select",
"datasource" : "namespaces",
"field" : "optionLabels",
"optionLabels" : "namespaces:devices_sensorMultilevel:deviceName"
},
"metric1" : {
"label" : "__metric1__",
"helper" : "__metric1-helper__"
},
"sensor2" : {
"label" : "__sensor2__",
"type" : "select",
"datasource" : "namespaces",
"field" : "optionLabels",
"optionLabels" : "namespaces:devices_sensorMultilevel:deviceName"
},
"metric2" : {
"label" : "__metric2__",
"helper" : "__metric2-helper__"
}
}
}
}