From 9fe97ca9a603ccb99cd0466b69345206d0a4fc5b Mon Sep 17 00:00:00 2001 From: Dom Needham <=> Date: Wed, 20 Sep 2023 12:14:14 +0100 Subject: [PATCH] Handle non correct birdseye settings --- src/screens/BirdseyeScreen/BirdseyeScreen.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/screens/BirdseyeScreen/BirdseyeScreen.tsx b/src/screens/BirdseyeScreen/BirdseyeScreen.tsx index 0d60697..66c5e86 100644 --- a/src/screens/BirdseyeScreen/BirdseyeScreen.tsx +++ b/src/screens/BirdseyeScreen/BirdseyeScreen.tsx @@ -8,9 +8,22 @@ export const BirdseyeScreen = () => { return Loading ...; } - if (config.data?.birdseye.enabled) { - return ; + if (config.isError) { + return Failed to load frigate config; } - return Birdseye is not enabled; + if (!config.data?.birdseye.enabled) { + return Birdseye is not enabled; + } + + if (!config.data?.birdseye.restream) { + return ( + + Restream must be enabled so that the birdseye feed is served through + WebRTC. Please update your Frigate config. + + ); + } + + return ; };