diff --git a/README.md b/README.md index bc1d4a3..503d16c 100755 --- a/README.md +++ b/README.md @@ -55,10 +55,9 @@ Google Accounts are configured using the `"googleAuth"` object in `config.json`, **Note:** If the steps below do not work, refer to the [manual authentication method](https://github.com/Brandawg93/homebridge-nest-cam/wiki/Manual-Authentication). -1. If the plugin is installed globally, run `homebridge-nest-cam login`, otherwise, *ensure that you are in the plugin's root directory* and run `npx -p homebridge-nest-cam homebridge-nest-cam login`. If your account has 2 factor authentication, use the `-h` flag. +1. If the plugin is installed globally, run `homebridge-nest-cam login`, otherwise, *ensure that you are in the plugin's root directory* and run `node dist/login.js`. If your account has 2 factor authentication, use the `-h` flag. 2. Login to your Nest account. 3. Copy the output to your `config.json`. -4. (Optional) Run `homebridge-nest-cam clean` to remove extra packages used to login. #### options Extra options can be enabled/disabled depending on which switches and sensors you would like to see in the Home app. Here is the current list of available options: diff --git a/cli.sh b/cli.sh index 66723b0..01d2e0b 100755 --- a/cli.sh +++ b/cli.sh @@ -1,16 +1,7 @@ #!/bin/bash if [ "$1" == "login" ] || [ "$1" == "-l" ]; then - if [[ $(npm list puppeteer) = *puppeteer* ]]; then - node dist/login.js "$@" - else - read -p "The latest version of Chromium browser will be downloaded. Would you like to continue? (y/N): " convar - if [ "$convar" == "y" ] || [ "$convar" == "Y" ]; then - npm install puppeteer puppeteer-extra puppeteer-extra-plugin-stealth@2.4.5 && node dist/login.js "$@" - else - echo "Exiting..." - fi - fi + node dist/login.js "$@" elif [ "$1" == "clean" ] || [ "$1" == "-c" ]; then npm prune --production else diff --git a/package-lock.json b/package-lock.json index 077562f..27ddbf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-nest-cam", - "version": "3.4.0", + "version": "3.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 36f85d0..2cdfcd6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Homebridge Nest Cam", "name": "homebridge-nest-cam", - "version": "3.4.0", + "version": "3.4.1", "description": "Nest cam plugin for homebridge: https://homebridge.io/", "main": "dist/index.js", "license": "GPL-3.0", diff --git a/src/ffmpeg.ts b/src/ffmpeg.ts index 0075018..5748097 100644 --- a/src/ffmpeg.ts +++ b/src/ffmpeg.ts @@ -37,7 +37,9 @@ export class FfmpegProcess { const controller = delegate.controller; if (ffmpegDebugOutput) { - log(`${title} command: ffmpeg ${command}`); + log.info(`${title} command: ffmpeg ${command}`); + } else { + log.debug(`${title} command: ffmpeg ${command}`); } const videoProcessor = customFfmpeg || pathToFfmpeg || 'ffmpeg'; @@ -61,7 +63,9 @@ export class FfmpegProcess { } if (ffmpegDebugOutput) { - log(`${title}: ${String(data)}`); + log.info(`${title}: ${String(data)}`); + } else { + log.debug(`${title}: ${String(data)}`); } }); }