Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ecc0ce5cd | ||
|
|
04f2f4c905 | ||
|
|
cb3867e1c6 | ||
|
|
4093ba9e15 | ||
|
|
b4d59b6f25 | ||
|
|
5595066a5b | ||
|
|
719b223bb3 | ||
|
|
7171557499 | ||
|
|
3dc5c241f5 | ||
|
|
301fab210e | ||
|
|
3a729004b0 | ||
|
|
20e9a5d3d3 | ||
|
|
56adb67b07 | ||
|
|
fd7c70839c | ||
|
|
0f32fd2f49 | ||
|
|
1fdd94e99f | ||
|
|
c2966a7483 | ||
|
|
86d8266385 | ||
|
|
4f95ea9e9d | ||
|
|
7ba9d1f84b | ||
|
|
7d96a05118 | ||
|
|
f3bd1979fa | ||
|
|
0a262b0474 | ||
|
|
5db4b5d6aa | ||
|
|
c1e9446515 | ||
|
|
c882a020a8 | ||
|
|
2a3dc8596e | ||
|
|
56a904bc2d | ||
|
|
8fff561d17 | ||
|
|
3036ceb81b | ||
|
|
1ca7d668b6 | ||
|
|
ae1e368149 | ||
|
|
f10ce1c9dc | ||
|
|
0697c69017 | ||
|
|
c20f918258 | ||
|
|
c4e946e01b | ||
|
|
6306606bf6 | ||
|
|
14e4193e13 | ||
|
|
9c5078e330 | ||
|
|
d62633c54d | ||
|
|
c4f009d62c | ||
|
|
2d875f1f26 | ||
|
|
75c1e2443a | ||
|
|
8ed1db8e1d | ||
|
|
880719355d | ||
|
|
046b1cf449 |
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: josephdadams # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
@@ -0,0 +1,70 @@
|
||||
name: Bug report
|
||||
description: Create a bug report to help us improve.
|
||||
labels:
|
||||
- BUG
|
||||
title: '[BUG]'
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Make sure you have updated to the latest version of the module
|
||||
description: This may be a beta version of the module, or may require you to update your companion.
|
||||
options:
|
||||
- label: I have checked this on the latest version of the module
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: Please search to see if an issue already exists for the bug you encountered.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the bug
|
||||
description: A clear and concise description of what the bug is. Screenshots are always helpful to understand the problem.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps To Reproduce
|
||||
description: Steps to reproduce the behavior.
|
||||
placeholder: |
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: A concise description of what you expected to happen.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Environment (please complete the following information)
|
||||
description: |
|
||||
examples:
|
||||
- **OS**: Windows 10
|
||||
- **Browser**: Chrome 94
|
||||
- **Companion Version**: 2.2.0-b177f8fb-3722
|
||||
- **Module Version**: 1.0.0
|
||||
- **Device Firmware/Software Version (If applicable)**: 3.0.6
|
||||
- **Device Model (If applicable)**: My Device PRO
|
||||
value: |
|
||||
- OS:
|
||||
- Browser:
|
||||
- Companion Version:
|
||||
- Module Version:
|
||||
- Device Firmware/Software Version (If applicable):
|
||||
- Device Model (If applicable):
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: Add any other context about the problem here.
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: BUG OR FEATURE REQUEST FOR COMPANION ITSELF
|
||||
url: https://github.com/bitfocus/companion/issues
|
||||
about: Report it against the companion itself, to get the relevant people notified.
|
||||
@@ -0,0 +1,32 @@
|
||||
name: Feature Request
|
||||
description: Request a new feature within this module
|
||||
title: '[Feature]: '
|
||||
labels:
|
||||
- enhancement
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Make sure you have updated to the latest version of the module
|
||||
description: This may be a beta version of the module, or may require you to update your companion.
|
||||
options:
|
||||
- label: I have checked this on the latest version of the module
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: Please search to see if an issue already exists for the feature.
|
||||
options:
|
||||
- label: I have searched for similar existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Describe the feature
|
||||
description: A clear and concise description of what the feature does. Mocked up screenshots (no matter how rough) are always helpful in understanding.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Usecases
|
||||
description: Add a couple of usecases for why this should be implemented and when/why to use it.
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Companion Module Checks
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check module
|
||||
|
||||
if: ${{ !contains(github.repository, 'companion-module-template-') }}
|
||||
|
||||
permissions:
|
||||
packages: read
|
||||
|
||||
uses: bitfocus/actions/.github/workflows/module-checks.yaml@main
|
||||
# with:
|
||||
# upload-artifact: true # uncomment this to upload the built package as an artifact to this workflow that you can download and share with others
|
||||
|
||||
+2
-1
@@ -2,4 +2,5 @@ node_modules/
|
||||
|
||||
# Companion 3
|
||||
/pkg
|
||||
/pkg.tgz
|
||||
/pkg.tgz
|
||||
.DS_Store
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rossvideo-rosstalk",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.0",
|
||||
"main": "rosstalk.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
@@ -11,9 +11,9 @@
|
||||
"url": "git+https://github.com/bitfocus/companion-module-rossvideo-rosstalk.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@companion-module/base": "~1.1.0"
|
||||
"@companion-module/base": "^1.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@companion-module/tools": "^0.5.2"
|
||||
"@companion-module/tools": "^2.8.0"
|
||||
}
|
||||
}
|
||||
+122
-63
@@ -19,12 +19,6 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
const parseVariable = async (input) => {
|
||||
if (typeof input === 'string' && input.includes('$(')) {
|
||||
return await self.parseVariablesInString(input)
|
||||
}
|
||||
return input
|
||||
}
|
||||
|
||||
let actions = {
|
||||
gpi: {
|
||||
@@ -36,11 +30,13 @@ module.exports = {
|
||||
id: 'gpi',
|
||||
default: '1',
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var gpi = parseInt(opt.gpi)
|
||||
let gpiText = await context.parseVariablesInString(opt.gpi)
|
||||
var gpi = parseInt(gpiText)
|
||||
cmd =
|
||||
'GPI ' + (gpi <= 9 && (self.config.model == 'carbonite' || self.config.model == 'acuity') ? '0' : '') + gpi
|
||||
sendCommand(cmd)
|
||||
@@ -60,17 +56,19 @@ module.exports = {
|
||||
type: 'textinput',
|
||||
label: 'Parameter',
|
||||
id: 'parameter',
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
|
||||
if (opt.gpi) {
|
||||
let gpi = await parseVariable(opt.gpi)
|
||||
if (opt.parameter === null) {
|
||||
let gpi = await context.parseVariablesInString(opt.gpi)
|
||||
let parameter = await context.parseVariablesInString(opt.parameter)
|
||||
if (parameter === null) {
|
||||
cmd = 'GPI ' + gpi
|
||||
} else {
|
||||
cmd = 'GPI ' + gpi + ':' + opt.parameter
|
||||
cmd = 'GPI ' + gpi + ':' + parameter
|
||||
}
|
||||
sendCommand(cmd)
|
||||
}
|
||||
@@ -85,11 +83,13 @@ module.exports = {
|
||||
type: 'textinput',
|
||||
label: 'Command',
|
||||
id: 'cmd',
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
sendCommand(opt.cmd)
|
||||
let cmd = await context.parseVariablesInString(opt.cmd)
|
||||
sendCommand(cmd)
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -103,6 +103,7 @@ module.exports = {
|
||||
id: 'bank',
|
||||
default: '1',
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'textinput',
|
||||
@@ -110,12 +111,15 @@ module.exports = {
|
||||
id: 'cc',
|
||||
default: '1',
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var cc = parseInt(opt.cc)
|
||||
cmd = 'CC ' + parseInt(opt.bank) + ':' + (cc > 9 ? '' : '0') + cc
|
||||
let bankText = await context.parseVariablesInString(opt.bank)
|
||||
let ccText = await context.parseVariablesInString(opt.cc)
|
||||
var cc = parseInt(ccText)
|
||||
cmd = 'CC ' + parseInt(bankText) + ':' + (cc > 9 ? '' : '0') + cc
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
@@ -130,9 +134,9 @@ module.exports = {
|
||||
default: 'set1',
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let set = await parseVariable(opt.set)
|
||||
let set = await context.parseVariablesInString(opt.set)
|
||||
cmd = 'LOADSET ' + set
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -150,9 +154,9 @@ module.exports = {
|
||||
regex: re_meSource_meNumber,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
cmd = 'MECUT ' + mle
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -169,9 +173,9 @@ module.exports = {
|
||||
regex: re_meSource_meNumber,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
cmd = 'MEAUTO ' + mle
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -198,10 +202,10 @@ module.exports = {
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var src = await parseVariable(opt.vidSource)
|
||||
var dst = await parseVariable(opt.vidDest)
|
||||
var src = await context.parseVariablesInString(opt.vidSource)
|
||||
var dst = await context.parseVariablesInString(opt.vidDest)
|
||||
cmd = 'XPT ' + dst + ':' + src
|
||||
console.log('ross xpt:', cmd)
|
||||
sendCommand(cmd)
|
||||
@@ -224,6 +228,7 @@ module.exports = {
|
||||
id: 'key',
|
||||
default: 1,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'dropdown',
|
||||
@@ -247,13 +252,14 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
let keyText = await context.parseVariablesInString(opt.key)
|
||||
if (opt.transD === 'TOGGLE') {
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + opt.key
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + keyText
|
||||
} else {
|
||||
cmd = 'KEY' + opt.transT + opt.transD + ' ' + mle + ':' + opt.key
|
||||
cmd = 'KEY' + opt.transT + opt.transD + ' ' + mle + ':' + keyText
|
||||
}
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -261,7 +267,7 @@ module.exports = {
|
||||
actions.ftb = {
|
||||
label: 'Fade to black',
|
||||
options: [],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
cmd = 'FTB'
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -276,11 +282,12 @@ module.exports = {
|
||||
id: 'memID',
|
||||
default: '1:1',
|
||||
regex: '/^[0-9]{1,2}(:(ME|MME|MSC):[0-9]{1,2})+$/',
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var memID = opt.memID
|
||||
var memID = await context.parseVariablesInString(opt.memID)
|
||||
cmd = 'MEM ' + memID
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -294,6 +301,7 @@ module.exports = {
|
||||
id: 'takeID',
|
||||
default: 0,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'textinput',
|
||||
@@ -301,12 +309,13 @@ module.exports = {
|
||||
id: 'Layer',
|
||||
default: 0,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var takeID = opt.takeID
|
||||
var layer = opt.layer
|
||||
var takeID = await context.parseVariablesInString(opt.takeID)
|
||||
var layer = await context.parseVariablesInString(opt.Layer)
|
||||
cmd = 'SEQI ' + takeID + ':' + layer
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -320,15 +329,53 @@ module.exports = {
|
||||
id: 'takeID',
|
||||
default: 0,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var takeID = opt.takeID
|
||||
var takeID = await context.parseVariablesInString(opt.takeID)
|
||||
cmd = 'SEQO ' + takeID
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
actions.MVBOX = {
|
||||
name: "Change multiviewer box",
|
||||
options: [
|
||||
{
|
||||
type: 'textinput',
|
||||
label: 'Multiviewer Number',
|
||||
id: 'mvID',
|
||||
default: 1,
|
||||
regex: Regex.NUMBER,
|
||||
},
|
||||
{
|
||||
type: 'textinput',
|
||||
label: 'Box Number',
|
||||
id: 'boxID',
|
||||
default: 1,
|
||||
regex: Regex.NUMBER,
|
||||
},
|
||||
{
|
||||
type: 'textinput',
|
||||
label: 'Source',
|
||||
id: 'vidSource',
|
||||
default: 'IN:5',
|
||||
tooltip:
|
||||
'Aux Bus — AUX:(aux-number), Black — BK, Clean — ME:(ME-number):CLN, Input Source — IN:(input-number), Key — ME:(ME-number):KEY:(key-number), Matte Color — BG, Media-Store — MS:(channel-number), MiniME™ — MME:(ME-number), Preview — ME:(ME-number):PV, Program — ME:(ME-number):PGM, [Graphite only], Chroma Key Video — CK:(chroma key number) [UltraChromeHR, or Carbonite Black v14.0 or higher only], Chroma Key Alpha — CKA:(chroma key number) [UltraChromeHR, or Carbonite Black v14.0 or higher only]',
|
||||
useVariables: true
|
||||
}
|
||||
],
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mvID = parseInt(opt.mvID)
|
||||
let boxID = parseInt(opt.boxID)
|
||||
var src = await context.parseVariablesInString(opt.vidSource)
|
||||
|
||||
cmd = 'MVBOX:' + mvID + ":" + boxID + ":" + src
|
||||
sendCommand(cmd)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (self.config.model == 'acuity') {
|
||||
actions.cc = {
|
||||
@@ -340,6 +387,7 @@ module.exports = {
|
||||
id: 'bank',
|
||||
default: '1',
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'textinput',
|
||||
@@ -347,12 +395,15 @@ module.exports = {
|
||||
id: 'cc',
|
||||
default: '1',
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var cc = parseInt(opt.cc)
|
||||
cmd = 'CC ' + parseInt(opt.bank) + ':' + (cc > 9 ? '' : '0') + cc
|
||||
let bankText = await context.parseVariablesInString(opt.bank)
|
||||
let ccText = await context.parseVariablesInString(opt.cc)
|
||||
var cc = parseInt(ccText)
|
||||
cmd = 'CC ' + parseInt(bankText) + ':' + (cc > 9 ? '' : '0') + cc
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
@@ -373,6 +424,7 @@ module.exports = {
|
||||
id: 'key',
|
||||
default: 1,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'dropdown',
|
||||
@@ -385,10 +437,11 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + opt.key
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
let keyText = await context.parseVariablesInString(opt.key)
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + keyText
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
@@ -413,10 +466,11 @@ module.exports = {
|
||||
default: 'set1',
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let set = await parseVariable(opt.set)
|
||||
cmd = 'LOADSET ' + opt.location + ':' + set
|
||||
let set = await context.parseVariablesInString(opt.set)
|
||||
let location = await context.parseVariablesInString(opt.location)
|
||||
cmd = 'LOADSET ' + location + ':' + set
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
@@ -432,9 +486,9 @@ module.exports = {
|
||||
default: '1',
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
cmd = 'MECUT ' + mle
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -442,7 +496,7 @@ module.exports = {
|
||||
actions.ftb = {
|
||||
label: 'Fade to black',
|
||||
options: [],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
cmd = 'FTB'
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -457,11 +511,12 @@ module.exports = {
|
||||
id: 'memID',
|
||||
default: '1:1',
|
||||
regex: '/^[0-9]{1,2}|?(:[0-9]{1,2})+$/',
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var memID = opt.memID
|
||||
var memID = await context.parseVariablesInString(opt.memID)
|
||||
cmd = 'MEM ' + memID
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -479,9 +534,9 @@ module.exports = {
|
||||
regex: Regex.NUMBER,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
cmd = 'MEAUTO ' + mle
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -509,10 +564,10 @@ module.exports = {
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var src = await parseVariable(opt.vidSource)
|
||||
var dst = await parseVariable(opt.vidDest)
|
||||
var src = await context.parseVariablesInString(opt.vidSource)
|
||||
var dst = await context.parseVariablesInString(opt.vidDest)
|
||||
cmd = 'XPT ' + dst + ':' + src
|
||||
console.log('ross xpt:', cmd)
|
||||
sendCommand(cmd)
|
||||
@@ -541,12 +596,14 @@ module.exports = {
|
||||
id: 'timerID',
|
||||
default: 0,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
var timerAction = opt.timerAction
|
||||
var timerID = parseInt(opt.timerID)
|
||||
var timerIDText = await context.parseVariablesInString(opt.timerID)
|
||||
var timerID = parseInt(timerIDText)
|
||||
cmd = 'TIMER ' + timerID + ':' + timerAction
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -557,7 +614,7 @@ module.exports = {
|
||||
label: 'Fade to black',
|
||||
description: 'Not supported on the MDK-111A-K.',
|
||||
options: [],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
cmd = 'FTB'
|
||||
sendCommand(cmd)
|
||||
},
|
||||
@@ -580,6 +637,7 @@ module.exports = {
|
||||
id: 'key',
|
||||
default: 1,
|
||||
regex: Regex.NUMBER,
|
||||
useVariables: true,
|
||||
},
|
||||
{
|
||||
type: 'dropdown',
|
||||
@@ -592,10 +650,11 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
],
|
||||
callback: async (event) => {
|
||||
callback: async (event, context) => {
|
||||
let opt = event.options
|
||||
let mle = await parseVariable(opt.mle)
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + opt.key
|
||||
let mle = await context.parseVariablesInString(opt.mle)
|
||||
let keyText = await context.parseVariablesInString(opt.key)
|
||||
cmd = 'KEY' + opt.transT + ' ' + mle + ':' + keyText
|
||||
sendCommand(cmd)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user