mqtt:
enabled: True
host: 192.168.178.34
user: '{FRIGATE_MQTT_USER}'
password: '{FRIGATE_MQTT_PASSWORD}'
birdseye:
enabled: True
mode: objects
restream: true
detectors:
cpu1:
type: cpu
num_threads: 3
cpu2:
type: cpu
num_threads: 3
cpu3:
type: cpu
num_threads: 3
cpu4:
type: cpu
num_threads: 3
record:
enabled: True
retain:
days: 30
mode: motion
events:
retain:
default: 60
mode: active_objects
snapshots:
enabled: True
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
go2rtc:
streams:
einfahrt:
- rtsp://viewer:<myPassword>@192.168.178.113:554/h264Preview_01_main # 4608*1728@20fps
einfahrt_sub:
- rtsp://viewer:<myPassword>@192.168.178.113:554/h264Preview_01_sub # 1536*576@20fps
einfahrt_schwenk:
- rtsp://viewer:<myPassword>@192.168.178.52:554/h264Preview_01_main # 2560*1920@30fps
einfahrt_schwenk_sub:
- rtsp://viewer:<myPassword>@192.168.178.52:554/h264Preview_01_sub # 640*480@7fps
halle:
- rtsp://viewer:<myPassword>@192.168.178.37:554/h264Preview_01_main # 2560*1920@30fps
halle_sub:
- rtsp://viewer:<myPassword>@192.168.178.37:554/h264Preview_01_sub # 640*480@7fps
parkplatz:
- rtsp://viewer:<myPassword>@192.168.178.33:554/h264Preview_01_main # 2304*1296@30fps
parkplatz_sub:
- rtsp://viewer:<myPassword>@192.168.178.33:554/h264Preview_01_sub # 640*480@7fps
cameras:
#########################################
# Kamera Einfahrt #
#########################################
kamera_einfahrt:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 500
birdseye:
mode: objects
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/einfahrt_sub
roles:
- detect
- path: rtsp://127.0.0.1:8554/einfahrt
roles:
- record
detect:
enabled: True
width: 1536
height: 576
fps: 5
objects:
track:
- person
- dog
- bicycle
- cat
- car
motion:
mask:
- 380,535,382,576,0,576,0,540
zones:
reinhold_einfahrt:
coordinates: 0,529,0,280,243,237,319,517
einfahrt:
coordinates: 890,196,878,0,577,74,234,201,328,480
garten:
coordinates: 381,455,898,199,885,0,1536,0,1536,576,444,576
#########################################
# Kamera Schwenk #
#########################################
kamera_einfahrt_schwenk:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 500
birdseye:
mode: objects
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/einfahrt_schwenk_sub
roles:
- detect
- path: rtsp://127.0.0.1:8554/einfahrt_schwenk
roles:
- record
output_args:
record: preset-record-generic
detect:
enabled: True
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- bicycle
- cat
- car
motion:
mask:
- 629,445,632,466,433,468,432,441
- 225,445,227,480,0,480,0,444
zones:
einfahrt:
coordinates: 215,239,243,139,371,112,470,148,640,216,640,404,640,441,289,442,0,373
onvif:
# Required: host of the camera being connected to.
host: 192.168.178.52
# Optional: ONVIF port for device (default: shown below).
port: 8000
# Optional: username for login.
# NOTE: Some devices require admin to access ONVIF.
user: admin
# Optional: password for login.
password: <myPassword>
# Optional: PTZ camera object autotracking. Keeps a moving object in
# the center of the frame by automatically moving the PTZ camera.
autotracking:
# Optional: enable/disable object autotracking. (default: shown below)
enabled: True
# Optional: calibrate the camera on startup (default: shown below)
# A calibration will move the PTZ in increments and measure the time it takes to move.
# The results are used to help estimate the position of tracked objects after a camera move.
# Frigate will update your config file automatically after a calibration with
# a "movement_weights" entry for the camera. You should then set calibrate_on_startup to False.
calibrate_on_startup: True
# Optional: the mode to use for zooming in/out on objects during autotracking. (default: shown below)
# Available options are: disabled, absolute, and relative
# disabled - don't zoom in/out on autotracked objects, use pan/tilt only
# absolute - use absolute zooming (supported by most PTZ capable cameras)
# relative - use relative zooming (not supported on all PTZs, but makes concurrent pan/tilt/zoom movements)
zooming: disabled
# Optional: A value to change the behavior of zooming on autotracked objects. (default: shown below)
# A lower value will keep more of the scene in view around a tracked object.
# A higher value will zoom in more on a tracked object, but Frigate may lose tracking more quickly.
# The value should be between 0.1 and 0.75
zoom_factor: 0.3
# Optional: list of objects to track from labelmap.txt (default: shown below)
track:
- person
#- car
# Required: Begin automatically tracking an object when it enters any of the listed zones.
required_zones:
- einfahrt
# Required: Name of ONVIF preset in camera's firmware to return to when tracking is over. (default: shown below)
return_preset: Einfahrt
# Optional: Seconds to delay before returning to preset. (default: shown below)
#timeout: 10
# Optional: Values generated automatically by a camera calibration. Do not modify these manually. (default: shown below)
#movement_weights: []
#########################################
# Kamera Halle #
#########################################
kamera_halle:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 500
birdseye:
mode: objects
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/halle_sub
roles:
- detect
- path: rtsp://127.0.0.1:8554/halle
roles:
- record
detect:
enabled: True
width: 640
height: 480
fps: 5
objects:
track:
- person
motion:
mask:
- 215,440,213,468,8,473,9,448
#########################################
# Kamera Parkplatz #
#########################################
kamera_parkplatz:
mqtt:
timestamp: False
bounding_box: False
crop: True
quality: 100
height: 500
birdseye:
mode: objects
ffmpeg:
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/parkplatz_sub
roles:
- detect
- audio
- path: rtsp://127.0.0.1:8554/parkplatz
roles:
- record
detect:
enabled: True
width: 640
height: 480
fps: 5
objects:
track:
- person
- dog
- bicycle
- cat
- car
filters:
car:
mask:
- 487,29,146,49,76,78,0,100,0,380,263,331,470,307,518,271,566,155
audio:
enabled: True
zones:
container:
coordinates: 0,0,0,265,0,480,455,480,536,290,581,214,595,0
einfahrt:
coordinates: 640,230,640,0,586,0,583,210,439,480,640,480
motion:
mask:
- 11,468,206,469,208,445,17,445
- 478,253,520,176,455,74,316,36,272,214
Relevant log output
2023-12-28 23:09:21.449725582 [2023-12-28 23:09:21] frigate.http ERROR : Exception on /events/1703694950.996275-4r3yak/sub_label [POST]
2023-12-28 23:09:21.449728285 Traceback (most recent call last):
2023-12-28 23:09:21.449730452 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2190, in wsgi_app
2023-12-28 23:09:21.449732229 response = self.full_dispatch_request()
2023-12-28 23:09:21.449734262 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1486, in full_dispatch_request
2023-12-28 23:09:21.449735971 rv = self.handle_user_exception(e)
2023-12-28 23:09:21.449737889 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1484, in full_dispatch_request
2023-12-28 23:09:21.449739504 rv = self.dispatch_request()
2023-12-28 23:09:21.449741392 File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1469, in dispatch_request
2023-12-28 23:09:21.449766176 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-12-28 23:09:21.449768177 File "/opt/frigate/frigate/http.py", line 438, in set_sub_label
2023-12-28 23:09:21.449851089 "message": "Event " + id + " sub label set to " + new_sub_label,
2023-12-28 23:09:21.449853574 TypeError: can only concatenate str (not "NoneType") to str
Describe the problem you are having
I'm trying to change a subLabel of a certain clip in NodeJS. Maybe I'm doing something wrong, but to me it doesn't seem so.
I'm getting the following error in the logs:
And I'm using the following code in Node JS:
Thanks for the awesome work and help!
Version
0.13.0-beta7
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
Operating system
Other Linux
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
reolink
Any other information that may be helpful
No response