ha-3dprinter-addons/camera-rtc/rootfs/etc/services.d/aiortc/run
Fredrik Baberg c2e807a83a
Bugfix
2022-07-07 20:56:19 +02:00

16 lines
468 B
Plaintext

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: aiortc
# Runs aiortc
# ==============================================================================
declare -a options
if bashio::config.has_value 'webrtc_arguments'; then
options+="$(bashio::config 'webrtc_arguments')"
fi
bashio::log.info "Starting aiortc..."
# Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"