diff --git a/config.js b/config.js index c685de8..c23e3da 100644 --- a/config.js +++ b/config.js @@ -16,6 +16,7 @@ module.exports = new Store({ midirelayPort: '4000', midirelayMIDIPort: 'loopMIDI Port', companionIP: '127.0.0.1', + companionPort: '51234', plugin_midirelay: true, plugin_vista: true, plugin_http: true, diff --git a/index.html b/index.html index 0a6946e..4e96ac9 100644 --- a/index.html +++ b/index.html @@ -222,6 +222,7 @@ $('#switchCompanion').prop('checked', config.get('plugin_companion')); plugin_enable('companion') $('#txtCompanionIP').val(config.get('companionIP')); + $('#txtCompanionPort').val(config.get('companionPort')); $('#switchMdns').prop('checked', config.get('switch_mdns')); $('#switchSettings').prop('checked', config.get('switch_settings')); @@ -374,6 +375,7 @@ config.set('vistaMIDIPort', $('#txtVistaMIDIPort').val()); config.set('companionIP', $('#txtCompanionIP').val()); + config.set('companionPort', $('#txtCompanionPort').val()); } function mdnsRescan() { @@ -594,7 +596,11 @@

Created by techministry.blog

Companion Buttons -
+
+
+
+
+
@@ -602,6 +608,14 @@

Created by techministry.blog

+
+
+
+ +
+ +
+
diff --git a/index.js b/index.js index cefb0c5..ab2015c 100644 --- a/index.js +++ b/index.js @@ -987,7 +987,7 @@ function createCompanionConnection() { companionClient.destroy() companionClient = undefined } - companionClient = new net.createConnection(51234, config.get('companionIP')); + companionClient = new net.createConnection(config.get('companionPort'), config.get('companionIP')); console.log('Connecting to Companion.'); companionClient.on('connect', () => { diff --git a/package.json b/package.json index 06c6432..c9d1a53 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "presentationbridge-client", "productName": "PresentationBridge Client", - "version": "1.0.14", + "version": "1.0.15", "description": "Links data from your Presentation / lyrics software to other software.", "license": "MIT", "repository": "josephdadams/presentationbridge-client",