diff --git a/frigate/config/config.py b/frigate/config/config.py index 23f77aa9d..7ce9c73b4 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -80,18 +80,7 @@ DEFAULT_CONFIG = """ mqtt: enabled: False -cameras: - name_of_your_camera: # <------ Name the camera - enabled: True - ffmpeg: - inputs: - - path: rtsp://10.0.10.10:554/rtsp # <----- The stream you want to use for detection - roles: - - detect - detect: - enabled: False # <---- disable detection until you have a working camera feed - width: 1280 - height: 720 +cameras: {} # No cameras defined, UI wizard should be used """ DEFAULT_DETECTORS = {"cpu": {"type": "cpu"}} diff --git a/web/public/locales/en/views/live.json b/web/public/locales/en/views/live.json index 356c896ae..92c4cfbd8 100644 --- a/web/public/locales/en/views/live.json +++ b/web/public/locales/en/views/live.json @@ -168,5 +168,10 @@ "label": "Edit Camera Group" }, "exitEdit": "Exit Editing" + }, + "noCameras": { + "title": "No Cameras Set Up", + "description": "Get started by connecting a camera.", + "buttonText": "Add Camera" } } diff --git a/web/src/components/card/EmptyCard.tsx b/web/src/components/card/EmptyCard.tsx new file mode 100644 index 000000000..671262994 --- /dev/null +++ b/web/src/components/card/EmptyCard.tsx @@ -0,0 +1,29 @@ +import React from "react"; +import { Button } from "../ui/button"; +import Heading from "../ui/heading"; + +type EmptyCardProps = { + icon: React.ReactNode; + title: string; + description: string; + buttonText?: string; +}; +export function EmptyCard({ + icon, + title, + description, + buttonText, +}: EmptyCardProps) { + return ( +