Commit Graph

3254 Commits

Author SHA1 Message Date
Nicolas Mowen
3758f10d03 Get rate limiter working 2024-09-24 06:56:08 -06:00
Nicolas Mowen
22b6aaf070 Merge branch 'dev' of github.com:blakeblackshear/frigate into frigate-http-api-with-fastapi 2024-09-24 06:32:13 -06:00
Nicolas Mowen
4894be2cc1 Remove unused 2024-09-24 06:24:55 -06:00
gtsiam
dc54981784
Move more things out of FrigateApp (#13897)
* Moved FrigateApp.init_config() into FrigateConfig.load()

* Move frigate config loading into main

* Store PlusApi in FrigateConfig

* Register SIGTERM handler in main

* Ensure logging is setup during config parsing

* Removed pointless try

* Moved config initialization out of FrigateApp

* Made FrigateApp.shm_frame_count into a function

* Removed log calls from signal handlers

python's logging calls are not re-entrant, which caused at least one of
these to deadlock randomly.

* Reopen stdout/err on process fork

This helps avoid deadlocks (https://github.com/python/cpython/issues/91776).

* Make mypy happy

* Whoops. I might have forgotten to save.

Truly an amateur mistake.

* Always call FrigateApp.stop()
2024-09-24 07:07:47 -05:00
Nicolas Mowen
889d39f50a Remove unused 2024-09-23 17:26:48 -06:00
Nicolas Mowen
b37bb8edc7 Formatting 2024-09-23 17:26:23 -06:00
Nicolas Mowen
ecfc86e553 Add cosntraints to api provided values 2024-09-23 17:24:33 -06:00
Nicolas Mowen
920f369473 Fix latest.ext handling and disable uvicorn access logs 2024-09-23 16:59:28 -06:00
Nicolas Mowen
70a3f7fca6 Replace filename with pathvalidate 2024-09-23 16:18:00 -06:00
Nicolas Mowen
a5f0f200ef Fix http tests 2024-09-23 16:08:47 -06:00
Nicolas Mowen
1f141b27ae Bind timeline to DB 2024-09-23 15:58:48 -06:00
Nicolas Mowen
a71f123ccf Formatting 2024-09-23 15:35:17 -06:00
Josh Hawkins
a7ed90f042
try deleting zoom spaces if disabled (#13915) 2024-09-23 15:34:08 -05:00
Nicolas Mowen
08941ab39a
Improve hailo docs (#13910)
* Fix command for hailo8 install

* Update object_detectors.md
2024-09-23 09:53:54 -05:00
ofcedwards
b81a8d26e4
Disable keepalive for Safari in nginx vod location (#13909) 2024-09-23 08:02:50 -06:00
Nicolas Mowen
af84af7b7a
Don't print error for requesting camera info (#13905) 2024-09-23 08:49:34 -05:00
Josh Hawkins
0f813962be
Chroma fixes (#13902)
* Ensure descriptions saved in chroma are non-empty

* delete only existing ids in event cleanup

* add debug logging
2024-09-23 06:53:19 -06:00
Josh Hawkins
fe57f7f489
Search UI tweaks (#13903) 2024-09-23 06:39:20 -06:00
Sean Kelly
12e2c04486
Decrease number of X ticks on system and camera graphs (#13891) 2024-09-22 15:57:19 -06:00
Nicolas Mowen
6bafb68d77
Remove PyYAML usages and dependency (#13889) 2024-09-22 14:08:36 -05:00
Rui Alves
59dfe2ddc1 Merge branch 'dev' into frigate-http-api-with-fastapi
# Conflicts:
#	frigate/api/app.py
#	frigate/test/test_http.py
2024-09-22 19:34:32 +01:00
Rui Alves
be01c9ec76 Fix test_http to use TestClient 2024-09-22 19:25:29 +01:00
gtsiam
e8763b3697
Removed usage of PyYAML for config parsing. (#13883)
* Ignore entire __pycache__ folder instead of individual *.pyc files

* Ignore .mypy_cache in git

* Rework config YAML parsing to use only ruamel.yaml

PyYAML silently overrides keys when encountering duplicates, but ruamel
raises and exception by default. Since we're already using it elsewhere,
dropping PyYAML is an easy choice to make.

* Added EnvString in config to slim down runtime_config()

* Added gitlens to devcontainer

* Automatically call FrigateConfig.runtime_config()

runtime_config needed to be called manually before. Now, it's been
removed, but the same code is run by a pydantic validator.

* Fix handling of missing -segment_time

* Removed type annotation on FrigateConfig's parse

I'd like to keep them, but then mypy complains about some fundamental
errors with how the pydantic model is structured. I'd like to fix it,
but I'd rather work towards moving some of this config to the database.
2024-09-22 10:56:57 -05:00
Nicolas Mowen
6f2924006c
Include radeontop in arm build (#13886) 2024-09-22 10:56:30 -05:00
Rui Alves
cdc267cc36 Deleted file 2024-09-22 16:19:14 +01:00
Rui Alves
02c11806df Reverted paths for media on tsx files 2024-09-22 16:18:33 +01:00
Rui Alves
3a54b9251a Revert media routers to old names. Order routes to make sure the dynamic ones from media.py are only used whenever there's no match on auth/etc 2024-09-22 16:13:27 +01:00
Nicolas Mowen
062c305cd8
Remove context file (#13885) 2024-09-22 08:38:23 -06:00
Rui Alves
fcb54adb5f Fix endpoint 2024-09-21 16:12:09 +01:00
Rui Alves
2dce0448f6 Use the same pattern for all tests 2024-09-21 15:40:32 +01:00
Rui Alves
89b103b3a2 severity query parameter should be a string 2024-09-21 15:19:48 +01:00
Rui Alves
78c1103239 Use FastAPI TestClient 2024-09-21 15:12:50 +01:00
Rui Alves
83def10dc3 Removed left over comment 2024-09-21 15:03:56 +01:00
Rui Alves
ebda6597cc Added missing even_id for /events/search endpoint 2024-09-21 14:16:19 +01:00
Rui Alves
8a3f512d5a Merge branch 'fastapi-poc-media-endpoints' into fastapi-poc-notification-preview
# Conflicts:
#	frigate/__main__.py
#	frigate/api/event.py
2024-09-21 14:15:21 +01:00
Rui Alves
06055a2483 Merge branch 'fastapi-poc' into fastapi-poc-media-endpoints 2024-09-21 14:10:54 +01:00
Rui Alves
baa4cf64f0 Merge branch 'dev' into fastapi-poc 2024-09-21 14:10:37 +01:00
Rui Alves
3d984a55f0 Revert initial nginx.conf change 2024-09-21 14:05:40 +01:00
Rui Alves
d1146a9d27 Use query parameters for the media MJPEG feed endpoint 2024-09-21 14:01:03 +01:00
Rui Alves
c33327175a Use query parameters for the media snapshot.jpg endpoint 2024-09-21 12:48:13 +01:00
Rui Alves
17788bb9c7 Use query parameters for the frame latest endpoint 2024-09-21 12:36:47 +01:00
Rui Alves
6dadeeb488 Use slowapi as the limiter 2024-09-21 12:00:10 +01:00
Nicolas Mowen
61a4a4bc2f
Update openvino to 2024.3 (#13861) 2024-09-20 17:20:11 -05:00
Josh Hawkins
176af55e8c
Fix similarity search (#13856)
* add event_id param to api

* exclude query from filtertype

* update review pane link for similarity search

* update filter group for similarity param and fix switch bug

* unneeded prop

* update query and input for similarity search param

* use undefined instead of empty string for query with similarity search
2024-09-20 12:05:55 -05:00
Nicolas Mowen
1a51ce712c
Simplify tensorrt building (#13851)
* Simplify tensorrt building

* Use engine context cache
2024-09-20 10:49:44 -05:00
Rui Alves
fb804bac4e Added starlette plugin to expose custom headers 2024-09-20 11:15:50 +01:00
Sean Kelly
535bf6e4b9
Update install_deps.sh fix typo (#13842) 2024-09-19 19:21:04 -06:00
Josh Hawkins
515f06ba6c
small spacing tweaks and fix config editor schema load (#13841) 2024-09-19 17:36:07 -06:00
Josh Hawkins
6c43e5dba9
Display warning when search embeddings models are being downloaded (#13840) 2024-09-19 16:14:20 -05:00
Nicolas Mowen
d498fabe72
Update ffmpeg to 7 and update intel hwaccel docs (#13834)
* Update ffmpeg to 7 and update intel hwaccel docs

* Formatting

* Redo early gen naming

* Add gamma back in

* Fix table

* Add link to intel docs

* Add hwaccel arg for disabling gamma

* Formatting

* Fix tests

* Formatting

* Fix nvidia
2024-09-19 13:29:58 -06:00