Compare commits

...

3 Commits

Author SHA1 Message Date
GuoQing Liu
1a485fcbb0
Merge bf0d985b9d into c3c27d036f 2026-03-03 21:53:48 +01:00
Michal Srb
c3c27d036f
Hide hidden camera alerts (#22226)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Cameras that have `ui.dashboard = false` config are hidden from
the All Cameras "default" group, but their alerts still appear in the
top row. This hides the alerts as well.

One can still view the hidden cameras and their alerts by making a
custom camera group.
2026-03-03 06:29:57 -07:00
ZhaiSoul
bf0d985b9d fix: fix where go2rtc functionality becomes unavailable after setting the HTTP_PROXY environment variable. 2026-02-05 15:38:30 +00:00
3 changed files with 20 additions and 4 deletions

View File

@ -56,7 +56,9 @@ def _is_valid_host(host: str) -> bool:
@router.get("/go2rtc/streams", dependencies=[Depends(allow_any_authenticated())])
def go2rtc_streams():
r = requests.get("http://127.0.0.1:1984/api/streams")
r = requests.get(
"http://127.0.0.1:1984/api/streams", proxies={"http": None, "https": None}
)
if not r.ok:
logger.error("Failed to fetch streams from go2rtc")
return JSONResponse(
@ -75,7 +77,8 @@ def go2rtc_streams():
)
def go2rtc_camera_stream(request: Request, camera_name: str):
r = requests.get(
f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=all&microphone"
f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=all&microphone",
proxies={"http": None, "https": None},
)
if not r.ok:
camera_config = request.app.frigate_config.cameras.get(camera_name)
@ -107,6 +110,7 @@ def go2rtc_add_stream(request: Request, stream_name: str, src: str = ""):
"http://127.0.0.1:1984/api/streams",
params=params,
timeout=10,
proxies={"http": None, "https": None},
)
if not r.ok:
logger.error(f"Failed to add go2rtc stream {stream_name}: {r.text}")
@ -142,6 +146,7 @@ def go2rtc_delete_stream(stream_name: str):
"http://127.0.0.1:1984/api/streams",
params={"src": stream_name},
timeout=10,
proxies={"http": None, "https": None},
)
if not r.ok:
logger.error(f"Failed to delete go2rtc stream {stream_name}: {r.text}")

View File

@ -711,7 +711,11 @@ def auto_detect_hwaccel() -> str:
try:
cuda = False
vaapi = False
resp = requests.get("http://127.0.0.1:1984/api/ffmpeg/hardware", timeout=3)
resp = requests.get(
"http://127.0.0.1:1984/api/ffmpeg/hardware",
timeout=3,
proxies={"http": None, "https": None},
)
if resp.status_code == 200:
data: dict[str, list[dict[str, str]]] = resp.json()

View File

@ -92,10 +92,17 @@ export default function LiveDashboardView({
const eventUpdate = useFrigateReviews();
const alertCameras = useMemo(() => {
if (!config || cameraGroup == "default") {
if (!config) {
return null;
}
if (cameraGroup == "default") {
return Object.values(config.cameras)
.filter((cam) => cam.ui.dashboard)
.map((cam) => cam.name)
.join(",");
}
if (includeBirdseye && cameras.length == 0) {
return Object.values(config.cameras)
.filter((cam) => cam.birdseye.enabled)