commit bbf9d89bd81ae813ebf2af1164f03aa405d54fb1 Author: Jan-Henrik Bruhn Date: Mon Feb 6 22:17:01 2023 +0100 initial commit diff --git a/epaper-station/Dockerfile b/epaper-station/Dockerfile new file mode 100644 index 0000000..959abc7 --- /dev/null +++ b/epaper-station/Dockerfile @@ -0,0 +1,9 @@ +ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:9.0.1 +FROM ${BUILD_FROM} + +ADD "https://github.com/jhbruhn/ZBS_Flasher/archive/refs/heads/config_image_format.tar.gz" /src.tar.gz +RUN mkdir /src && tar xvfz /src.tar.gz -C /src --strip-components=1 +RUN mv /src/CC2531_station/epaper_station_websocket/ /app + +WORKDIR /app +RUN pip install -r requirements.txt diff --git a/epaper-station/config.yaml b/epaper-station/config.yaml new file mode 100644 index 0000000..49b9af6 --- /dev/null +++ b/epaper-station/config.yaml @@ -0,0 +1,20 @@ +--- +name: EPaper Station +version: 1.0.0 + #image: ghcr.io/maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch} +slug: epaper-station +description: Publish Pictures to EPaper pricetags +arch: + - amd64 + - armv7 + - aarch64 +options: + serial: + port: "" +schema: + serial: + port: str +stage: experimental +url: https://github.com/jhbruhn/ZBS_Flasher +hassio_api: true +init: false diff --git a/epaper-station/rootfs/etc/services.d/epaper-station/finish b/epaper-station/rootfs/etc/services.d/epaper-station/finish new file mode 100644 index 0000000..be000ab --- /dev/null +++ b/epaper-station/rootfs/etc/services.d/epaper-station/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -S0 +if { s6-test ${1} -ne 0 } +if { s6-test ${1} -ne 256 } + +s6-svscanctl -t /var/run/s6/services diff --git a/epaper-station/rootfs/etc/services.d/epaper-station/run b/epaper-station/rootfs/etc/services.d/epaper-station/run new file mode 100644 index 0000000..29a9178 --- /dev/null +++ b/epaper-station/rootfs/etc/services.d/epaper-station/run @@ -0,0 +1,4 @@ +#!/usr/bin/with-contenv bashio + +bashio::log.info "Starting epaper station..." +exec python /app/station.py diff --git a/repository.json b/repository.json new file mode 100644 index 0000000..d22c01f --- /dev/null +++ b/repository.json @@ -0,0 +1,5 @@ +{ + "name": "Home Assistant Add-On repository (by jhbruhn)", + "url": "https://git.baubs.net/jan-henrik/homeassistant-addons/", + "maintainer": "Jan-Henrik Bruhn " +}