generated from bitfocus/companion-module-template-js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.js
40 lines (37 loc) · 905 Bytes
/
variables.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
export function getVariables() {
const variables = []
// //System Variables
// variables.push({
// name: `System CPU`,
// variableId: `system_cpu`,
// })
// variables.push({
// name: `System Memory`,
// variableId: `system_memory`,
// })
// variables.push({
// name: `System GPU`,
// variableId: `system_gpu`,
// })
//Event Specific Variables
for (let x in this.live_events) {
let event = this.live_events[x]
variables.push({
name: `Event ${event.id} - Name`,
variableId: `event_${event.id}_name`,
})
variables.push({
name: `Event ${event.id} - Status`,
variableId: `event_${event.id}_status`,
})
variables.push({
name: `Event ${event.id} - Average FPS`,
variableId: `event_${event.id}_average_fps`,
})
// variables.push({
// name: `Event ${event.id} - Duration`,
// variableId: `event_${event.id}_duration`,
// })
}
return variables
}