Skip to content

Commit 782c993

Browse files
committed
Merge branch 'main' of github.com:koush/scrypted
2 parents d0b46c3 + 6c7671d commit 782c993

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

plugins/reolink/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/reolink/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scrypted/reolink",
3-
"version": "0.0.88",
3+
"version": "0.0.90",
44
"description": "Reolink Plugin for Scrypted",
55
"author": "Scrypted",
66
"license": "Apache",

plugins/reolink/src/reolink-api.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class ReolinkCameraClient {
260260
op += 'Up';
261261

262262
if (op) {
263-
await this.ptzOp(op, Math.round((command.speed?.pan || command.speed?.tilt || 1) * 10));
263+
await this.ptzOp(op, Math.round((command?.pan || command?.tilt || 1) * 10));
264264
}
265265

266266
if (command.zoom < 0)
@@ -269,7 +269,7 @@ export class ReolinkCameraClient {
269269
op = 'ZoomInc';
270270

271271
if (op) {
272-
await this.ptzOp(op, Math.round((command.speed?.zoom || 1) * 10));
272+
await this.ptzOp(op, Math.round((command?.zoom || 1) * 10));
273273
}
274274
}
275275

server/src/scrypted-plugin-main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { RpcMessage } from "./rpc";
88

99
function start(mainFilename: string) {
1010
const pluginId = process.argv[3];
11-
console.log('starting plugin', pluginId);
1211
module.paths.push(getPluginNodePath(pluginId));
1312

1413
if (process.argv[2] === 'child-thread') {
14+
console.log('starting thread', pluginId);
1515
const { port } = worker_threads.workerData as { port: worker_threads.MessagePort };
1616
const peer = startPluginRemote(mainFilename, pluginId, (message, reject) => {
1717
try {
@@ -34,6 +34,7 @@ function start(mainFilename: string) {
3434
});
3535
}
3636
else {
37+
console.log('starting plugin', pluginId);
3738
const peer = startPluginRemote(mainFilename, process.argv[3], (message, reject, serializationContext) => process.send(message, serializationContext?.sendHandle, {
3839
swallowErrors: !reject,
3940
}, e => {

0 commit comments

Comments
 (0)