Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
output ffmpeg to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandawg93 committed Jul 8, 2020
1 parent 8114f2e commit 29eaf16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 1 addition & 10 deletions cli.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected] && node dist/login.js "$@"
else
echo "Exiting..."
fi
fi
node dist/login.js "$@"
elif [ "$1" == "clean" ] || [ "$1" == "-c" ]; then
npm prune --production
else
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 6 additions & 2 deletions src/ffmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -61,7 +63,9 @@ export class FfmpegProcess {
}

if (ffmpegDebugOutput) {
log(`${title}: ${String(data)}`);
log.info(`${title}: ${String(data)}`);
} else {
log.debug(`${title}: ${String(data)}`);
}
});
}
Expand Down

0 comments on commit 29eaf16

Please sign in to comment.