-
The documentation here only lists an example for single camera setup. How do I indicate different secrets for different cameras? My search in Q&A surprisingly showed nothing? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ah I figured it out a minute after I posted :) Basically the secrets.yaml is a map, so you can list whatever you want in there then reference it from config.yaml. e.g. in secrets.yaml camera_1_ip: 192.168.xxx.xx1 and in config.yaml camera: and that works! Please update the doc to reflect - thanks. |
Beta Was this translation helpful? Give feedback.
Ah I figured it out a minute after I posted :)
Basically the secrets.yaml is a map, so you can list whatever you want in there then reference it from config.yaml. e.g.
in secrets.yaml
camera_1_ip: 192.168.xxx.xx1
camera_1_username: username1
camera_1_password: password1
camera_2_ip: 192.168.xxx.xx2
camera_2_username: username2
camera_2_password: password2
.
and in config.yaml
camera:
camera_1:
name: bath room 1
host: !secret camera_1_ip
username: !secret camera_1_username
password: !secret camera_1_username
.
camera_2:
name: bath room 2
host: !secret camera_2_ip
username: !secret camera_2_username
password: !secret camera_2_username
.
and that works! Please update the doc to reflect - tha…