-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tear out restream config * Rework birdseye restream * Create go2rtc config handler * Fix bug * Write start script * Rework style * Fix python run syntax * Output as json instead of yaml * Put old live config back and fix birdseye references * Fix camera webUI * Add frigate env var subsitutions * Fix webui checks * Check keys * Remove unused prest * Fix tests * Update restream docs * Update restream docs * Update live docs * Update camera specific recommendation * Update more docs * add links for the docs Co-authored-by: Felipe Santos <[email protected]> * Update note about supported audio codecs * Move restream to go2rtc * Docs fixes * Add verification of stream name * Ensure that webUI uses camera name * Update docs to reflect new live stream name * Fix check * Formatting * Remove audio from detect Co-authored-by: Felipe Santos <[email protected]> * Fix docs * Don't handle env variable substitution * Add go2rtc version * Clarify docs Co-authored-by: Felipe Santos <[email protected]>
- Loading branch information
Showing
17 changed files
with
212 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Creates a go2rtc config file.""" | ||
|
||
import json | ||
import os | ||
import yaml | ||
|
||
|
||
config_file = os.environ.get("CONFIG_FILE", "/config/config.yml") | ||
|
||
# Check if we can use .yaml instead of .yml | ||
config_file_yaml = config_file.replace(".yml", ".yaml") | ||
if os.path.isfile(config_file_yaml): | ||
config_file = config_file_yaml | ||
|
||
with open(config_file) as f: | ||
raw_config = f.read() | ||
|
||
if config_file.endswith((".yaml", ".yml")): | ||
config = yaml.safe_load(raw_config) | ||
elif config_file.endswith(".json"): | ||
config = json.loads(raw_config) | ||
|
||
go2rtc_config: dict[str, any] = config["go2rtc"] | ||
|
||
if not go2rtc_config.get("log", {}).get("format"): | ||
go2rtc_config["log"] = {"format": "text"} | ||
|
||
if not go2rtc_config.get("webrtc", {}).get("candidates", []): | ||
go2rtc_config["webrtc"] = {"candidates": ["stun:8555"]} | ||
|
||
print(json.dumps(go2rtc_config)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.