Rename addon, add options

This commit is contained in:
Fredrik Baberg 2022-07-07 19:13:40 +02:00
parent 5ff61f5b24
commit 5c06fa702b
23 changed files with 13 additions and 42 deletions

View File

View File

@ -1,3 +0,0 @@
# aiortc
Provide streaming with support for WebRTC.

View File

@ -1,13 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: aiortc
# Configures aiortc configuration
# ==============================================================================
# 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
# fi

View File

@ -1,6 +0,0 @@
configuration:
message:
name: Message
description: The message that will be printed to the log when starting this example add-on.
network:
5000/TCP: OctoPrint port (not used for Ingress)

View File

@ -27,4 +27,4 @@ COPY rootfs /
# Make files executable
RUN chmod +x /etc/cont-init.d/*.sh
RUN chmod +x /etc/services.d/*/*
RUN chmod +x /etc/services.d/*/*

3
camera-rtc/README.md Normal file
View File

@ -0,0 +1,3 @@
# Camera-RTC
Camera addon with support for WebRTC.

View File

@ -1,4 +1,3 @@
---
build_from:
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye

View File

@ -1,9 +1,8 @@
---
name: "3DPrinter-aiortc"
version: "2022.7.008"
slug: "3dprinter-aiortc"
name: "Camera-RTC"
version: "2022.7.009"
slug: "camera-aiortc"
description: "Camera stream with support for WebRTC."
url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/3dprinter-aiortc"
url: "https://github.com/fredrikbaberg/3dprinter-addons/tree/main/camera-rtc"
ingress: true
ingress_stream: true
panel_icon: mdi:camera
@ -14,11 +13,8 @@ arch:
- armv7
- i386
init: false
ports:
80/tcp: null
ports_description:
80/tcp: Web interface (Not required for Ingress)
video: true
usb: true
options:
webrtc_arguments: ''
schema:

View File

@ -6,16 +6,11 @@
declare -a options
bashio::log.info "Starting aiortc..."
basio::log.info "Starting aiortc with arguments: '$options'"
# options+=$(cat /data/aiortc/aiortc.conf)
# # Enable debug mode
# if bashio::debug; then
# options+=" --verbose"
# fi
# basio::log.info "Starting aiortc with arguments: '$options'"
if bashio::config.has_value 'webrtc_arguments'; then
options+="${bashio::config 'webrtc_arguments'}"
fi
# Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"