-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from istnv/feat/mons
Add missing commands for monitor setup
- Loading branch information
Showing
8 changed files
with
342 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,53 @@ | ||
import { Regex } from '@companion-module/base' | ||
|
||
// Return config fields for web config | ||
export function getConfigFields() { | ||
let cf = [] | ||
cf.push({ | ||
export function getConfigFields() { | ||
let cf = [ | ||
{ | ||
type: 'textinput', | ||
id: 'host', | ||
label: 'Target IP', | ||
tooltip: 'The IP of the MR / XR console', | ||
width: 6, | ||
default: '0.0.0.0', | ||
regex: Regex.IP, | ||
}) | ||
cf.push({ | ||
}, | ||
{ | ||
type: 'checkbox', | ||
id: 'scan', | ||
label: 'Scan network for XAir mixers?', | ||
default: true, | ||
width: 12, | ||
}) | ||
}, | ||
{ | ||
type: 'dropdown', | ||
id: 'model', | ||
label: 'Select Model', | ||
tooltip: 'This model is assumed when mixer is offline', | ||
width: 6, | ||
default: 'X18', | ||
choices: this.MIXER_CHOICES, | ||
}, | ||
] | ||
|
||
let ch = [] | ||
if (Object.keys(this.unitsFound || {}).length == 0) { | ||
ch = [{ id: 'none', label: 'No XAir units located' }] | ||
} else { | ||
let unit = this.unitsFound | ||
for (let u in unit) { | ||
ch.push({ id: unit[u].m_name, label: `${unit[u].m_name} (${unit[u].m_ip})` }) | ||
} | ||
let ch = [] | ||
if (Object.keys(this.unitsFound || {}).length == 0) { | ||
ch = [{ id: 'none', label: 'No XAir units located' }] | ||
} else { | ||
let unit = this.unitsFound | ||
for (let u in unit) { | ||
ch.push({ id: unit[u].m_name, label: `${unit[u].m_name} (${unit[u].m_ip})` }) | ||
} | ||
cf.push({ | ||
type: 'dropdown', | ||
id: 'mixer', | ||
label: 'Select Mixer by Name', | ||
tooltip: 'Name and IP of mixers on the network', | ||
width: 12, | ||
default: ch[0].id, | ||
choices: ch, | ||
}) | ||
return cf | ||
} | ||
|
||
cf.push({ | ||
type: 'dropdown', | ||
id: 'mixer', | ||
label: 'Select Mixer by Name', | ||
tooltip: 'Name and IP of mixers on the network', | ||
width: 12, | ||
default: ch[0].id, | ||
choices: ch, | ||
}) | ||
return cf | ||
} |
Oops, something went wrong.