motion-master-client 0.0.65 → 0.0.66
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/package.json +4 -2
- package/src/cli.d.ts +1 -0
- package/src/cli.js +161 -0
- package/src/cli.js.map +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/motion-master-req-res-client.d.ts +258 -179
- package/src/lib/motion-master-req-res-client.js +260 -179
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/os-command.d.ts +25 -0
- package/src/lib/os-command.js +33 -0
- package/src/lib/os-command.js.map +1 -0
- package/src/lib/types.d.ts +57 -125
- package/src/lib/types.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motion-master-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "A library and CLI program used for communicating with Motion Master.",
|
|
6
6
|
"dependencies": {
|
|
7
|
+
"commander": "^11.1.0",
|
|
7
8
|
"fast-deep-equal": "^3.1.3",
|
|
8
9
|
"lodash": "^4.17.21",
|
|
9
10
|
"papaparse": "^5.4.1",
|
|
@@ -11,7 +12,8 @@
|
|
|
11
12
|
"roarr": "^7.15.0",
|
|
12
13
|
"rxjs": "^7.8.1",
|
|
13
14
|
"semver": "^7.5.1",
|
|
14
|
-
"uuid": "^9.0.0"
|
|
15
|
+
"uuid": "^9.0.0",
|
|
16
|
+
"ws": "^8.13.0"
|
|
15
17
|
},
|
|
16
18
|
"peerDependencies": {
|
|
17
19
|
"tslib": "2.5.3"
|
package/src/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/cli.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const index_1 = require("./index");
|
|
6
|
+
const rxjs_1 = require("rxjs");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
const pkg = require("../package.json");
|
|
9
|
+
Object.assign(globalThis, { WebSocket: require('ws') });
|
|
10
|
+
let client;
|
|
11
|
+
let opts;
|
|
12
|
+
let deviceRefObj;
|
|
13
|
+
function getClient() {
|
|
14
|
+
if (!client) {
|
|
15
|
+
opts = commander_1.program.opts();
|
|
16
|
+
deviceRefObj = (0, index_1.makeDeviceRefObj)(opts['deviceRef']);
|
|
17
|
+
client = (0, index_1.createMotionMasterClient)(opts['hostname']);
|
|
18
|
+
}
|
|
19
|
+
return client;
|
|
20
|
+
}
|
|
21
|
+
function logStringified(status) {
|
|
22
|
+
console.log(JSON.stringify(status, null, 2));
|
|
23
|
+
}
|
|
24
|
+
commander_1.program
|
|
25
|
+
.name('motion-master-client')
|
|
26
|
+
.description('CLI to Motion Master API')
|
|
27
|
+
.version(pkg.version)
|
|
28
|
+
.addOption(new commander_1.Option('-s, --hostname <value>', 'connect to a running Motion Master process (e.g., localhost, 192.168.123.456, oblac-drives-76d3c210.local)')
|
|
29
|
+
.default('localhost'))
|
|
30
|
+
.addOption(new commander_1.Option('-f, --format <value>', 'print the output in a format such as CSV, JSON, and so on')
|
|
31
|
+
.choices(['csv']))
|
|
32
|
+
.addOption(new commander_1.Option('-p, --pretty-print', 'print the output in a more readable form, which is useful for requests that involve progress')
|
|
33
|
+
.default(false)
|
|
34
|
+
.conflicts('format'))
|
|
35
|
+
.addOption(new commander_1.Option('-d, --device-ref <value>', 'position, address, or serial number')
|
|
36
|
+
.default(0, '0 position represents the first device in a network chain')
|
|
37
|
+
.argParser((value) => {
|
|
38
|
+
const n = Number(value);
|
|
39
|
+
return isNaN(n) ? value : n;
|
|
40
|
+
}))
|
|
41
|
+
.addOption(new commander_1.Option('-m, --message-id <value>', 'the message ID, which uniquely identifies the request, will be generated by the client library if not specified'))
|
|
42
|
+
.addOption(new commander_1.Option('-t, --request-timeout <value>', 'after sending a request, how long will the client wait for Motion Master to send the status message back')
|
|
43
|
+
.argParser((value) => {
|
|
44
|
+
const n = Number(value);
|
|
45
|
+
if (!Number.isInteger(n)) {
|
|
46
|
+
throw new Error(`The request timeout option must be an integer. The provided value is: ${value}`);
|
|
47
|
+
}
|
|
48
|
+
return n;
|
|
49
|
+
}));
|
|
50
|
+
const getSystemVersionCommand = new commander_1.Command('getSystemVersion').action(() => getClient().whenReady().then(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
var _a;
|
|
52
|
+
const status = yield (0, rxjs_1.lastValueFrom)(client.request.getSystemVersion((_a = opts['requestTimeout']) !== null && _a !== void 0 ? _a : 3000, opts['messageId']));
|
|
53
|
+
if (opts['prettyPrint']) {
|
|
54
|
+
console.log(status === null || status === void 0 ? void 0 : status.version);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
logStringified(status);
|
|
58
|
+
}
|
|
59
|
+
})).finally(() => client.closeSockets()));
|
|
60
|
+
const getDeviceInfoCommand = new commander_1.Command('getDeviceInfo').action(() => getClient().whenReady().then(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
+
var _b, _c;
|
|
62
|
+
const status = yield (0, rxjs_1.lastValueFrom)(client.request.getDeviceInfo((_b = opts['requestTimeout']) !== null && _b !== void 0 ? _b : 5000, opts['messageId']));
|
|
63
|
+
if (opts['format'] === 'csv') {
|
|
64
|
+
console.log(['deviceAddress', 'type', 'position', 'alias'].join(','));
|
|
65
|
+
(_c = status === null || status === void 0 ? void 0 : status.devices) === null || _c === void 0 ? void 0 : _c.forEach((device) => console.log([device.deviceAddress, device.type, device.position, device.alias].join(',')));
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
logStringified(status);
|
|
69
|
+
}
|
|
70
|
+
})).finally(() => client.closeSockets()));
|
|
71
|
+
const getDeviceParameterInfoCommand = new commander_1.Command('getDeviceParameterInfo').action(() => getClient().whenReady().then(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
72
|
+
var _d, _e;
|
|
73
|
+
const status = yield (0, rxjs_1.lastValueFrom)(client.request.getDeviceParameterInfo(Object.assign({}, deviceRefObj), (_d = opts['requestTimeout']) !== null && _d !== void 0 ? _d : 10000, opts['messageId']));
|
|
74
|
+
if (opts['format'] === 'csv') {
|
|
75
|
+
console.log(['index', 'subindex', 'name', 'unit', 'group', 'readAccess', 'writeAccess', 'min', 'max', 'valueType'].join(','));
|
|
76
|
+
(_e = status.parameters) === null || _e === void 0 ? void 0 : _e.forEach((p) => console.log([p.index, p.subindex, p.name, p.unit, p.group, p.readAccess, p.writeAccess, p.min, p.max, p.valueType].join(',')));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
logStringified(status);
|
|
80
|
+
}
|
|
81
|
+
})).finally(() => client.closeSockets()));
|
|
82
|
+
const getDeviceParameterValuesCommand = new commander_1.Command('getDeviceParameterValues')
|
|
83
|
+
.addOption(new commander_1.Option('--load-from-cache', 'load parameter values from the Motion Master cache').default(false))
|
|
84
|
+
.addOption(new commander_1.Option('--send-progress', 'send progress while retrieving the parameter values from the device').default(false))
|
|
85
|
+
.addArgument(new commander_1.Argument('<parameterIds...>', 'space-separated list of parameter ids, e.g. 0x2030:01 0x2110:0C'))
|
|
86
|
+
.action((ids, { loadFromCache, sendProgress }) => {
|
|
87
|
+
const parameters = ids.reduce((arr, id) => {
|
|
88
|
+
const [index, subindex] = (0, index_1.splitParameterId)(id.trim());
|
|
89
|
+
arr.push({ index, subindex, loadFromCache });
|
|
90
|
+
return arr;
|
|
91
|
+
}, []);
|
|
92
|
+
getClient().onceReady$.pipe((0, rxjs_1.mergeMap)(() => { var _a; return client.request.getDeviceParameterValues(Object.assign(Object.assign({}, deviceRefObj), { parameters, sendProgress }), (_a = opts['requestTimeout']) !== null && _a !== void 0 ? _a : 30000, opts['messageId']); })).subscribe({
|
|
93
|
+
next: (status) => {
|
|
94
|
+
var _a;
|
|
95
|
+
if (opts['format'] === 'csv') {
|
|
96
|
+
console.log(['index', 'subindex', 'typeValue', 'intValue', 'uintValue', 'floatValue', 'stringValue', 'rawValue'].join(','));
|
|
97
|
+
(_a = status.parameterValues) === null || _a === void 0 ? void 0 : _a.forEach((p) => console.log([p.index, p.subindex, p === null || p === void 0 ? void 0 : p.typeValue, p.intValue, p.uintValue, p.floatValue, p.stringValue, p.rawValue].join(',')));
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
logStringified(status);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
complete: () => client.closeSockets(),
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
const getDeviceFileCommand = new commander_1.Command('getDeviceFile')
|
|
107
|
+
.addArgument(new commander_1.Argument('<name>', 'name of the file to retrieve'))
|
|
108
|
+
.action((name) => {
|
|
109
|
+
getClient().whenReady().then(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
110
|
+
var _a;
|
|
111
|
+
const status = yield (0, rxjs_1.lastValueFrom)(client.request.getDeviceFile(Object.assign(Object.assign({}, deviceRefObj), { name }), (_a = opts['requestTimeout']) !== null && _a !== void 0 ? _a : 5000, opts['messageId']));
|
|
112
|
+
if (opts['prettyPrint']) {
|
|
113
|
+
if (status.content) {
|
|
114
|
+
console.log((0, index_1.decodeTextContent)(status.content));
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
console.log(`No content for '${name}'`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
logStringified(status);
|
|
122
|
+
}
|
|
123
|
+
})).finally(() => client.closeSockets());
|
|
124
|
+
});
|
|
125
|
+
const setDeviceFileCommand = new commander_1.Command('setDeviceFile')
|
|
126
|
+
.addArgument(new commander_1.Argument('<name>', 'name of the file to write to the device'))
|
|
127
|
+
.addArgument(new commander_1.Argument('<srcPath>', 'path to a file on your computer to read the content from and write to the device'))
|
|
128
|
+
.addOption(new commander_1.Option('--overwrite', 'overwrite the existing file on the device with the same name').default(false))
|
|
129
|
+
.action((name, srcPath, { overwrite }) => {
|
|
130
|
+
const content = Buffer.from((0, fs_1.readFileSync)(srcPath, { encoding: 'utf-8' }), 'utf-8');
|
|
131
|
+
getClient().whenReady().then(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
132
|
+
var _a;
|
|
133
|
+
const status = yield (0, rxjs_1.lastValueFrom)(client.request.setDeviceFile(Object.assign(Object.assign({}, deviceRefObj), { name, content, overwrite }), (_a = opts['requestTimeout']) !== null && _a !== void 0 ? _a : 5000, opts['messageId']));
|
|
134
|
+
logStringified(status);
|
|
135
|
+
})).finally(() => client.closeSockets());
|
|
136
|
+
});
|
|
137
|
+
const startOffsetDetectionCommand = new commander_1.Command('startOffsetDetection').action(() => {
|
|
138
|
+
getClient().onceReady$.pipe((0, rxjs_1.mergeMap)(() => { var _a; return client.request.startOffsetDetection(Object.assign({}, deviceRefObj), (_a = opts['requestTimeout']) !== null && _a !== void 0 ? _a : 60000, opts['messageId']); })).subscribe({
|
|
139
|
+
next: (status) => {
|
|
140
|
+
var _a, _b, _c, _d;
|
|
141
|
+
if (opts['prettyPrint']) {
|
|
142
|
+
const step = index_1.MotionMasterMessage.Status.OffsetDetection.Progress.Code[(_b = (_a = status.progress) === null || _a === void 0 ? void 0 : _a.code) !== null && _b !== void 0 ? _b : 0];
|
|
143
|
+
console.log(`${step} (${(_d = (_c = status.progress) === null || _c === void 0 ? void 0 : _c.percentage) !== null && _d !== void 0 ? _d : 0}%)`);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
logStringified(status);
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
complete: () => client.closeSockets(),
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
commander_1.program
|
|
153
|
+
.addCommand(getSystemVersionCommand)
|
|
154
|
+
.addCommand(getDeviceInfoCommand)
|
|
155
|
+
.addCommand(getDeviceParameterInfoCommand)
|
|
156
|
+
.addCommand(getDeviceParameterValuesCommand)
|
|
157
|
+
.addCommand(getDeviceFileCommand)
|
|
158
|
+
.addCommand(setDeviceFileCommand)
|
|
159
|
+
.addCommand(startOffsetDetectionCommand);
|
|
160
|
+
commander_1.program.parse();
|
|
161
|
+
//# sourceMappingURL=cli.js.map
|
package/src/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/cli.ts"],"names":[],"mappings":";;;AAAA,yCAA6E;AAC7E,mCAAiK;AACjK,+BAA+C;AAC/C,2BAAkC;AAClC,uCAAuC;AAEvC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAExD,IAAI,MAA0B,CAAC;AAC/B,IAAI,IAAkB,CAAC;AACvB,IAAI,YAAsC,CAAC;AAE3C,SAAS,SAAS;IAChB,IAAI,CAAC,MAAM,EAAE;QACX,IAAI,GAAG,mBAAO,CAAC,IAAI,EAAE,CAAC;QACtB,YAAY,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACnD,MAAM,GAAG,IAAA,gCAAwB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;KACrD;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,cAAc,CAAC,MAAW;IACjC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,mBAAO;KACJ,IAAI,CAAC,sBAAsB,CAAC;KAC5B,WAAW,CAAC,0BAA0B,CAAC;KACvC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,SAAS,CACR,IAAI,kBAAM,CAAC,wBAAwB,EAAE,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C,CAAC;AAE3C,mBAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './lib/motion-master-req-res-web-socket';
|
|
|
17
17
|
export * from './lib/motion-master-req-res-worker-socket';
|
|
18
18
|
export * from './lib/operators';
|
|
19
19
|
export * from './lib/options';
|
|
20
|
+
export * from './lib/os-command';
|
|
20
21
|
export * from './lib/parameter';
|
|
21
22
|
export * from './lib/request-status-resolver';
|
|
22
23
|
export * from './lib/system-log-line';
|
package/src/index.js
CHANGED
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./lib/motion-master-req-res-web-socket"), exports)
|
|
|
20
20
|
tslib_1.__exportStar(require("./lib/motion-master-req-res-worker-socket"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./lib/operators"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./lib/options"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./lib/os-command"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./lib/parameter"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./lib/request-status-resolver"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./lib/system-log-line"), exports);
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,4DAAkC;AAClC,gEAAsC;AACtC,iEAAuC;AACvC,uDAA6B;AAC7B,qEAA2C;AAC3C,kEAAwC;AACxC,iEAAuC;AACvC,qEAA2C;AAC3C,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,0DAAgC;AAChC,wDAA8B;AAC9B,0DAAgC;AAChC,wEAA8C;AAC9C,gEAAsC;AACtC,sDAA4B;AAC5B,qDAA2B;AAC3B,qDAA2B;AAC3B,kFAAwD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/motion-master-client/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B;AAC7B,4DAAkC;AAClC,gEAAsC;AACtC,iEAAuC;AACvC,uDAA6B;AAC7B,qEAA2C;AAC3C,kEAAwC;AACxC,iEAAuC;AACvC,qEAA2C;AAC3C,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,6EAAmD;AACnD,6EAAmD;AACnD,iFAAuD;AACvD,oFAA0D;AAC1D,0DAAgC;AAChC,wDAA8B;AAC9B,2DAAiC;AACjC,0DAAgC;AAChC,wEAA8C;AAC9C,gEAAsC;AACtC,sDAA4B;AAC5B,qDAA2B;AAC3B,qDAA2B;AAC3B,kFAAwD"}
|