Remove arguments for aiortc
This commit is contained in:
parent
2c1d1125ed
commit
5ff61f5b24
@ -1,6 +1,6 @@
|
||||
---
|
||||
name: "3DPrinter-aiortc"
|
||||
version: "2022.7.007"
|
||||
version: "2022.7.008"
|
||||
slug: "3dprinter-aiortc"
|
||||
description: "Camera stream with support for WebRTC."
|
||||
url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/3dprinter-aiortc"
|
||||
|
||||
@ -4,10 +4,10 @@
|
||||
# Configures aiortc configuration
|
||||
# ==============================================================================
|
||||
|
||||
mkdir -p /data/aiortc
|
||||
# mkdir -p /data/aiortc
|
||||
|
||||
touch /data/aiortc/aiortc.conf
|
||||
# touch /data/aiortc/aiortc.conf
|
||||
|
||||
if bashio::config.has_value 'webrtc_arguments'; then
|
||||
bashio::config 'webrtc_arguments' > /data/aiortc/aiortc.conf
|
||||
fi
|
||||
# if bashio::config.has_value 'webrtc_arguments'; then
|
||||
# bashio::config 'webrtc_arguments' > /data/aiortc/aiortc.conf
|
||||
# fi
|
||||
|
||||
@ -8,14 +8,14 @@ declare -a options
|
||||
|
||||
bashio::log.info "Starting aiortc..."
|
||||
|
||||
options+=$(cat /data/aiortc/aiortc.conf)
|
||||
# options+=$(cat /data/aiortc/aiortc.conf)
|
||||
|
||||
# Enable debug mode
|
||||
if bashio::debug; then
|
||||
options+=" --verbose"
|
||||
fi
|
||||
# # Enable debug mode
|
||||
# if bashio::debug; then
|
||||
# options+=" --verbose"
|
||||
# fi
|
||||
|
||||
basio::log.info "Starting aiortc with arguments: '$options'"
|
||||
# basio::log.info "Starting aiortc with arguments: '$options'"
|
||||
|
||||
# Run aiortc
|
||||
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user