I have Frigate 0.14.1-f4f3cfa running in a Docker container created with docker-compose (as a Portainer stack), which receives these environment variables among others: FRIGATE_CAMERA_1, KARLA_ONVIF_USERNAME, KARLA_ONVIF_PASSWORD
go2rtc:
streams:
parking:
- rtsp://{FRIGATE_CAMERA_1}/Streaming/Channels/1
cameras:
karlas_room:
onvif:
host: karlas-room.camera
port: 80
user: "{KARLA_ONVIF_USERNAME}"
password: "{KARLA_ONVIF_PASSWORD}"
*** In the container ***
# echo $FRIGATE_CAMERA_1
username:password@some.camera:554
# echo $KARLA_ONVIF_USERNAME
username
# echo $KARLA_ONVIF_PASSWORD
password
2024-10-10 15:13:56.013832569 *************************************************************
2024-10-10 15:13:56.013843440 *** Config Validation Errors ***
2024-10-10 15:13:56.013844754 *************************************************************
2024-10-10 15:13:56.013845642 'KARLA_ONVIF_USERNAME'
2024-10-10 15:13:56.014282128 Traceback (most recent call last):
2024-10-10 15:13:56.014284100 File "/opt/frigate/frigate/app.py", line 645, in start
2024-10-10 15:13:56.014285200 self.init_config()
2024-10-10 15:13:56.014286384 File "/opt/frigate/frigate/app.py", line 140, in init_config
2024-10-10 15:13:56.014287573 self.config = user_config.runtime_config(self.plus_api)
2024-10-10 15:13:56.014288818 File "/opt/frigate/frigate/config.py", line 1507, in runtime_config
2024-10-10 15:13:56.014290007 camera_config.onvif.user = camera_config.onvif.user.format(
2024-10-10 15:13:56.014291053 KeyError: 'KARLA_ONVIF_USERNAME'
2024-10-10 15:13:56.014291958
2024-10-10 15:13:56.014293063 *************************************************************
2024-10-10 15:13:56.014294135 *** End Config Validation Errors ***
2024-10-10 15:13:56.014303169 *************************************************************
What's going on?