Fix getting config line

This commit is contained in:
Fredrik Baberg 2022-07-07 17:37:11 +02:00
parent c95cd007a8
commit 2c1d1125ed
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
---
name: "3DPrinter-aiortc"
version: "2022.7.006"
version: "2022.7.007"
slug: "3dprinter-aiortc"
description: "Camera stream with support for WebRTC."
url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/3dprinter-aiortc"

View File

@ -9,5 +9,5 @@ mkdir -p /data/aiortc
touch /data/aiortc/aiortc.conf
if bashio::config.has_value 'webrtc_arguments'; then
bashio::config.webrtc_arguments > /data/aiortc/aiortc.conf
bashio::config 'webrtc_arguments' > /data/aiortc/aiortc.conf
fi

View File

@ -15,5 +15,7 @@ if bashio::debug; then
options+=" --verbose"
fi
basio::log.info "Starting aiortc with arguments: '$options'"
# Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"