From 1129a2aba448aacec9d408d51ab6c5f6d00a23a2 Mon Sep 17 00:00:00 2001 From: Nitin Gupta Date: Fri, 21 Jun 2024 18:20:45 +0200 Subject: [PATCH 1/3] Added FAQ entry for viewing logs (#12088) --- docs/docs/troubleshooting/faqs.md | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/docs/troubleshooting/faqs.md b/docs/docs/troubleshooting/faqs.md index ca64974fa..2c290462a 100644 --- a/docs/docs/troubleshooting/faqs.md +++ b/docs/docs/troubleshooting/faqs.md @@ -57,3 +57,36 @@ SQLite does not work well on a network share, if the `/media` folder is mapped t If MQTT isn't working in docker try using the IP of the device hosting the MQTT server instead of `localhost`, `127.0.0.1`, or `mosquitto.ix-mosquitto.svc.cluster.local`. This is because, by default, Frigate does not run in host mode so localhost points to the Frigate container and not the host device's network. + +### How can I view the Frigate log files without using the Web UI? + +Frigate manages logs internally as well as outputs directly to Docker via standard output. To view these logs using the CLI, follow these steps: +* Open a terminal or command prompt on the host running your Frigate container. +* Type the following command and press Enter: + ``` + docker logs -f frigate + ``` + This command tells Docker to show you the logs from the Frigate container. + Note: If you've given your Frigate container a different name, replace "frigate" in the command with your container's actual name. The "-f" option means the logs will continue to update in real-time as new entries are added. To stop viewing the logs, press `Ctrl+C`. If you'd like to learn more about using Docker logs, including additional options and features, you can explore Docker's [official documentation](https://docs.docker.com/engine/reference/commandline/logs/). + +Alternatively, when you create the Frigate Docker container, you can bind a directory on the host to the mountpoint `/dev/shm/logs` to not only be able to persist the logs to disk, but also to be able to query them directly from the host using your favorite log parsing/query utility. + +``` +docker run -d \ + --name frigate \ + --restart=unless-stopped \ + --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 \ + --device /dev/bus/usb:/dev/bus/usb \ + --device /dev/dri/renderD128 \ + --shm-size=64m \ + -v /path/to/your/storage:/media/frigate \ + -v /path/to/your/config:/config \ + -v /etc/localtime:/etc/localtime:ro \ + -v /path/to/local/log/dir:/dev/shm/logs \ + -e FRIGATE_RTSP_PASSWORD='password' \ + -p 5000:5000 \ + -p 8554:8554 \ + -p 8555:8555/tcp \ + -p 8555:8555/udp \ + ghcr.io/blakeblackshear/frigate:stable +``` From 94b1350c9dfb60ed9859bf28ede695811e465808 Mon Sep 17 00:00:00 2001 From: Steven Conaway Date: Fri, 28 Jun 2024 15:34:15 -0600 Subject: [PATCH 2/3] config reference: add note about birdseye>layout>scaling_factor (#12190) --- docs/docs/configuration/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/configuration/reference.md b/docs/docs/configuration/reference.md index f27e5055d..285e42b61 100644 --- a/docs/docs/configuration/reference.md +++ b/docs/docs/configuration/reference.md @@ -149,7 +149,7 @@ birdseye: inactivity_threshold: 30 # Optional: Configure the birdseye layout layout: - # Optional: Scaling factor for the layout calculator (default: shown below) + # Optional: Scaling factor for the layout calculator, range 1.0-5.0 (default: shown below) scaling_factor: 2.0 # Optional: Maximum number of cameras to show at one time, showing the most recent (default: show all cameras) max_cameras: 1 From 91215a1406d6ebbc4fe7dd96978c4443e987e506 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 13 Jul 2024 14:49:54 -0500 Subject: [PATCH 3/3] update link to info on plus (#12434) --- docs/docs/plus/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/plus/index.md b/docs/docs/plus/index.md index de84c6a45..35189ed3f 100644 --- a/docs/docs/plus/index.md +++ b/docs/docs/plus/index.md @@ -3,7 +3,7 @@ id: index title: Models --- -Frigate+ offers models trained on images submitted by Frigate+ users from their security cameras and is specifically designed for the way Frigate NVR analyzes video footage. These models offer higher accuracy with less resources. The images you upload are used to fine tune a baseline model trained from images uploaded by all Frigate+ users. This fine tuning process results in a model that is optimized for accuracy in your specific conditions. +Frigate+ offers models trained on images submitted by Frigate+ users from their security cameras and is specifically designed for the way Frigate NVR analyzes video footage. These models offer higher accuracy with less resources. The images you upload are used to fine tune a baseline model trained from images uploaded by all Frigate+ users. This fine tuning process results in a model that is optimized for accuracy in your specific conditions. :::info