-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (34 loc) · 1019 Bytes
/
index.js
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
module.exports = (info, logger, init) => {
return init([
"devices",
"endpoints",
"plugins",
"rooms",
"ssdp",
"store",
"users",
"vault"
], (scope, [
C_DEVICES,
C_ENDPOINTS,
C_PLUGINS,
C_ROOMS,
C_SSDP,
C_STORE,
C_USERS,
C_VAULT
]) => {
// do something here with the components
// documentation about them can be found on:
// https://docs.open-haus.io/#/backend/components/
// scope = plugin class instace
console.log(scope);
// example logger usage
logger.trace("Hello World from plugin ", info.name);
logger.verbose("Hello World from plugin ", info.name);
logger.debug("Hello World from plugin ", info.name);
logger.info("Hello World from plugin ", info.name);
logger.warn("Hello World from plugin ", info.name);
logger.error("Hello World from plugin ", info.name);
});
};