Skip to content

Commit

Permalink
Merge pull request #17 from BaseballJim/Save_Restore_RoutingTable+Fal…
Browse files Browse the repository at this point in the history
…lBack_Stack

Add funtion to save and restore the entire routing table to a disk file.
  • Loading branch information
krocheck authored Dec 20, 2020
2 parents 63a6ed4 + 8d537f7 commit 540e66b
Show file tree
Hide file tree
Showing 8 changed files with 975 additions and 787 deletions.
4 changes: 3 additions & 1 deletion HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ This module will connect to any Blackmagic Design VideoHub Device.
* Select destination
* Route source to selected destination
* Take (when enabled)
* Clear (when enabled)
* Clear (when enabled)
* Write routes to a disk file
* Read routes from a disk file
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# companion-module-bmd-videohub
See HELP.md and LICENSE

**Changes in v1.3.0**
- Added ability to read and write routing table to a disk file.
- Added 'Return to previous Route' as a release action
**Changes in v1.2.0**
- Moved to split files structure for actions, feedback, presets, and variables.
- **companion-module-bmd-multiview16 extends this module.** Future changes require testing against both modules.
Expand Down
39 changes: 39 additions & 0 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,45 @@ module.exports = {
getActions() {
var actions = {};

actions['route_to_previous'] = {
label: 'Return to previous route',
options: [
{
type: 'dropdown',
label: 'Destination',
id: 'destination',
default: '0',
choices: this.CHOICES_OUTPUTS
}
]
};

actions['load_route_from_file'] = {
label: 'Load Routes File',
options: [

{
type: 'textinput',
label: 'Source File',
id: 'source_file',
default: "C:\\VideoHub.txt"
}
]
};

actions['store_route_in_file'] = {
label: 'Save Routes File',
options: [

{
type: 'textinput',
label: 'Destination File',
id: 'destination_file',
default: "C:\\VideoHub.txt"
}
]
};

actions['rename_destination'] = {
label: 'Rename destination',
options: [
Expand Down
Loading

0 comments on commit 540e66b

Please sign in to comment.