-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwith-MMM-Scenes.js
114 lines (111 loc) · 2.33 KB
/
with-MMM-Scenes.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
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
/** with-MMM-Scenes **/
/** Voice commands script to manage MMM-Scenes **/
/** Requires MirrorCommand: **/
/** https://github.com/doctorfree/MirrorCommand **/
/** @doctorfree **/
var recipe = {
transcriptionHooks: {
"SCENES_NEXT": {
pattern: "next scene",
command: "SCENES_NEXT"
},
"SCENES_PREV": {
pattern: "previous scene",
command: "SCENES_PREV"
},
"SCENES_ACT_ONE": {
pattern: "scene one|scene 1",
command: "SCENES_ACT_ONE"
},
"SCENES_ACT_TWO": {
pattern: "scene two|scene 2",
command: "SCENES_ACT_TWO"
},
"SCENES_ACT_THREE": {
pattern: "scene three|scene 3",
command: "SCENES_ACT_THREE"
},
"SCENES_ACT_FOUR": {
pattern: "scene four|scene 4",
command: "SCENES_ACT_FOUR"
},
"SCENES_ACT_FIVE": {
pattern: "scene five|scene 5",
command: "SCENES_ACT_FIVE"
},
"SCENES_ACT_NAME": {
pattern: "scene (.*)",
command: "SCENES_ACT_NAME"
},
},
commands: {
"SCENES_NEXT": {
shellExec: {
exec: "mirror scene next"
},
soundExec: {
chime: "open"
}
},
"SCENES_PREV": {
shellExec: {
exec: "mirror scene prev"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_ONE": {
shellExec: {
exec: "mirror scene 0"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_TWO": {
shellExec: {
exec: "mirror scene 1"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_THREE": {
shellExec: {
exec: "mirror scene 2"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_FOUR": {
shellExec: {
exec: "mirror scene 3"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_FIVE": {
shellExec: {
exec: "mirror scene 4"
},
soundExec: {
chime: "open"
}
},
"SCENES_ACT_NAME": {
shellExec: {
exec: (params) => {
var sceneName = params[1]
return "mirror scene " + sceneName
}
},
soundExec: {
chime: "open"
}
},
}
}
exports.recipe = recipe // Don't remove this line.