-
Notifications
You must be signed in to change notification settings - Fork 6
/
manifest.json
214 lines (213 loc) · 6.45 KB
/
manifest.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"author": "bewee",
"content_scripts": [
{
"js": [
"static/extension.js"
],
"css": [
"static/extension.css"
]
}
],
"description": "Use macros to create advanced rules",
"gateway_specific_settings": {
"webthings": {
"exec": "{nodeLoader} {path}",
"primary_type": "adapter",
"strict_max_version": "*",
"strict_min_version": "0.10.0"
}
},
"homepage_url": "https://github.com/bewee/macrozilla",
"id": "macrozilla",
"license": "GPL-3.0",
"manifest_version": 1,
"name": "Macros",
"short_name": "Macros",
"version": "0.1.13",
"web_accessible_resources": [
"static/*",
"classes/*/client.js",
"classes/*/schema_*.json"
],
"options": {
"default": {
"editor": "structogram",
"latitude": 40.7128,
"longitude": 74.0060,
"log_limit_time": 86400,
"log_limit_num": 100,
"loglevel": "info",
"macrolog2console": false,
"page_macros": true,
"page_variables": true,
"device_macros": {
"include": true,
"raw_property": false,
"execute_action": true,
"actions": false,
"events": true
},
"device_variables": {
"include": true,
"raw_property": false,
"value_property": true,
"type_property": true,
"actions": true,
"events": true
}
},
"schema": {
"type": "object",
"required": [
"editor",
"accessToken",
"latitude",
"longitude",
"log_limit_time",
"log_limit_num",
"loglevel",
"macrolog2console",
"device_variables",
"device_macros"
],
"properties": {
"editor": {
"type": "string",
"title": "Editor",
"description": "Which graphical editor do you want to use?",
"enum": ["text", "structogram"]
},
"accessToken": {
"type": "string",
"title": "Access token",
"description": "required in order to communicate with devices"
},
"latitude": {
"type": "number",
"title": "Latitude",
"description": "e.g. used for sun events"
},
"longitude": {
"type": "number",
"title": "Longitude",
"description": "e.g. used for sun events"
},
"log_limit_time": {
"type": "number",
"title": "Log limit (time)",
"description": "in seconds; defines the maximum amount of time that log entries are stored"
},
"log_limit_num": {
"type": "number",
"title": "Log limit (number)",
"description": "defines the maximum number of log entries that are stored (for each macro)"
},
"loglevel": {
"type": "string",
"enum": ["debug", "info", "warn", "error", "fatal", "none"],
"title": "Log level",
"description": "Log level"
},
"macrolog2console": {
"type": "boolean",
"title": "Add macro logs to log file",
"description": "Print macro's log entries to the global log file of the gateway as well"
},
"page_macros": {
"type": "boolean",
"title": "Include macros page?",
"description": "Whether to include the extension page for managing macros"
},
"page_variables": {
"type": "boolean",
"title": "Include variables page?",
"description": "Whether to include the extension page for managing variables"
},
"device_macros": {
"type": "object",
"title": "Macros device",
"properties": {
"include": {
"type": "boolean",
"title": "Include macros device?",
"description": "Whether to add a device for managing macros"
},
"raw_property": {
"type": "boolean",
"title": "Include raw macro property?",
"description": "Whether to add a property for the raw contents of each macro"
},
"execute_action": {
"type": "boolean",
"title": "Include execute action?",
"description": "Whether to add an action for executing each macro"
},
"actions": {
"type": "boolean",
"title": "Include macro actions?",
"description": "Whether to add various macro actions (add, remove, ...)"
},
"events": {
"type": "boolean",
"title": "Include macro events?",
"description": "Whether to add events for each macro"
}
},
"required": [
"include",
"raw_property",
"execute_action",
"actions",
"events"
]
},
"device_variables": {
"type": "object",
"title": "Variables device",
"properties": {
"include": {
"type": "boolean",
"title": "Include variables device?",
"description": "Whether to add a device for managing variables"
},
"raw_property": {
"type": "boolean",
"title": "Include raw variable property?",
"description": "Whether to add a property for the raw value of each variable"
},
"value_property": {
"type": "boolean",
"title": "Include variable value property?",
"description": "Whether to add a property for the value of each variable"
},
"type_property": {
"type": "boolean",
"title": "Include variable type property?",
"description": "Whether to add a property for the type of each variable"
},
"actions": {
"type": "boolean",
"title": "Include variable actions?",
"description": "Whether to add various variable actions (add, remove, ...)"
},
"events": {
"type": "boolean",
"title": "Include variable events?",
"description": "Whether to add events for each variable"
}
},
"required": [
"include",
"raw_property",
"value_property",
"type_property",
"actions",
"events"
]
}
}
}
}
}