node-red-contrib-modbus-modpackqt 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to **node-red-contrib-modbus-modpackqt** are documented
|
|
|
4
4
|
here. This project follows [Semantic Versioning](https://semver.org/) — pin a
|
|
5
5
|
major version (`^2.0.0`) in production.
|
|
6
6
|
|
|
7
|
+
## [3.1.1] — 2026-05-10
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **"Open in ModPackQT Console" buttons now point at the existing
|
|
12
|
+
`/master` and `/slave` pages** (instead of a non-existent `/console`
|
|
13
|
+
route). Master probe → `https://modpackqt.com/master?probe=…&host=…
|
|
14
|
+
&port=…&unitId=…`, slave probe → `https://modpackqt.com/slave?probe=…
|
|
15
|
+
&port=…&unitId=…`. The pages auto-fill the connection panel from the
|
|
16
|
+
query string, so the button is useful immediately — even before the
|
|
17
|
+
web app wires up to the local probe runtime API.
|
|
18
|
+
- Both URLs still carry `probeHost` + `probePort` + `probe` (node id)
|
|
19
|
+
so the web app can attach to the local runtime once that work lands.
|
|
20
|
+
|
|
7
21
|
## [3.1.0] — 2026-05-10
|
|
8
22
|
|
|
9
23
|
### Added
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
const http = require('http');
|
|
19
19
|
const { URL } = require('url');
|
|
20
20
|
|
|
21
|
-
const PALETTE_VERSION = '3.1.
|
|
21
|
+
const PALETTE_VERSION = '3.1.1';
|
|
22
22
|
const DEFAULT_PORT = parseInt(process.env.MODPACKQT_PROBE_PORT, 10) || 8502;
|
|
23
23
|
const BIND_HOST = process.env.MODPACKQT_PROBE_HOST || '127.0.0.1';
|
|
24
24
|
const PORT_RETRY = 5;
|
|
@@ -19,16 +19,22 @@
|
|
|
19
19
|
oneditprepare: function () {
|
|
20
20
|
const node = this;
|
|
21
21
|
const buildLink = (info) => {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
+ '
|
|
22
|
+
const probeHost = (info && info.host) || '127.0.0.1';
|
|
23
|
+
const probePort = (info && info.port) || 8502;
|
|
24
|
+
const targetHost = $('#node-input-targetHost').val() || node.targetHost || '';
|
|
25
|
+
const targetPort = $('#node-input-targetPort').val() || node.targetPort || 502;
|
|
26
|
+
const unitId = $('#node-input-unitId').val() || node.unitId || 1;
|
|
27
|
+
const name = $('#node-input-name').val() || node.name || '';
|
|
28
|
+
const url = 'https://modpackqt.com/master'
|
|
29
|
+
+ '?probe=' + encodeURIComponent(node.id)
|
|
30
|
+
+ '&probeHost=' + encodeURIComponent(probeHost)
|
|
31
|
+
+ '&probePort=' + probePort
|
|
32
|
+
+ '&host=' + encodeURIComponent(targetHost)
|
|
33
|
+
+ '&port=' + targetPort
|
|
34
|
+
+ '&unitId=' + unitId
|
|
35
|
+
+ (name ? '&name=' + encodeURIComponent(name) : '');
|
|
30
36
|
$('#modpackqt-probe-link').attr('href', url);
|
|
31
|
-
$('#modpackqt-probe-runtime').text(
|
|
37
|
+
$('#modpackqt-probe-runtime').text(probeHost + ':' + probePort);
|
|
32
38
|
};
|
|
33
39
|
$.getJSON('modpackqt-probe/info').done(buildLink).fail(() => buildLink({}));
|
|
34
40
|
}
|
|
@@ -18,16 +18,20 @@
|
|
|
18
18
|
oneditprepare: function () {
|
|
19
19
|
const node = this;
|
|
20
20
|
const buildLink = (info) => {
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
+ '
|
|
28
|
-
+ '&
|
|
21
|
+
const probeHost = (info && info.host) || '127.0.0.1';
|
|
22
|
+
const probePort = (info && info.port) || 8502;
|
|
23
|
+
const bindPort = $('#node-input-bindPort').val() || node.bindPort || 1502;
|
|
24
|
+
const unitId = $('#node-input-unitId').val() || node.unitId || 1;
|
|
25
|
+
const name = $('#node-input-name').val() || node.name || '';
|
|
26
|
+
const url = 'https://modpackqt.com/slave'
|
|
27
|
+
+ '?probe=' + encodeURIComponent(node.id)
|
|
28
|
+
+ '&probeHost=' + encodeURIComponent(probeHost)
|
|
29
|
+
+ '&probePort=' + probePort
|
|
30
|
+
+ '&port=' + bindPort
|
|
31
|
+
+ '&unitId=' + unitId
|
|
32
|
+
+ (name ? '&name=' + encodeURIComponent(name) : '');
|
|
29
33
|
$('#modpackqt-slave-probe-link').attr('href', url);
|
|
30
|
-
$('#modpackqt-slave-probe-runtime').text(
|
|
34
|
+
$('#modpackqt-slave-probe-runtime').text(probeHost + ':' + probePort);
|
|
31
35
|
};
|
|
32
36
|
$.getJSON('modpackqt-probe/info').done(buildLink).fail(() => buildLink({}));
|
|
33
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-modbus-modpackqt",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Modbus commissioning, testing & analysis tools for Node-RED. Embedded Modbus TCP/RTU master + slave server, FC1/FC2/FC3/FC4 reads, FC5/FC6/FC15/FC16 writes, built-in slave register store, and a passive traffic monitor for debugging. 100% free, MIT, no usage limits. By ModPackQT — open the matching web console at modpackqt.com for register decoding, simulation and AI assistance.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|