@apocaliss92/scrypted-reolink-native 0.5.10 → 0.5.12
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/dist/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +2 -2
- package/src/camera.ts +3 -3
- package/src/main.ts +6 -6
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apocaliss92/scrypted-reolink-native",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.12",
|
|
4
4
|
"description": "Use any reolink camera with Scrypted, even older/unsupported models without HTTP protocol support",
|
|
5
5
|
"author": "@apocaliss92",
|
|
6
6
|
"license": "Apache",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@scrypted/common": "file:../../scrypted/common",
|
|
48
48
|
"@scrypted/rtsp": "file:../../scrypted/plugins/rtsp",
|
|
49
49
|
"@scrypted/sdk": "^0.3.118",
|
|
50
|
-
"@apocaliss92/nodelink-js": "0.4.
|
|
50
|
+
"@apocaliss92/nodelink-js": "0.4.7"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.0.2"
|
package/src/camera.ts
CHANGED
|
@@ -154,7 +154,7 @@ export class ReolinkCamera
|
|
|
154
154
|
// Basic connection settings
|
|
155
155
|
ipAddress: {
|
|
156
156
|
title: "IP Address",
|
|
157
|
-
hide:
|
|
157
|
+
hide: false,
|
|
158
158
|
type: "string",
|
|
159
159
|
onPut: async () => {
|
|
160
160
|
await this.credentialsChanged();
|
|
@@ -162,7 +162,7 @@ export class ReolinkCamera
|
|
|
162
162
|
},
|
|
163
163
|
username: {
|
|
164
164
|
type: "string",
|
|
165
|
-
hide:
|
|
165
|
+
hide: false,
|
|
166
166
|
title: "Username",
|
|
167
167
|
onPut: async () => {
|
|
168
168
|
await this.credentialsChanged();
|
|
@@ -170,7 +170,7 @@ export class ReolinkCamera
|
|
|
170
170
|
},
|
|
171
171
|
password: {
|
|
172
172
|
type: "password",
|
|
173
|
-
hide:
|
|
173
|
+
hide: false,
|
|
174
174
|
title: "Password",
|
|
175
175
|
onPut: async () => {
|
|
176
176
|
await this.credentialsChanged();
|
package/src/main.ts
CHANGED
|
@@ -293,7 +293,7 @@ class ReolinkNativePlugin
|
|
|
293
293
|
logger: this.console,
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
await sdk.deviceManager.onDeviceDiscovered({
|
|
296
|
+
const deviceId = await sdk.deviceManager.onDeviceDiscovered({
|
|
297
297
|
nativeId,
|
|
298
298
|
name,
|
|
299
299
|
interfaces,
|
|
@@ -313,7 +313,7 @@ class ReolinkNativePlugin
|
|
|
313
313
|
device.storageSettings.values.uid = uid;
|
|
314
314
|
device.cachedCapabilities = capabilities;
|
|
315
315
|
|
|
316
|
-
return
|
|
316
|
+
return deviceId;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
// Handle NVR case
|
|
@@ -322,7 +322,7 @@ class ReolinkNativePlugin
|
|
|
322
322
|
|
|
323
323
|
settings.newCamera ||= name;
|
|
324
324
|
|
|
325
|
-
await sdk.deviceManager.onDeviceDiscovered({
|
|
325
|
+
const deviceId = await sdk.deviceManager.onDeviceDiscovered({
|
|
326
326
|
nativeId,
|
|
327
327
|
name,
|
|
328
328
|
interfaces: [
|
|
@@ -343,7 +343,7 @@ class ReolinkNativePlugin
|
|
|
343
343
|
device.storageSettings.values.username = username;
|
|
344
344
|
device.storageSettings.values.password = password;
|
|
345
345
|
|
|
346
|
-
return
|
|
346
|
+
return deviceId;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
// Create nativeId based on device type and transport
|
|
@@ -373,7 +373,7 @@ class ReolinkNativePlugin
|
|
|
373
373
|
logger: this.console,
|
|
374
374
|
});
|
|
375
375
|
|
|
376
|
-
await sdk.deviceManager.onDeviceDiscovered({
|
|
376
|
+
const deviceId = await sdk.deviceManager.onDeviceDiscovered({
|
|
377
377
|
nativeId,
|
|
378
378
|
name,
|
|
379
379
|
interfaces,
|
|
@@ -396,7 +396,7 @@ class ReolinkNativePlugin
|
|
|
396
396
|
|
|
397
397
|
device.cachedCapabilities = capabilities;
|
|
398
398
|
|
|
399
|
-
return
|
|
399
|
+
return deviceId;
|
|
400
400
|
} catch (e) {
|
|
401
401
|
this.console.error(
|
|
402
402
|
"Error adding Reolink device",
|