Rename addon, add options
This commit is contained in:
parent
5ff61f5b24
commit
5c06fa702b
@ -1,3 +0,0 @@
|
||||
# aiortc
|
||||
|
||||
Provide streaming with support for WebRTC.
|
||||
@ -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
|
||||
@ -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)
|
||||
@ -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
3
camera-rtc/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Camera-RTC
|
||||
|
||||
Camera addon with support for WebRTC.
|
||||
@ -1,4 +1,3 @@
|
||||
---
|
||||
build_from:
|
||||
aarch64: ghcr.io/home-assistant/aarch64-base-debian:bullseye
|
||||
amd64: ghcr.io/home-assistant/amd64-base-debian:bullseye
|
||||
@ -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:
|
||||
@ -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[@]}"
|
||||
Loading…
Reference in New Issue
Block a user