mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
tapo: add cloud password instructions
This commit is contained in:
@@ -7,3 +7,4 @@ This plugin adds two way audio support for Tapo cameras. This plugin does not im
|
||||
1. Add the Tapo Camera using the ONVIF Plugin.
|
||||
2. Enable ONVIF Two Way Audio on the camera.
|
||||
3. Enable the Tapo Two Way Audio extension.
|
||||
4. Enter your Tapo Cloud password into the Tapo Two Way Audio Settings.
|
||||
|
||||
4
plugins/tapo/package-lock.json
generated
4
plugins/tapo/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/tapo",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.10",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/tapo",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.10",
|
||||
"dependencies": {
|
||||
"axios": "^1.3.4",
|
||||
"crc-32": "^1.2.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/tapo",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.10",
|
||||
"description": "Tapo Camera Plugin for Scrypted",
|
||||
"scripts": {
|
||||
"scrypted-setup-project": "scrypted-setup-project",
|
||||
|
||||
@@ -22,6 +22,12 @@ class TapoIntercomMixin extends SettingsMixinDeviceBase<VideoCamera & Settings>
|
||||
const ip = settings.find(s => s.key === 'ip')?.value?.toString();
|
||||
await this.stopIntercom();
|
||||
|
||||
if (!this.storageSettings.values.cloudPassword) {
|
||||
const error = 'Two Way Audio failed. Tapo Cloud password is unconfigured on ' + this.name;
|
||||
sdk.log.a(error);
|
||||
throw error;
|
||||
}
|
||||
|
||||
this.client = TapoAPI.connect({
|
||||
address: `${ip}:8800`,
|
||||
cloudPassword: this.storageSettings.values.cloudPassword,
|
||||
|
||||
Reference in New Issue
Block a user