Update create_config.py

Add persistent config of go2rtc.yaml
This commit is contained in:
simonepittis 2024-04-15 10:50:03 +02:00 committed by GitHub
parent d7ae0eedf8
commit 6aa760e572
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,6 +163,6 @@ if config.get("birdseye", {}).get("restream", False):
else: else:
go2rtc_config["streams"] = {"birdseye": ffmpeg_cmd} go2rtc_config["streams"] = {"birdseye": ffmpeg_cmd}
# Write go2rtc_config to /dev/shm/go2rtc.yaml # Write go2rtc_config to /config/go2rtc.yaml
with open("/dev/shm/go2rtc.yaml", "w") as f: with open("/config/go2rtc.yaml", "w") as f:
yaml.dump(go2rtc_config, f) yaml.dump(go2rtc_config, f)