Add socat to 3dprinter-octoprint

This commit is contained in:
Fredrik Baberg 2023-01-19 23:13:16 +01:00
parent 385428adb4
commit 5c040a0e44
4 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## 2023.01.3
* Add `socat`
## 2023.01.2
* Disable AppArmor profile.

View File

@ -34,6 +34,7 @@ RUN apt update \
# dfu-util \
# dfu-programmer \
# stm32flash \
socat \
# Development/testing
vim \
&& \

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint"
version: "2023.01.2"
version: "2023.01.3-RC0"
slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles."
arch:
@ -26,10 +26,12 @@ options:
trusted_proxies: ""
# camera_url: "http://b7aa59c4-camera-mjpg-streamer"
# mode: normal
socat_target: ""
schema:
trusted_proxies: "str?"
# camera_url: "url?"
# mode: "list(normal|recovery|reverse_proxy_test|camera)?"
socat_target: "url?"
image: ghcr.io/fredrikbaberg/ha-addon-3dprinter-octoprint-{arch}
# codenotary:
tmpfs: true

View File

@ -0,0 +1,9 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: 3dprinter-octoprint
# Runs socat
# ==============================================================================
bashio::log.info "Starting socat..."
exec socat pty,wait-slave,link=/dev/ttyACM0 tcp:%(ENV_SOCAT_TARGET)s