-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
73 lines (72 loc) · 1.29 KB
/
config.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
import { Regex } from '@companion-module/base'
export function getConfigFields() {
return [
{
type: 'static-text',
id: 'info',
width: 12,
label: 'Information',
value: 'This module will connect to an MT-VIKI MT-HD0808 8x8 HDMI Matrix switch.',
},
{
type: 'textinput',
id: 'host',
label: 'IP Address',
width: 6,
default: '192.168.1.200',
regex: Regex.IP,
},
{
type: 'number',
id: 'port',
label: 'IP Port',
width: 6,
min: 1,
max: 65535,
default: 8080,
},
{
type: 'dropdown',
label: 'Matrix Size',
id: 'matrix_size',
default: '1',
choices: [
{ id: '2x2', label: '2x2' },
{ id: '4x2', label: '4x2' },
{ id: '4x4', label: '4x4' },
{ id: '8x8', label: '8x8' },
{ id: '16x16', label: '16x16' },
],
},
{
type: 'number',
id: 'poll_interval',
label: 'Polling Interval (ms)',
min: 300,
max: 300000,
default: 60000,
width: 8,
},
{
type: 'checkbox',
id: 'polled_data',
label: 'Use polled data from unit:',
default: false,
width: 8,
},
{
type: 'checkbox',
id: 'log_responses',
label: 'Debug returned data :',
default: false,
width: 6,
},
{
type: 'checkbox',
id: 'log_tokens',
label: 'Debug token data :',
default: false,
width: 6,
},
]
}