Skip to content

Syntax for secrets.yaml for multiple cameras? #586

Answered by parkroyk
parkroyk asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roflcoopter
Comment options

Answer selected by parkroyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants