tapo: add cloud password instructions

This commit is contained in:
Koushik Dutta
2023-03-08 07:36:57 -08:00
parent 806e015823
commit ea86065d99
4 changed files with 10 additions and 3 deletions

View File

@@ -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.

View File

@@ -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"

View File

@@ -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",

View File

@@ -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,