ha-3dprinter-addons/aiortc/rootfs/etc/services.d/aiortc/run
2022-07-07 17:27:03 +02:00

20 lines
475 B
Plaintext

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: aiortc
# Runs aiortc
# ==============================================================================
declare -a options
bashio::log.info "Starting aiortc..."
options+=$(cat /data/aiortc/aiortc.conf)
# Enable debug mode
if bashio::debug; then
options+=" --verbose"
fi
# Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"