Fix issues with config

This commit is contained in:
Fredrik Baberg 2022-07-07 17:27:03 +02:00
parent ac40ee6220
commit c95cd007a8
4 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
ARG BUILD_FROM="ghcr.io/home-assistant/aarch64-base-debian:bullseye"
ARG BUILD_FROM="ghcr.io/home-assistant/amd64-base-debian:bullseye"
FROM ${BUILD_FROM}
ENV PIP_FLAGS="--no-cache-dir"

View File

@ -1,6 +1,6 @@
---
name: "3DPrinter-aiortc"
version: "2022.7.005"
version: "2022.7.006"
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

@ -8,11 +8,11 @@ declare -a options
bashio::log.info "Starting aiortc..."
options+=(-c /data/aiortc/aiortc.conf)
options+=$(cat /data/aiortc/aiortc.conf)
# Enable debug mode
if bashio::debug; then
options+=(--verbose)
options+=" --verbose"
fi
# Run aiortc